Intelligent search powered by OpenAIÂ
POST
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.
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.
Some specific system rule does not allow the action to be performed due to defined restrictions.
The order cannot be captured. Please check the order status and try again.
Error. Operation not supported.
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}/capture'\
-H 'Content-Type: application/json' \
-H 'X-Idempotency-Key: 0d5020ed-1af6-469c-ae06-c3bec19954bb' \
-H 'Authorization: Bearer TEST-7434*********159-03141*********cee51edf8*********f94f589-1*********' \
{
"id": "ORD01J49MMW3SSBK5PSV3DFR32959",
"status": "processed",
"status_detail": "accredited",
"transactions": {
"payments": [
{
"id": "PAY01J49MMW3SSBK5PSV3DFR32959",
"amount": "24.90",
"status": "processed",
"status_detail": "accredited",
"reference_id": "01JEVQM899NWSQC4FYWWW7KTF9"
}
]
}
}