/merchant_orders/:id
BASE URI https://api.mercadopago.com/merchant_orders/{id}
HTTP Request
curl
curl -X GET \
'https://api.mercadopago.com/merchant_orders/:id' \
-H 'Authorization: Bearer ACCESS_TOKEN_ENV'
Request Params
ParameterTypeDescription
id
Integer
Identificador de orden.
HTTP Response
json
{
"id": 9999999999,
"status": "closed",
"external_reference": "default",
"preference_id": "Preference identification",
"payments": [
{
"id": 9999999999,
"transaction_amount": 1,
"total_paid_amount": 1,
"shipping_cost": 0,
"currency_id": "[FAKER][CURRENCY][ACRONYM]",
"status": "approved",
"status_detail": "accredited",
"operation_type": "regular_payment",
"date_approved": "2019-04-02T14:35:35.000-04:00",
"date_created": "2019-04-02T14:35:34.000-04:00",
"last_modified": "2019-04-02T14:35:35.000-04:00",
"amount_refunded": 0
}
],
"shipments": [
{
"id": 99999999999,
"shipment_type": "shipping",
"shipping_mode": "me2",
"picking_type": null,
"status": "delivered",
"substatus": null,
"items": [
{
"id": "not specified",
"description": "shipment item description",
"quantity": 1,
"dimensions": "1.0x10.0x23.0,100.0",
"dimensions_source": null
}
],
"date_created": "2019-04-02T14:20:46.000-04:00",
"last_modified": "2019-04-12T15:36:48.000-04:00",
"date_first_printed": "2019-04-02T14:35:40.000-04:00",
"service_id": 999,
"sender_id": 999999999,
"receiver_id": 999999999,
"receiver_address": {
"id": 9999999999,
"address_line": "address line",
"city": {
"id": null,
"name": "City Name"
},
"state": {
"id": "AR-X",
"name": "state name"
},
"country": {
"id": "AR",
"name": "Argentina"
},
"latitude": "0.000000",
"longitude": "0.000000",
"comment": "shipment comment",
"contact": "shipment contact",
"phone": "9999999999",
"zip_code": "9999",
"street_name": "Street name",
"street_number": "999",
"floor": null,
"apartment": null
},
"shipping_option": {
"id": 999999999,
"cost": 0,
"currency_id": "[FAKER][CURRENCY][ACRONYM]",
"shipping_method_id": 99999,
"estimated_delivery": {
"date": "2019-04-11T00:00:00.000-03:00",
"time_from": null,
"time_to": null
},
"name": "Normal a domicilio",
"list_cost": 0,
"speed": {
"handling": 72,
"shipping": 72
}
}
}
],
"collector": {
"id": 999999999,
"nickname": null
},
"marketplace": "NONE",
"notification_url": null,
"date_created": "2018-09-14T13:11:31.000-04:00",
"last_updated": "2018-09-14T13:11:43.000-04:00",
"sponsor_id": null,
"shipping_cost": 0,
"total_amount": 5,
"site_id": "[FAKER][GLOBALIZE][SITE_ID]",
"paid_amount": 5,
"refunded_amount": 0,
"payer": {
"id": 999999999,
"email": ""
},
"items": [
{
"id": "item id",
"category_id": "item category",
"currency_id": "[FAKER][CURRENCY][ACRONYM]",
"description": "item description",
"picture_url": "item picture url",
"title": "item title",
"quantity": 1,
"unit_price": 5
}
],
"cancelled": false,
"additional_info": "additional information",
"application_id": 9999999999999999,
"order_status": "paid"
}
Error Codes
CodeDescription
400 BAD_REQUEST
invalid_format
invalid id.
invalid_format
invalid caller.id.
401 UNAUTHORIZED
invalid_token
access denied.
invalid_caller_id
invalid caller_id