Manejo de Pagos
Llamada:
curl -X GET https://api.mercadopago.com/v1/payments/{payment_id}?access_token=
Ejemplo:
curl -X GET https://api.mercadopago.com/v1/payments/3507121175?access_token=
Respuesta:
{
"acquirer_reconciliation": [
],
"statement_descriptor": null,
"captured": true,
"date_last_updated": "2018-03-05T10:07:15.000-04:00",
"merchant_account_id": null,
"payer_id": 305796397,
"issuer_id": null,
"description": "Talla Chica Camisa Faja Cinturilla Quemadora Grasa Hombre",
"transaction_amount": 250,
"card": {
},
"transaction_details": {
"total_paid_amount": 250,
"acquirer_reference": null,
"payment_method_reference_id": null,
"net_received_amount": 206.25,
"financial_institution": null,
"payable_deferral_period": null,
"installment_amount": 0,
"external_resource_url": null,
"overpaid_amount": 0
},
"coupon_amount": 0,
"metadata": {
},
"money_release_schema": null,
"collector_id": 166986265,
"status": "approved",
"processing_mode": "aggregator",
"status_detail": "accredited",
"installments": 1,
"refunds": [
],
"payment_type_id": "account_money",
"counter_currency": null,
"fee_details": [
{
"amount": 43.75,
"fee_payer": "collector",
"type": "application_fee"
}
],
"acquirer": null,
"date_created": "2018-03-05T10:07:15.000-04:00",
"id": 3507121175,
"collector": {
"id": 166986265,
"first_name": "Lizeth",
"phone": {
"extension": null,
"area_code": null,
"number": "0445532306416"
},
"email": null,
"identification": {
"number": "861029",
"type": "RFC"
},
"last_name": "Contreras Pallares"
},
"date_of_expiration": null,
"order": {
"id": "1653025194",
"type": "mercadolibre"
},
"external_reference": "1653025194",
"merchant_number": null,
"call_for_authorize_id": null,
"currency_id": "MXN",
"sponsor_id": null,
"deduction_schema": null,
"payment_method_id": "account_money",
"additional_info": {
},
"binary_mode": false,
"operation_type": "regular_payment",
"money_release_date": "2018-03-07T10:07:15.000-04:00",
"differential_pricing_id": null,
"payer": {
"id": "305796397",
"first_name": "Splitter",
"phone": {
"extension": null,
"area_code": null,
"number": null
},
"email": null,
"identification": {
"number": null,
"type": null
},
"last_name": "7626d45613",
"entity_type": null,
"type": "registered"
},
"notification_url": null,
"transaction_amount_refunded": 0,
"authorization_code": null,
"date_approved": "2018-03-05T10:07:15.000-04:00",
"live_mode": true
}
Los datos que se reciben dentro de "payer" corresponden a la cuenta interna de Mercado Pago, no al comprador.
Para más información sobre cómo debes utilizar el recurso “payments” revisa la documentación disponible de Gestiona ventas.