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

  • Customer account ID. Must match the signed-in customer.

  • Delivery address ID

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Body

required
application/json

Responses

  • application/json
  • Missing or invalid token, or the path account is not the signed-in account.

  • No such address for this customer.

  • Validation failed. Coordinates must be valid latitude and longitude values.

Request Example for put/customer-accounts/{customer_account_id}/delivery-addresses/{delivery_address_id}
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"
    }
  }
}