curl --request PUT \
--url http://staging.qshop.ng/apiv2/users/{userId}/address \
--header 'Content-Type: application/json' \
--data '
{
"line_1": "<string>",
"line_2": "<string>",
"geoLocation": {
"zipCode": "<string>",
"geoNames": [
{
"lng": "<string>",
"geonameId": 123,
"name": "<string>",
"fclName": "<string>",
"toponymName": "<string>",
"fcodeName": "<string>",
"adminName1": "<string>",
"lat": "<string>",
"fcl": "<string>",
"fcode": "<string>",
"population": 123,
"adminCode1": "<string>",
"countryId": "<string>",
"countryCode": "<string>",
"countryName": "<string>",
"adminCodes1": {
"ISO3166_2": "<string>"
}
}
],
"addressProximity": "<string>",
"google": {
"address_components": [
{
"long_name": "<string>",
"short_name": "<string>",
"types": [
"<string>"
]
}
],
"adr_address": "<string>",
"formatted_address": "<string>",
"geometry": {
"location": {
"lat": 123,
"lng": 123
},
"viewport": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
},
"name": "<string>",
"types": [
"<string>"
],
"utc_offset": 123,
"html_attributions": "<array>",
"utc_offset_minutes": 123
},
"fullAddress": "<string>",
"coordinates": {
"lng": 123,
"lat": 123
}
},
"address": "<string>",
"isDefault": true
}
'{
"msg": "<string>",
"data": {
"_id": "<string>",
"roles": [
"<string>"
],
"reset_pass": true,
"profiles": "<array>",
"social": [
{
"provider": "<string>",
"email": "<string>",
"id": "<string>"
}
],
"email": "<string>",
"username": "<string>",
"pass": "<string>",
"access_code": "<string>",
"__v": 123,
"full_name": "<string>",
"last_access": "<string>",
"reg_date": "<string>",
"shopCount": 123,
"test_user": true,
"telephone": "<string>",
"status": "<string>",
"addresses": [
{
"address": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"stateData": "<string>",
"countryData": "<string>",
"cityData": "<string>",
"area": "<string>",
"geoLocation": {
"fullAddress": "<string>",
"zipCode": "<string>",
"coordinates": {
"lng": 123,
"lat": 123
},
"points": {
"type": "<string>",
"coordinates": [
123
],
"_id": "<string>"
},
"addressProximity": "<string>",
"geoNames": [
{
"lng": "<string>",
"geonameId": 123,
"name": "<string>",
"fclName": "<string>",
"toponymName": "<string>",
"fcodeName": "<string>",
"adminName1": "<string>",
"lat": "<string>",
"fcl": "<string>",
"fcode": "<string>",
"population": 123,
"adminCode1": "<string>",
"countryId": "<string>",
"countryCode": "<string>",
"countryName": "<string>",
"adminCodes1": {
"ISO3166_2": "<string>"
}
}
],
"google": {
"address_components": [
{
"long_name": "<string>",
"short_name": "<string>",
"types": [
"<string>"
]
}
],
"adr_address": "<string>",
"formatted_address": "<string>",
"geometry": {
"location": {
"lat": 123,
"lng": 123
},
"viewport": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
},
"name": "<string>",
"types": [
"<string>"
],
"utc_offset": 123,
"html_attributions": "<array>",
"utc_offset_minutes": 123
},
"_id": "<string>"
},
"isDefault": true,
"_id": "<string>"
}
]
},
"success": true
}Host: http://qshop.ng
curl --request PUT \
--url http://staging.qshop.ng/apiv2/users/{userId}/address \
--header 'Content-Type: application/json' \
--data '
{
"line_1": "<string>",
"line_2": "<string>",
"geoLocation": {
"zipCode": "<string>",
"geoNames": [
{
"lng": "<string>",
"geonameId": 123,
"name": "<string>",
"fclName": "<string>",
"toponymName": "<string>",
"fcodeName": "<string>",
"adminName1": "<string>",
"lat": "<string>",
"fcl": "<string>",
"fcode": "<string>",
"population": 123,
"adminCode1": "<string>",
"countryId": "<string>",
"countryCode": "<string>",
"countryName": "<string>",
"adminCodes1": {
"ISO3166_2": "<string>"
}
}
],
"addressProximity": "<string>",
"google": {
"address_components": [
{
"long_name": "<string>",
"short_name": "<string>",
"types": [
"<string>"
]
}
],
"adr_address": "<string>",
"formatted_address": "<string>",
"geometry": {
"location": {
"lat": 123,
"lng": 123
},
"viewport": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
},
"name": "<string>",
"types": [
"<string>"
],
"utc_offset": 123,
"html_attributions": "<array>",
"utc_offset_minutes": 123
},
"fullAddress": "<string>",
"coordinates": {
"lng": 123,
"lat": 123
}
},
"address": "<string>",
"isDefault": true
}
'{
"msg": "<string>",
"data": {
"_id": "<string>",
"roles": [
"<string>"
],
"reset_pass": true,
"profiles": "<array>",
"social": [
{
"provider": "<string>",
"email": "<string>",
"id": "<string>"
}
],
"email": "<string>",
"username": "<string>",
"pass": "<string>",
"access_code": "<string>",
"__v": 123,
"full_name": "<string>",
"last_access": "<string>",
"reg_date": "<string>",
"shopCount": 123,
"test_user": true,
"telephone": "<string>",
"status": "<string>",
"addresses": [
{
"address": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"stateData": "<string>",
"countryData": "<string>",
"cityData": "<string>",
"area": "<string>",
"geoLocation": {
"fullAddress": "<string>",
"zipCode": "<string>",
"coordinates": {
"lng": 123,
"lat": 123
},
"points": {
"type": "<string>",
"coordinates": [
123
],
"_id": "<string>"
},
"addressProximity": "<string>",
"geoNames": [
{
"lng": "<string>",
"geonameId": 123,
"name": "<string>",
"fclName": "<string>",
"toponymName": "<string>",
"fcodeName": "<string>",
"adminName1": "<string>",
"lat": "<string>",
"fcl": "<string>",
"fcode": "<string>",
"population": 123,
"adminCode1": "<string>",
"countryId": "<string>",
"countryCode": "<string>",
"countryName": "<string>",
"adminCodes1": {
"ISO3166_2": "<string>"
}
}
],
"google": {
"address_components": [
{
"long_name": "<string>",
"short_name": "<string>",
"types": [
"<string>"
]
}
],
"adr_address": "<string>",
"formatted_address": "<string>",
"geometry": {
"location": {
"lat": 123,
"lng": 123
},
"viewport": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
},
"name": "<string>",
"types": [
"<string>"
],
"utc_offset": 123,
"html_attributions": "<array>",
"utc_offset_minutes": 123
},
"_id": "<string>"
},
"isDefault": true,
"_id": "<string>"
}
]
},
"success": true
}Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?