Sandbox: Refund an order
POST/orders/:id/actions/refund
Trigger a refund of the order. This endpoint is only available in the sandbox environment and can be used to simulate a refund of an order for testing purposes.
A refund is only possible once an order reached the completed state. In live mode, refunds are triggered by finperks based on specific agreements with finperks and after thorough review of the support case. Once an order was refunded, it cannot be used anymore and no code details will be returned anymore.
Responses
- 200
- 404
- 500
Order details with the updated state
Not Found
Internal Server Error
Error Codes
| HTTP Status | Class | Code | Description |
|---|---|---|---|
| 404 | not_found | entity_not_found | Entity not found |
| 400 | invalid_state | order_not_completed | The order is not in a completed state and cannot be refunded |