Intelligent search powered by OpenAI
Get order by ID
GET
Products that use it:
Request's parameters
PATH
id
Order ID, returned in the response to the request made for its creation.string
REQUIRED
Response parameters
id
Identifier of the order created in the request, automatically generated by Mercado Pago.string
type
Order type.string
point: Order created for Mercado Pago Point payments.
external_reference
It is the external reference of the order, assigned when creating it. he maximum allowed limit is 64 characters, and the allowed characters are: uppercase and lowercase letters, numbers, and the symbols hyphen (-) and un...View morestring
description
Description of the product or service purchased, the reason for the payment order.string
Errors
400Error.
invalid_path_param
The order_id provided in the request path is not correct. Please confirm it and provide a valid ID to try again.
401Error.
unauthorized
The value sent as Access Token is incorrect. Please check and try again with the correct value.
404Error.
order_not_found
Order not found. Please check if you provided the correct order ID.
500Error.
500
Internal server error. Please try submitting the request again.
Request
curl -X GET \
'https://api.mercadopago.com/v1/orders/{id}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-8971*********918-01191*********5874530a4*********4799fdf-1*********' \
Sample answer
{
"id": "123",
"type": "point",
"external_reference": "ext_ref_1234",
"description": "Point Mini",
"site_id": "MLB",
"integration_data": {
"application_id": 1234567890,
"platform_id": "1234567890",
"integrator_id": "1234567890",
"sponsor": {
"id": "446566691"
}
},
"status": "created",
"created_date": "2024-09-10T14:26:42.109320977Z",
"last_updated_date": "2024-09-10T14:26:42.109320977Z",
"type_config": {
"terminal_id": "PAX_A910__SMARTPOS1423",
"ticket_number": "S0392JED",
"flow_process": "credit_card"
},
"transactions": {
"payments": [
{
"id": "pay_01J67CQQH5904WDBVZEM4JMEP3",
"amount": "24.90",
"status": "created",
"status_detail": "cancelled_by_api",
"reference_id": "12345678",
"payment_method": {
"type": "credit_card",
"installments": 1
}
}
]
}
}