Get a payment/v1/payments/{id}See all the information of a payment through the payment ID.
GET
Request's parameters
idstring
Localization: pathThe Id of the paymentREQUIRED
Parámetros de respuesta
id
Localization: bodyidstring
date_created
Localization: bodydate_createdstring
date_approved
Localization: bodydate_approvedstring
date_last_updated
Localization: bodydate_last_updatedstring
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
1
3
5
1000
1001
2001
2002
2004
2006
2007
2009
3000
3001
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
403bad_request
4
3002
404bad_request
2000
Was this information helpful?