Skip to main content

Refund Order

API operation: Open the endpoint in Scalar

Use POST /orders/{order_id}/refund to refund an order payment. The current public operation is Order.refund.

Refunds can be sent to cash_wallet or source; source routing may return funds to a wallet or a supported payment gateway. With version=v2, an administrator or the owning business manager is required. The supported mode values are total, amount, and items; transfer_to accepts cash_wallet, credit_point_wallet, or source.

Access checks differ between the legacy and v2 flows; do not assume every authenticated role can issue a refund. Refunds require payment events, refundable value, and a customer. The request and error details may vary by payment source and version.

OpenAPI reference​

Operation: POST /orders/{order_id}/refund

Path parameters

NameTypeRequiredDescription
order_idintegerYes—

Header parameters

NameTypeRequiredDescription
User-AgentstringNo—
X-Forwarded-ForstringNo—
X-Internal-Product-XstringNo—

Request body fields

NameTypeRequired
amountnumberYes
descriptionstringNo
itemsanyNo
modestringNo
order_payment_event_idintegerNo
transfer_tostringYes
versionstringNo

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference