Home
Documentation
Resources
Partners
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Refund payment - Payments - Mercado Pago Developers

Intelligent search powered by OpenAI 

Refund payment

POST

https://api.mercadopago.com/v1/advanced_payments/{advanced_payment_id}/refunds
A refund operation may be total, this is the total amount of the payment will be restored, o may be a partial refund, the amount in the request will be restored.
Request's parameters
PATH
advanced_payment_id
number

REQUIRED

The payment, with id 'advanced_payment_id' to be confirmed.
BODY
amount
number
If amount is 0 then this is a refund of the total advanced payments amounts, otherwise is a partial refund.
Response parameters
id
number
Refund id.
payment_id
number
Payment id.
amount
number
Refund amount.
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-4599*********755-11221*********d497ae962*********ecf8d85-1*********' \
    -d '{
  "amount": null
}'
Sample answer
[
  {
    "id": "1009042015",
    "payment_id": "18552260055",
    "amount": 10,
    "source": {
      "name": "user_name",
      "id": "abcdef1e23f4567d8e9123eb6591ff68df74c57930551ed980239f4538a7e530"
    }
  }
]