put
https://{store}/api/rest/orders//addresses/
Order Address Update API
Update a billing or shipping address on an existing order.
Endpoint
PUT /api/rest/orders/:order_id/addresses/:address_type
| Parameter | Description |
|---|---|
order_id | The numeric order ID |
address_type | billing or shipping |
Request Headers
| Header | Value |
|---|---|
Content-Type | application/json |
Accept | application/json |
Request Body
All fields are optional — only include what you want to update.
| Field | Type | Description |
|---|---|---|
firstname | string | First name |
lastname | string | Last name |
middlename | string | Middle name |
prefix | string | Name prefix |
suffix | string | Name suffix |
company | string | Company name |
street | string or array | Street lines. Pass as an array for multi-line (["123 Main St", "Apt 2E"]) or a single string |
city | string | City |
region | string | State/region name or code (e.g. "New York" or "NY"). Automatically resolves to the correct region_id. |
region_id | integer | Region ID. Use instead of region if you already have the ID. |
postcode | string | ZIP / postal code |
country_id | string | Two-letter country code (e.g. "US") |
telephone | string | Phone number |
email | string | Email address |
vat_id | string | VAT number |
destination_type | string | Destination type |
zoey_shipping_type | string | Zoey shipping type |
Example Request
{
"firstname": "John",
"lastname": "Smith",
"street": ["123 Main Street", "Apartment 2E"],
"city": "New York",
"region": "New York",
"postcode": "10001",
"country_id": "US",
"telephone": "555-555-5555",
"vat_id": "",
"destination_type": "",
"zoey_shipping_type": "1",
}Responses
| Status | Meaning |
|---|---|
200 OK | Address updated successfully |
400 Bad Request | Invalid or missing data |
404 Not Found | Order or address type not found |
500 Internal Server Error | Unexpected error during save |
Notes
- Only admin API credentials can call this endpoint.
regionaccepts either the full state name or the two-letter code and will automatically resolve the correctregion_id.- If both
regionandregion_idare omitted, the existing values are preserved.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200OK (no example documented yet)
