Orders
Refund Order
Creates a refund for an order. This operation is used to refund a previously paid order (fully or partially, depending on the request body). The API will validate the order and its related charges before processing the refund. If the refund cannot be created due to business rules or state, an error response is returned.
post/orders/{id}/refunds
Path parameters
idstring required
Identifier of the resource
Headers
Accept-Language'es' | 'en'
Use for knowing which language to use
X-Child-Company-Idstring
In the case of a holding company, the company id of the child company to which will process the request.
Request body
Example request
{
"amount": 500,
"charge_id": "6976b2e3c4418f00012943c5",
"reason": "suspected_fraud",
"expires_at": 1553273553
}Response
successful operation