add_address
- Inputs
{
"address": "string: address explanation",
"city": "string: city name",
"country": "string: country name",
"lat": "float numeric: has dependency to long: optional",
"long": "float numeric: has dependency to lat: optional",
"postal_code": "string: Postal code"
}
- Errors
{
"enter_valid_address": "using unacceptable characters in address",
"enter_valid_postal_code": "using unacceptable characters in postal code",
"invalid_city": "if the city name could not be found in the list of cities in country",
"invalid_country": "if the country name could not be found",
"invalid_location": "using unacceptable value for lat and long",
"maximum_address": "the user already has maximum number of allowed addresses",
"must_login": "user must be login"
}
- Extra Description
Add address to user profile in order to send and receive products or services in store
- Sample
- Url:
- Output:
{
"address_id": 1593934676726321,
"status": "success",
"time": 1526966340.437936
}