Intelligent search powered by OpenAI
POST
REQUIRED
REQUIRED
REQUIRED
400Request error.
empty_required_header
The 'X-Idempotency-Key' header is required and was not sent. Make the requisition again including it.
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.
invalid_total_amount
The value entered in "total_amount" is not equivalent to the sum of the "transactions.payments.amount" field of the total transactions. Please verify if the values are correct.
401Error. Access Token not authorized.
401
The value sent as Access Token is incorrect. Please check and try again with the correct value.
402Processing error.
402
Order was created but some transaction failed. Check the "errors" field for more information.
404Error. Order not found.
order_not_found
Order not found. Please check if you provided the correct order ID.
409Some specific system rule does not allow the action to be performed due to defined restrictions.
idempotency_key_already_used
The value sent as the idempotency header has already been used. Please try the request again sending a new value.
500Generic error.
idempotency_validation_failed
Validation fail. Please try submitting the request again.
internal_error
Generic error. Please try submitting the request again.
curl -X POST \
'https://api.mercadopago.com/v1/orders/{order_id}/process'\
-H 'Content-Type: application/json' \
-H 'X-Idempotency-Key: 0d5020ed-1af6-469c-ae06-c3bec19954bb' \
-H 'Authorization: Bearer TEST-8971*********918-01191*********5874530a4*********4799fdf-1*********' \
{
"id": "ORD01J49MMW3SSBK5PSV3DFR32959",
"processing_mode": "automatic",
"external_reference": "ext_ref_1234",
"total_amount": "24.90",
"integration_data": {
"application_id": "1234",
"integrator_id": "dev_123",
"platform_id": "1234567890",
"sponsor": {
"id": "446566691"
}
},
"user_id": "12345",
"created_date": "2024-08-26T13:06:51.045317772Z",
"last_updated_date": "2024-08-26T13:06:51.045317772Z",
"country_code": "BRA",
"type": "online",
"status": "processed",
"status_detail": "accredited",
"capture_mode": "manual",
"payer": {
"email": "test@test.com",
"first_name": "John",
"last_name": "Doe",
"identification": {
"type": "CPF",
"number": "99999999999"
},
"phone": {
"area_code": "11",
"number": "987654321"
},
"address": {
"zip_code": "12345678",
"street_name": "Rua Teste",
"street_number": "123"
}
},
"transactions": {
"payments": [
{
"id": "PAY01J67CQQH5904WDBVZEM4JMEP3",
"amount": "24.90",
"reference_id": "01JEVQM899NWSQC4FYWWW7KTF9",
"status": "processed",
"status_detail": "accredited",
"payment_method": {
"id": "visa",
"type": "credit_card",
"token": "12345",
"installments": 1,
"statement_descriptor": "approved"
}
}
]
},
"description": "Point Mini",
"marketplace": "MERCADOLIVRE",
"items": [
{
"title": "Point Mini",
"unit_price": "12.90",
"quantity": 4,
"description": "Point product for card payments via Bluetooth.",
"id": "1234",
"picture_url": "https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/device-mlb-point-i_medium2x.png",
"category_id": "MLB1055"
}
],
"expiration_time": "P3Y6M4DT12H30M5S"
}