Respuestas
En esta secciĂłn encontrarĂĄs el detalle de cada respuesta a los requests realizados para la captura de pago.
Pago aprobado
{
"id":10458724,
"status":"approved",
"wallet_payment":{
"transaction_amount":700.50,
"description":"Payment for the purchase of furniture",
"external_reference":"Pago_123"
},
"payments":[
{
"id":3870106238,
"status":"approved",
"status_detail":"accredited",
"payment_type_id":"credit_card",
"payment_method_id":"visa",
"transaction_amount":700.50,
"installments":1,
"description":"Payment for the purchase of furniture",
"capture":true,
"external_reference":"Pago_123"
}
],
"disbursements": [
{
"collector_id": "ID_COLLECTOR"
}
],
"payer":{
"id":786547
},
"site_id": "MLM",
"binary_mode":true,
"date_created":"2018-10-20T09:34:20.518-04:00",
"date_last_updated":"2018-10-20T09:34:20.518-04:00"
}
Pago rechazado
CĂłdigo de status: 201
{
"id":80458724,
"status":"rejected",
"wallet_payment":{
"transaction_amount":700.50,
"description":"Payment for the purchase of furniture"
},
"payments":[
{
"id":3870106238,
"status":"rejected",
"status_detail":"cc_rejected_other_reason",
"payment_type_id":"credit_card",
"payment_method_id":"visa",
"transaction_amount":700.50,
"installments":1,
"issuer_id":25,
"description":"Payment for the purchase of furniture",
"capture":true
}
],
"disbursements": [
{
"collector_id": "ID_COLLECTOR"
}
],
"payer":{
"id":786547
},
"site_id": "MLM",
"binary_mode":true
}
Pago rechazado debido a falta de saldo en la cuenta
Esta respuesta se produce cuando se intenta crear un pago pero el payer no tiene saldo suficiente en su cuenta de Mercado Pago.
CĂłdigo de status: 201
{
"id":90458724,
"status":"rejected",
"wallet_payment":{
"transaction_amount":700.50,
"description":"Payment for the purchase of furniture"
},
"payments":[
{
"id":null,
"status":"rejected",
"status_detail":"insufficient_money",
"payment_type_id":"account_money",
"payment_method_id":"account_money",
"transaction_amount":700.50,
"description":"Payment for the purchase of furniture",
"capture":true
}
],
"disbursements": [
{
"collector_id": "ID_COLLECTOR"
}
],
"payer":{
"id":786547
}
"site_id": "MLM",
"binary_mode":true
}
Pago rechazado por falta de autorizaciĂłn
Este error se produce cuando el cliente cancela la vinculaciĂłn.
CĂłdigo de status: 401
{
"status": "401",
"error": "unauthorized",
"message": "Invalid payer token.",
"cause": [
{
"code":"401003",
"message": "Invalid payer token",
"data": null
}
]
}
Pago rechazado debido a falta de parĂĄmetro en encabezado
CĂłdigo de status: 400
{
"status": "400",
"error": "bad request",
"message": "Missing header parameter.",
"cause": []
}
CĂłdigo de status: 201