Skip to main content

Change an order

Use this request to change an order before it has been shipped to the customer

Use case​

The customer contacted you prior to shipping the order and you want to change the order so the customer is charged correctly. This could for example be due to a discount not being applied, an article that was not in stock anymore or that the customer wanted another quantity of an item.

In some cases the change might be rejected because we cannot extend the original order amount. This might be the case for a direct payment method like Swish or card, but it can also be true if the customer is not allowed the new amount within the current credit check.

Endpoints used​

Re-authorize order

Example​

The following request will update the order with id abcdef-12345-1234-5555-6666.

Note that...

Providing the items is optional, but it will be clearer to the customer so we recommend that you always include them if possible.

POST /manage/orders/abcdef-12345-1234-5555-6666/reauthorize HTTP/1.1
Host: api.uat.walleydev.com // (Please note! Different hostname in production)
Authorization: Bearer bXlVc2VybmFtZTpmN2E1ODA4MGQzZTk0M2VmNWYyMTZlMDE...
X-idempotency: 03304b06-cb33-4f78-bcea-86cb4b202ba0

{
"amount": 285.0,
"actionReference": "this-will-be-shown-on-reconciliation-reports",
"items": [
{
"id": "10001",
"description": "Shoes",
"unitPrice": 95,
"quantity": 1
},
{
"id": "10002",
"description": "T-Shirt",
"unitPrice": 95,
"quantity": 2
}
]
}