Order Management
Partial refund
POST
/ecommerce/application/{applicationToken}/partial/refundRefunds part of a settled or funded application. Send the cart as it should look after the refund: the new total and the items the customer is keeping.
A partial refund creates a new application. Replace the stored token with the
token in the response. Later calls and postbacks use the new token.
Unlike the other order actions, status in the response is the new application's
status code, not ok. It is B when the new
loanAmount is higher than the current one and the customer has to sign again.
Authorization
bearerAuth AuthorizationBearer <token>
Access token from Get an access token.
In: header
Path Parameters
applicationToken*string
The token returned when the application was created.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/ecommerce/application/string/partial/refund" \ -H "Authorization: Bearer <ACCESS_TOKEN>" \ -H "Content-Type: application/json" \ -d '{ "loanAmount": 749.99, "shipping": 0, "taxes": 50, "discount": 0, "items": [ { "description": "55-inch 4K Smart TV", "quantity": 1, "price": 699.99, "brand": "Acme", "model": "AX-55" } ] }'{ "status": "C", "message": "Partial refund processed", "token": "c28ae115c54241d5bbb9d792392c0106"}