Skip to main content

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

Order details with the updated state

Error Codes

HTTP StatusClassCodeDescription
404not_foundentity_not_foundEntity not found
400invalid_stateorder_not_completedThe order is not in a completed state and cannot be refunded