Upsell an order
Use this request to increase the amount of an order before it has been shipped to the customer
Use caseβ
The customer contacted you prior to shipping the order and wants to add an item that they missed or wanted to add to the order.
In some cases the change might be rejected because we cannot extend the original order amount due to lack of space for reserved credit amount.
Raising the amount works on credit payment methods only.
Endpoints usedβ
Reauthorize order with increased amount
Exampleβ
The following request will update the order with id abcdef-12345-1234-5555-6666.
The customer sees what changed on the order. Reauthorizing by amount alone leaves the rows out.
In this example, the order is reauthorized with an additional quantity of 1 on the article 10001 which increases the orders amount with 95.
POST /manage/orders/abcdef-12345-1234-5555-6666/reauthorize HTTP/1.1
Host: api.uat.walleydev.com // Test environment. Production uses a different hostname.
Authorization: Bearer {{accessToken}}
Walley-Idempotency: 03304b06-cb33-4f78-bcea-86cb4b202ba0
Content-Type: application/json
//Upsell on an order with original order amount: 285.0
{
"amount": 380.0,
"actionReference": "this-will-be-shown-on-reconciliation-reports",
"items": [
{
"id": "10001",
"description": "Shoes",
"unitPrice": 95,
"quantity": 2
},
{
"id": "10002",
"description": "T-Shirt",
"unitPrice": 95,
"quantity": 2
}
]
}