Update delivery address
/update_delivery_address
Target audience: Developers
Update delivery address¶
Introduction¶
This endpoint will update the delivery address of the order, as well as the distribution address of the underlying subscription (where applicable).
URI¶
Environment | URI |
---|---|
Stage | https://payway-api.stage.adeprimo.se/external/api/v1/order/update_delivery_address |
Production | https://backend.worldoftulo.com/external/api/v1/order/update_delivery_address |
Requirements¶
Identity | Scope |
---|---|
No | /external/order/w |
Parameters¶
Name | Type | Description | Required |
---|---|---|---|
order_id | String | The id of the order that should be updated | Yes |
delivery_address | Object | The full delivery address that should be applied on the order and/or distribution of the subscription. See format here | Yes |
Curl Example¶
curl --request PUT \
--url https://payway-api.stage.adeprimo.se/external/api/v1/order/update_delivery_address \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '{
"order_id": "ORGANISATION-1",
"delivery_address": {...}
}'
Response¶
Example response¶
HTTP 200
{
"item": {
"success" : true
}
}
Errors¶
This API uses the common error conventions of the Payway API