Request - Curl
curl -X GET \
-H 'accept: application/json' \
'https://api.mercadolibre.com/collections/notifications/identificador-de-la-operación?access_token=tu_access_token'
Para pruebas en modo Sandbox la URL del método GET es https://api.mercadolibre.com/sandbox/collections/notifications/identificador-de-la-operación?access_token=tu_access_token
Response
Status code: 200 OK
{
collection: {
id: 52675155,
site_id: "Identificador de país",
operation_type: "regular_payment",
order_id: "4442154",
external_reference: "150671633",
status: "approved",
status_detail: "accredited",
payment_type: "ticket",
date_created: "2011-09-02T04:00:000Z",
last_modified: "2011-09-12T02:52:530Z",
date_approved: "2011-09-02T02:49:530Z",
money_release_date: "2011-09-09T02:49:530Z",
currency_id: "Tipo de moneda",
transaction_amount: 50.5,
shipping_cost: 0,
finance_charge: null,
total_paid_amount: 50.5,
net_received_amount: 0,
reason: "Título de lo que estás pagando",
payer: {
id: 36073078,
first_name: "payer-name",
last_name: "payer-surname",
email: "[email protected]",
nickname: "payer-MercadoLibre's-nickname"
phone: {
area_code: "011",
number: "3486 5039",
extension: null
}
},
collector: {
id: 68961616,
first_name: "collector-name",
last_name: "collector-surname",
email: "[email protected]",
nickname: "collector-MercadoLibre's-nickname"
phone: {
area_code: "211",
number: "3486 5039",
extension: null
}
}
}
}
Saludos coordiales
Guido
http://www.guidobatanmaquinarias.com