Home
Documentation
Resources
Certifications
Community

Resources

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

Community

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

Get payment - Payments - Mercado Pago Developers

Intelligent search powered by OpenAI 

Get payment

PUT

https://api.mercadopago.com/v1/advanced_payments/{advanced_payment_id}
This endpoint allows to perform one two actions: capture or cancel a payment. To confirm you must send the wallet payment data and field capture in true. To cancel you send wallet payment data and field status "cancelled".
Request's parameters
PATH
advanced_payment_id
number

REQUIRED

The payment identifier.
BODY
capture
boolean
This node only needs to be sent when you need to confirm a payment. It is a boolean field found in two-step payments (like debit card). In this type of payment, which is carried out asynchronously, the purchase value is ...View more
wallet_payment
object

REQUIRED

It indicates is a payment from a seller with a previous Wallet Connect vinculation.
status
string
This node only needs to be sent when you need to cancel a payment. The value to be entered is 'cancelled'.
Response parameters
id
number
Unique ID that identifies the payment.
payments
array
List of payments.
wallet_payment
object
It indicates is an advanced payements from a seller with a previous Wallet Connect vinculation.
disbursements
array
Errors

400Error

400

Bad-Request

500Error

500

Error

Request
curl -X PUT \
    'https://api.mercadopago.com/v1/advanced_payments/{advanced_payment_id}'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer TEST-2151*********762-03031*********750b665b7*********4dac477-1*********' \
    -d '{
  "capture": false,
  "wallet_payment": {
    "transaction_amount": 125.98,
    "description": "Payment for the purchase of furniture",
    "external_reference": "Payment_seller_123"
  },
  "status": "cancelled"
}'
Sample answer
{
  "id": 10234567,
  "payments": [
    {
      "id": 3870106238,
      "status_detail": "approved_id",
      "payment_method_id": "credit_card_id",
      "transaction_amount": 700.5,
      "installments": 1,
      "description": "Payment for the purchase of furniture",
      "capture": true,
      "external_reference": "payment_123"
    }
  ],
  "wallet_payment": {
    "transaction_amount": 125.98,
    "description": "Payment for the purchase of furniture",
    "external_reference": "Payment_seller_123"
  },
  "disbursements": [
    {
      "collector_id": "collectorId"
    }
  ],
  "payer": {
    "id": 8879
  },
  "site_id": "MLA",
  "binary_mode": true,
  "date_created": "2018-10-20T09:34:20.518-04:00",
  "date_last_updated": "2018-10-20T09:34:20.518-04:00"
}