curl --request PUT \
--url http://staging.qshop.ng/apiv2/{userId}/address \
--header 'Content-Type: application/json' \
--data '
{
"_id": "642ed02afa010a01bdab4866",
"area": null,
"cityData": "63517e7320d34bd904388d14",
"countryData": "628c8d3c21ce8313e6293c8e",
"geoLocation": {
"_id": "642ed02afa010a01bdab4867",
"addressProximity": "close",
"coordinates": {
"lat": 6.820255299999999,
"lng": 3.4486531
},
"fullAddress": "Unity close, Off Redemption Way, 110113, Mowe, Nigeria",
"geoNames": [
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "AREA",
"fcodeName": "area",
"geonameId": 6295630,
"lat": "0",
"lng": "0",
"name": "Earth",
"population": 6814400000,
"toponymName": "Earth"
},
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "CONT",
"fcodeName": "continent",
"geonameId": 6255146,
"lat": "7.1881",
"lng": "21.09375",
"name": "Africa",
"population": 1031833000,
"toponymName": "Africa"
},
{
"adminCode1": "00",
"adminName1": "",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "PCLI",
"fcodeName": "independent political entity",
"geonameId": 2328926,
"lat": "10",
"lng": "8",
"name": "Nigeria",
"population": 195874740,
"toponymName": "Federal Republic of Nigeria"
},
{
"adminCode1": "16",
"adminCodes1": {
"ISO3166_2": "OG"
},
"adminName1": "Ogun",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM1",
"fcodeName": "first-order administrative division",
"geonameId": 2327546,
"lat": "7",
"lng": "3.58333",
"name": "Ogun State",
"population": 4054272,
"toponymName": "Ogun State"
},
{
"adminCode1": "16",
"adminCodes1": {
"ISO3166_2": "OG"
},
"adminName1": "Ogun",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM2",
"fcodeName": "second-order administrative division",
"geonameId": 7873905,
"lat": "6.96907",
"lng": "3.48404",
"name": "Obafemi Owode",
"population": 0,
"toponymName": "Obafemi Owode"
},
{
"adminCode1": "16",
"adminCodes1": {
"ISO3166_2": "OG"
},
"adminName1": "Ogun",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "P",
"fclName": "city, village,...",
"fcode": "PPL",
"fcodeName": "populated place",
"geonameId": 2331967,
"lat": "6.82191",
"lng": "3.45153",
"name": "Loburo",
"population": 0,
"toponymName": "Loburo"
}
],
"google": {
"address_components": [
{
"long_name": "Off",
"short_name": "Off",
"types": [
"street_number"
]
},
{
"long_name": "Redemption Way",
"short_name": "Redemption Way",
"types": [
"route"
]
},
{
"long_name": "Mowe",
"short_name": "Mowe",
"types": [
"locality",
"political"
]
},
{
"long_name": "Obafemi Owode",
"short_name": "Obafemi Owode",
"types": [
"administrative_area_level_2",
"political"
]
},
{
"long_name": "Ogun State",
"short_name": "OG",
"types": [
"administrative_area_level_1",
"political"
]
},
{
"long_name": "Nigeria",
"short_name": "NG",
"types": [
"country",
"political"
]
},
{
"long_name": "110113",
"short_name": "110113",
"types": [
"postal_code"
]
}
],
"adr_address": "Unity close, <span class=\"street-address\">Off Redemption Way</span>, <span class=\"postal-code\">110113</span>, <span class=\"locality\">Mowe</span>, <span class=\"country-name\">Nigeria</span>",
"formatted_address": "Unity close, Off Redemption Way, 110113, Mowe, Nigeria",
"geometry": {
"location": {
"lat": 6.820255299999999,
"lng": 3.4486531
},
"viewport": {
"east": 3.449958680291502,
"north": 6.821616580291503,
"south": 6.818918619708499,
"west": 3.447260719708498
}
},
"html_attributions": [],
"name": "Loburo",
"types": [
"school",
"point_of_interest",
"establishment"
],
"utc_offset": 60,
"utc_offset_minutes": 60
},
"points": {
"_id": "642ed02afa010a01bdab4868",
"coordinates": [
3.4486531,
6.820255299999999
],
"type": "Point"
},
"zipCode": "110113"
},
"isDefault": true,
"name": "My home again 25",
"stateData": "62c80815c9d738e14b8988e6"
}
'curl --request PUT \
--url http://staging.qshop.ng/apiv2/{userId}/address \
--header 'Content-Type: application/json' \
--data '
{
"_id": "642ed02afa010a01bdab4866",
"area": null,
"cityData": "63517e7320d34bd904388d14",
"countryData": "628c8d3c21ce8313e6293c8e",
"geoLocation": {
"_id": "642ed02afa010a01bdab4867",
"addressProximity": "close",
"coordinates": {
"lat": 6.820255299999999,
"lng": 3.4486531
},
"fullAddress": "Unity close, Off Redemption Way, 110113, Mowe, Nigeria",
"geoNames": [
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "AREA",
"fcodeName": "area",
"geonameId": 6295630,
"lat": "0",
"lng": "0",
"name": "Earth",
"population": 6814400000,
"toponymName": "Earth"
},
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "CONT",
"fcodeName": "continent",
"geonameId": 6255146,
"lat": "7.1881",
"lng": "21.09375",
"name": "Africa",
"population": 1031833000,
"toponymName": "Africa"
},
{
"adminCode1": "00",
"adminName1": "",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "PCLI",
"fcodeName": "independent political entity",
"geonameId": 2328926,
"lat": "10",
"lng": "8",
"name": "Nigeria",
"population": 195874740,
"toponymName": "Federal Republic of Nigeria"
},
{
"adminCode1": "16",
"adminCodes1": {
"ISO3166_2": "OG"
},
"adminName1": "Ogun",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM1",
"fcodeName": "first-order administrative division",
"geonameId": 2327546,
"lat": "7",
"lng": "3.58333",
"name": "Ogun State",
"population": 4054272,
"toponymName": "Ogun State"
},
{
"adminCode1": "16",
"adminCodes1": {
"ISO3166_2": "OG"
},
"adminName1": "Ogun",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM2",
"fcodeName": "second-order administrative division",
"geonameId": 7873905,
"lat": "6.96907",
"lng": "3.48404",
"name": "Obafemi Owode",
"population": 0,
"toponymName": "Obafemi Owode"
},
{
"adminCode1": "16",
"adminCodes1": {
"ISO3166_2": "OG"
},
"adminName1": "Ogun",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "P",
"fclName": "city, village,...",
"fcode": "PPL",
"fcodeName": "populated place",
"geonameId": 2331967,
"lat": "6.82191",
"lng": "3.45153",
"name": "Loburo",
"population": 0,
"toponymName": "Loburo"
}
],
"google": {
"address_components": [
{
"long_name": "Off",
"short_name": "Off",
"types": [
"street_number"
]
},
{
"long_name": "Redemption Way",
"short_name": "Redemption Way",
"types": [
"route"
]
},
{
"long_name": "Mowe",
"short_name": "Mowe",
"types": [
"locality",
"political"
]
},
{
"long_name": "Obafemi Owode",
"short_name": "Obafemi Owode",
"types": [
"administrative_area_level_2",
"political"
]
},
{
"long_name": "Ogun State",
"short_name": "OG",
"types": [
"administrative_area_level_1",
"political"
]
},
{
"long_name": "Nigeria",
"short_name": "NG",
"types": [
"country",
"political"
]
},
{
"long_name": "110113",
"short_name": "110113",
"types": [
"postal_code"
]
}
],
"adr_address": "Unity close, <span class=\"street-address\">Off Redemption Way</span>, <span class=\"postal-code\">110113</span>, <span class=\"locality\">Mowe</span>, <span class=\"country-name\">Nigeria</span>",
"formatted_address": "Unity close, Off Redemption Way, 110113, Mowe, Nigeria",
"geometry": {
"location": {
"lat": 6.820255299999999,
"lng": 3.4486531
},
"viewport": {
"east": 3.449958680291502,
"north": 6.821616580291503,
"south": 6.818918619708499,
"west": 3.447260719708498
}
},
"html_attributions": [],
"name": "Loburo",
"types": [
"school",
"point_of_interest",
"establishment"
],
"utc_offset": 60,
"utc_offset_minutes": 60
},
"points": {
"_id": "642ed02afa010a01bdab4868",
"coordinates": [
3.4486531,
6.820255299999999
],
"type": "Point"
},
"zipCode": "110113"
},
"isDefault": true,
"name": "My home again 25",
"stateData": "62c80815c9d738e14b8988e6"
}
'"61a956551a113f7e13c45c10"
"642ed02afa010a01bdab4866"
"63517e7320d34bd904388d14"
"628c8d3c21ce8313e6293c8e"
Show child attributes
"642ed02afa010a01bdab4867"
"close"
"Unity close, Off Redemption Way, 110113, Mowe, Nigeria"
Show child attributes
"00"
""
"NG"
"2328926"
"Nigeria"
"L"
"parks,area, ..."
"AREA"
"area"
6295630
"0"
"0"
"Earth"
6814400000
"Earth"
[
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "AREA",
"fcodeName": "area",
"geonameId": 6295630,
"lat": "0",
"lng": "0",
"name": "Earth",
"population": 6814400000,
"toponymName": "Earth"
},
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "CONT",
"fcodeName": "continent",
"geonameId": 6255146,
"lat": "7.1881",
"lng": "21.09375",
"name": "Africa",
"population": 1031833000,
"toponymName": "Africa"
},
{
"adminCode1": "00",
"adminName1": "",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "PCLI",
"fcodeName": "independent political entity",
"geonameId": 2328926,
"lat": "10",
"lng": "8",
"name": "Nigeria",
"population": 195874740,
"toponymName": "Federal Republic of Nigeria"
},
{
"adminCode1": "16",
"adminCodes1": { "ISO3166_2": "OG" },
"adminName1": "Ogun",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM1",
"fcodeName": "first-order administrative division",
"geonameId": 2327546,
"lat": "7",
"lng": "3.58333",
"name": "Ogun State",
"population": 4054272,
"toponymName": "Ogun State"
},
{
"adminCode1": "16",
"adminCodes1": { "ISO3166_2": "OG" },
"adminName1": "Ogun",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM2",
"fcodeName": "second-order administrative division",
"geonameId": 7873905,
"lat": "6.96907",
"lng": "3.48404",
"name": "Obafemi Owode",
"population": 0,
"toponymName": "Obafemi Owode"
},
{
"adminCode1": "16",
"adminCodes1": { "ISO3166_2": "OG" },
"adminName1": "Ogun",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "P",
"fclName": "city, village,...",
"fcode": "PPL",
"fcodeName": "populated place",
"geonameId": 2331967,
"lat": "6.82191",
"lng": "3.45153",
"name": "Loburo",
"population": 0,
"toponymName": "Loburo"
}
]Show child attributes
[
{
"long_name": "Off",
"short_name": "Off",
"types": ["street_number"]
},
{
"long_name": "Redemption Way",
"short_name": "Redemption Way",
"types": ["route"]
},
{
"long_name": "Mowe",
"short_name": "Mowe",
"types": ["locality", "political"]
},
{
"long_name": "Obafemi Owode",
"short_name": "Obafemi Owode",
"types": ["administrative_area_level_2", "political"]
},
{
"long_name": "Ogun State",
"short_name": "OG",
"types": ["administrative_area_level_1", "political"]
},
{
"long_name": "Nigeria",
"short_name": "NG",
"types": ["country", "political"]
},
{
"long_name": "110113",
"short_name": "110113",
"types": ["postal_code"]
}
]"Unity close, <span class=\"street-address\">Off Redemption Way</span>, <span class=\"postal-code\">110113</span>, <span class=\"locality\">Mowe</span>, <span class=\"country-name\">Nigeria</span>"
"Unity close, Off Redemption Way, 110113, Mowe, Nigeria"
Show child attributes
Show child attributes
[]"Loburo"
[
"school",
"point_of_interest",
"establishment"
]60
60
"110113"
true
"My home again 25"
"62c80815c9d738e14b8988e6"
Was this page helpful?