Create refund
POST/financing/v1/applications/:applicationId/refunds
Create a refund on a specific application where {applicationId} is the application ID you received in the response of /financing/v1/applications after its creation.
Use this resource to register an arbitrary partial (or full) refund of an already invoiced order without referencing specific order items - for example a goodwill refund or a price adjustment. The refund amount is deducted from the order's remaining refundable amount. To instead return specific order items, use the Mark order items as returned operation.
| Financing type | Supported |
|---|---|
DEFERRED_PAYMENT | YES |
PAY_IN_THREE | YES |
| Application state | Availability |
|---|---|
PROCESSING | NO |
REJECTED | NO |
CANCELLED | YES |
READY | YES |
The order must already be invoiced. The requested totalPrice must not exceed the order's remaining refundable amount (the original order total minus the sum of refunds already created). Each VAT rate passed in totalVat (with a non-zero amount) must match a VAT rate present on the order.
If the request was successfully processed, you receive HTTP status code 201 and the created refund object.
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 | TOTAL_PRICE_LIMIT_EXCEEDED | Refund amount exceeds the remaining refundable amount of the order |
| 422 | NOT_INVOICED | Refund can be created only for an invoiced order |
| 422 | INVALID_CURRENCY_MISMATCH | The totalPrice currency does not match the e-shop currency |
| 422 | NOT_FOUND | A VAT rate passed in totalVat does not exist on the order |
| 422 | INVALID_FORMAT | variableSymbol contains characters other than digits |
Request
Responses
- 201
- 404
- 422
Refund was created
Application does not exist
Refund can not be created