# Get payment This endpoint retrieves the data of an advanced payment by its ID. In case of success, the request will return a response with status 200. **GET** `/v1/advanced_payments/{advanced_payment_id}` ## Request parameters ### Path - `advanced_payment_id` (number, required) Unique identifier of the advanced payment. ## Response parameters - `id` (number, optional) Unique identifier of the advanced payment. - `wallet_payment` (object, optional) Wallet payment data from a seller with a prior Wallet Connect agreement. - `wallet_payment.transaction_amount` (number, optional) Payment amount. - `wallet_payment.description` (string, optional) Brief description of the payment. - `wallet_payment.external_reference` (string, optional) Custom seller reference used to correlate a Mercado Pago payment with an internal order. - `wallet_payment.discount` (object, optional) Discount applied to the payment, when applicable. - `wallet_payment.discount.amount` (number, optional) Amount deducted from the total payment. - `wallet_payment.discount.code` (number, optional) Unique identifier of the coupon used for the discount. - `payments` (array, optional) List of payments generated within the advanced payment. - `payments[].id` (number, optional) Unique payment identifier. - `payments[].status` (string, optional) Current status of the payment. Possible enum values: - `approved` The payment was approved. - `in_process` The payment is being processed. - `rejected` The payment was rejected. - `payments[].status_detail` (string, optional) Detailed reason for the payment status. - `payments[].payment_type_id` (string, optional) Payer's preferred payment type. Possible enum values: - `credit_card` Credit card. - `debit_card` Debit card. - `account_money` Account balance. - `payments[].payment_method_id` (string, optional) Payment method used. - `payments[].transaction_amount` (number, optional) Payment amount. - `payments[].installments` (number, optional) Number of installments. - `payments[].description` (string, optional) Description of the product or service purchased. - `payments[].capture` (boolean, optional) Indicates whether the payment amount was captured. In two-step payments, the purchase value is first reserved ("capture" = "false") and then captured ("capture" = "true") when the funds are transferred to the collector. - `payments[].external_reference` (string, optional) Custom seller reference used to correlate a Mercado Pago payment with an internal order. - `disbursements` (array, optional) List of disbursements distributed among the sellers. - `disbursements[].collector_id` (string, optional) Mercado Pago account ID of the seller receiving the disbursement. - `payer` (object, optional) - `payer.id` (number, optional) Buyer's Mercado Pago user ID. - `site_id` (string, optional) Country of origin of the Mercado Pago account. - `binary_mode` (boolean, optional) When enabled, the payment can only be approved or rejected. Otherwise, the payment may remain pending. - `date_created` (string, optional) Date and time the payment was created, in ISO 8601 format. - `date_last_updated` (string, optional) Date and time of the last update to the payment, in ISO 8601 format. ## Errors | Status | Error | Description | | ------- | ------- | ----------- | | 400 | 400 | Bad Request. | | 500 | internal_error | Some error occurred on our side while attempting to process the request. Please try again later. | ## Request example ### cURL ```bash curl -X GET \ 'https://api.mercadopago.com/v1/advanced_payments/{advanced_payment_id}' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ' ``` ## Response example ```json { "id": 10267812, "wallet_payment": { "transaction_amount": "24.50", "description": "Payment for the purchase of furniture", "external_reference": "Payment_seller_123", "discount": { "amount": 10, "code": "WALLET10" } }, "payments": [ { "id": 3870106238, "status": "approved", "status_detail": "accredited", "payment_type_id": "credit_card", "payment_method_id": "credit_card", "transaction_amount": "24.50", "installments": 1, "description": "Payment for the purchase of furniture", "capture": true, "external_reference": "payment_123" } ], "disbursements": [ { "collector_id": "collectorId" } ], "payer": { "id": 8879 }, "site_id": "MCO", "binary_mode": false, "date_created": "2018-10-20T09:34:20.518-04:00", "date_last_updated": "2018-10-20T09:34:20.518-04:00" } ```