Mark order items as returned (refund)
PUT/financing/v1/applications/:applicationId/order/return
When some or all order items were returned by the customer to you (after delivery), use /financing/v1/applications/{applicationId}/order/return resource where {applicationId} is the application ID you received in the response of /financing/v1/applications after its creation.
If you want to cancel some items before marking those items as sent or delivered, use Mark order items as cancelled operation.
📘 For additional examples and more information, please refer to the Technical guide: Manage your orders.
| Financing type | Supported |
|---|---|
DEFERRED_PAYMENT | YES |
PAY_IN_THREE | YES |
| Application state | Availability |
|---|---|
PROCESSING | NO |
REJECTED | NO |
CANCELLED | NO |
READY | YES |
Use /financing/v1/applications/{applicationId}/order/return resource with an empty request to mark all order items (the whole order) as returned at once.
If you want to mark specific order item(s) as returned, you can pass a list of them in the items array, including quantity per item. Each item is identified by the combination of code, ean, name, and type — these must match the values used in the original Create application request. Alternatively, you can omit the items field and simply include totalPrice — in that case, the total refund amount is deducted from the order.
💡 TIP: Optionally, you can specify the amount (in the field
totalPrice) that should be returned if it differs from the sum of the items' prices.
💡 TIP: Use an empty request if marking last (those not yet not marked) item(s) on order as returned.
⚠️ If multiple properties (
code,ean,nameortype) are used for identifying some order item, it all must exact match the item data.
"items": []present (empty array): We treat this as an amount-only partial refund. The ordertotalPriceis reduced by the refunded amount, but the order state does not change (remainsSENT/DELIVERED).itemsomitted or empty body{}: We treat this as a full return of the remaining items. The ordertotalPriceis reduced accordingly (possibly to zero) and the order state becomesRETURNED.
This distinction prevents accidental full returns when a partner does not send the items field for partial refunds.
If the request was successfully processed, you receive HTTP status code 200 and object of information about changed order plus basic information about respective application (ID, state, substate).
In other cases, you may receive errors similar to the following ones:
| Status code | Code | Explanation |
|---|---|---|
| 400 | INVALID_REQUEST | Request was not well formatted (malformed request syntax, size too large, etc.) |
| 404 | OBJECT_NOT_FOUND | The requested resource could not be found |
| 422 | NOT_SUPPORTED | The operation is not supported. Check the error response for details. |
System notification. Some or all order items were returned by customer back to e-shop. Based on application financing type and partner setting, credit note may be issued.
Request
Responses
- 200
- 422
Order items or whole order is marked as returned
State change can not be processed