PUT Customer Delivery Address
Updates a saved delivery address.
Treat this as a replace rather than a patch: street_name, latitude, longitude and formatted_address are required, so send the whole address object as the customer should end up with it.
Coordinates are required because delivery area and fee are resolved from them, not from the text address.
Path Parameters
- Type: integercustomer
_account _id requiredCustomer account ID. Must match the signed-in customer.
- Type: integerdelivery
_address _id requiredDelivery address ID
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Type: stringformatted
_address max length:305required - Type: numberlatituderequired
- Type: numberlongituderequired
- Type: stringstreet
_name max length:255required - Type: string | nullapartment
_number max length:50 - Type: string | nullcountrymax length:50
- Type: string | nullcountry
_short max length:10 - Type: string | nulldistrictmax length:50
- Type: booleanis
_custom - Type: booleanis
_number _first - Type: string | nulllocalitymax length:50
- Type: string | nullnotesmax length:255
Responses
- application/json
- 401
Missing or invalid token, or the path account is not the signed-in account.
- 404
No such address for this customer.
- 422
Validation failed. Coordinates must be valid latitude and longitude values.
curl https://api-public-demo.menu.app/api/customer-accounts/9031/delivery-addresses/441 \
--request PUT \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"street_name": "W Adams St",
"street_number": "12",
"apartment_number": "5C",
"notes": "Leave with concierge",
"latitude": 41.879,
"longitude": -87.63,
"postcode": "60603",
"locality": "Chicago",
"region_short": "IL",
"country_short": "US",
"formatted_address": "12 W Adams St, Chicago, IL 60603, USA"
}'
{
"status": "OK",
"code": 200,
"data": {
"delivery_address": {
"id": 441,
"street_name": "W Adams St",
"apartment_number": "5C",
"formatted_address": "12 W Adams St, Chicago, IL 60603, USA"
}
}
}