Intelligent search powered by OpenAI
POST
REQUIRED
REQUIRED
400Error.
empty_required_header
The 'X-Idempotency-Key' header is required and was not sent. Make the requisition again including it.
401Error.
unauthorized
The value sent as Access Token is incorrect. Please check and try again with the correct value.
404Error.
order_not_found
The value sent as Access Token is incorrect, therefore the order could not be found. Please check and try again with the correct value.
409Error.
idempotency_key_already_used
The value sent as the idempotency header has already been used with a different request within the last 24 hours. Please try the request again sending a new value.
500Error.
idempotency_validation_failed
Validation fail. Please try submitting the request again.
500
Generic error. Please try submitting the request again.
curl -X POST \
'https://api.mercadopago.com/v1/orders/{order_id}/refund'\
-H 'Content-Type: application/json' \
-H 'X-Idempotency-Key: 0d5020ed-1af6-469c-ae06-c3bec19954bb' \
-H 'Authorization: Bearer TEST-7719*********832-03141*********ec9309854*********f1e54b5-1*********' \
{
"id": "123",
"status": "refunded",
"status_detail": "refunded",
"transactions": {
"refunds": [
{
"id": "ref_01J67CQQH5904WDBVZEM1234D",
"transaction_id": "pay_01J67CQQH5904WDBVZEM4JMEP3",
"reference_id": "12345678",
"amount": "24.90",
"status": "processed"
}
]
}
}