Intelligent search powered by OpenAI
Refund payment
POST
Products that use it:
Request's parameters
PATH
advanced_payment_id
The payment, with id 'advanced_payment_id' to be confirmed.number
REQUIRED
BODY
amount
If amount is 0 then this is a refund of the total advanced payments amounts, otherwise is a partial refund.number
Response parameters
id
Refund id.number
payment_id
Payment id.number
amount
Refund amount.number
source
object
Errors
400Error
400
Bad-Request
500Error
500
Error
Request
curl -X POST \
'https://api.mercadopago.com/v1/advanced_payments/{advanced_payment_id}/refunds'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-5599*********291-02171*********139a4791e*********f7f5835-1*********' \
-d '{
"amount": null
}'
Sample answer
[
{
"id": "1009042015",
"payment_id": "18552260055",
"amount": 10,
"source": {
"name": "user_name",
"id": "abcdef1e23f4567d8e9123eb6591ff68df74c57930551ed980239f4538a7e530"
}
}
]