Get a payment - Payments - Mercado Pago Developers
Developers
API Reference
Support
Sign in

    Start

    LISTA DE API

    Preferences

    Create a preference

    POST

    Search preferences

    GET

    Get a preference

    GET

    Update a preference

    PUT

    Identification Types

    Get document types

    GET

    Payment Methods

    Get the payment methods

    GET

    Payments

    Create payments

    POST

    Find payments

    GET

    Get a payment

    GET

    Update a payment

    PUT

    Chargebacks

    Get a chargeback

    GET

    Customers

    Create a customer

    POST

    Search for a customer

    GET

    Get a customer

    GET

    Update a customer

    PUT

    Cards

    Save a card

    POST

    Obtain customer cards

    GET

    Get a card

    GET

    Update a card

    PUT

    Delete a card

    DELETE

    Stores

    Get a Store

    GET

    Create a Store

    POST

    Search stores

    GET

    Update a Store

    PUT

    Delete a Store

    DELETE

    Point of Sale

    Create a POS

    POST

    Get all POS

    GET

    Get a POS

    GET

    Update a POS

    PUT

    Delete a POS

    DELETE

    Instore Orders

    Create an order

    POST

    Delete an order

    DELETE

    Instore Orders v2

    Create an order

    PUT

    Get an order

    GET

    Delete an order

    DELETE

    Merchant Orders

    Create an order

    POST

    Search for orders

    GET

    Get an order

    GET

    Update an order

    PUT

    Subscription Preferences

    Create a subscription

    POST

Get a payment

GET

/v1/payments/{id}
See all the information of a payment through the payment ID.
Products that use it:
Checkout Pro
Marketplace
Mobile Checkout
QR Code
Subscriptions
Request's parameters
id

REQUIRED

string
Localization: pathThe Id of the payment
Parámetros de respuesta
id
string
Localization: bodyid
date_created
string
Localization: bodydate_created
date_approved
string
Localization: bodydate_approved
date_last_updated
string
Localization: bodydate_last_updated
Solicitud
curl
curl -X GET \
    'https://api.mercadopago.com/v1/payments/{id}' \
    -H 'Authorization: Bearer ACCESS_TOKEN_ENV' 
Answer
json
{
  "id": 1,
  "date_created": "2017-08-31T11:26:38.000Z",
  "date_approved": "2017-08-31T11:26:38.000Z",
  "date_last_updated": "2017-08-31T11:26:38.000Z",
  "money_release_date": "2017-09-14T11:26:38.000Z",
  "payment_method_id": "account_money",
  "payment_type_id": "credit_card",
  "status": "approved",
  "status_detail": "accredited",
  "currency_id": "BRL",
  "description": "Pago Pizza",
  "collector_id": 2,
  "payer": {
    "type": "customer",
    "id": 1,
    "email": "afriend@gmail.com",
    "identification": {
      "type": "DNI",
      "number": 12345678
    },
    "phone": {
      "number": 11123456789
    },
    "first_name": "Name",
    "last_name": "LastName",
    "entity_type": "individual"
  },
  "metadata": {},
  "additional_info": {},
  "order": {},
  "transaction_amount": 250,
  "transaction_amount_refunded": 0,
  "coupon_amount": 0,
  "transaction_details": {
    "net_received_amount": 250,
    "total_paid_amount": 250,
    "overpaid_amount": 0,
    "installment_amount": 250
  },
  "installments": 1,
  "card": {}
}
Errors
400bad_request
1Params Error.
3Token must be for test.
5Must provide your access_token to proceed.
1000Number of rows exceeded the limits.
1001Date format must be yyyy-MM-dd'T'HH:mm:ss.SSSZ.
2001Already posted the same request in the last minute.
2002Customer not found.
2004POST to Gateway Transactions API fail.
2006Card Token not found.
2007Connection to Card Token API fail.
2009Card token issuer can't be null.
3000You must provide your cardholder_name with your card data.
3001You must provide your cardissuer_id with your card data.
3003Invalid card_token_id.
3004Invalid parameter site_id.
3005Not valid action, the resource is in a state that does not allow this operation. For more information see the state that has the resource.
3006Invalid parameter cardtoken_id.
3007The parameter client_id can not be null or empty.
3008Not found Cardtoken.
3009unauthorized client_id.
3010Not found card on whitelist.
3011Not found payment_method.
3012Invalid parameter security_code_length.
3013The parameter security_code is a required field can not be null or empty.
3014Invalid parameter payment_method.
3015Invalid parameter card_number_length.
3016Invalid parameter card_number.
3017The parameter card_number_id can not be null or empty.
3018The parameter expiration_month can not be null or empty.
3019The parameter expiration_year can not be null or empty.
3020The parameter cardholder.name can not be null or empty.
3021The parameter cardholder.document.number can not be null or empty.
3022The parameter cardholder.document.type can not be null or empty.
3023The parameter cardholder.document.subtype can not be null or empty.
3024Not valid action - partial refund unsupported for this transaction.
3025Invalid Auth Code.
3026Invalid card_id for this payment_method_id.
3027Invalid payment_type_id.
3028Invalid payment_method_id.
3029Invalid card expiration month.
3030Invalid card expiration year.
403bad_request
4The caller is not authorized to access this resource.
3002The caller is not authorized to perform this action.
404bad_request
2000Payment not found.
Was this information helpful?

Copyright © 1999-2021 MercadoLibre Perú S.R.L.

Terms and conditionsHow we take care of your privacy
Partners Mercado Pago

Al navegar en este sitio aceptas las cookies que utilizamos para mejorar tu experiencia. Más información.