Partly deliver an order
Use this request when you only ship part of the order to the customer
Use caseβ
Only part of the order can be shipped to the customer but you still want to ship them now and ship the rest of the order later.
When the order is partly captured, the...
- state of the order will be
Part Activated
in Walley's system. - amount that has been captured will be marked for payout to your bank account
- captured amount will be a part of the reconciliation report
Endpoints usedβ
Exampleβ
The following request will partly capture the order with id abcdef-12345-1234-5555-6666
using amount and items.
POST /manage/orders/abcdef-12345-1234-5555-6666/capture 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": "test-captureref-123",
"items": [
{
"id": "10001",
"description": "Shoes",
"unitPrice": 95,
"quantity": 1
},
{
"id": "10002",
"description": "T-Shirt",
"unitPrice": 95,
"quantity": 2
}
]
}