Search payment intenthttps://api.mercadopago.com/point/integration-api/payment-intents/{paymentintentid}
This endpoint will provide information of a payment intent created during the last three months, its final status and the payment-id, which can be used to get the final status of the transaction in the Payments API. The Webhook notifications are the main communication point of the payment intent information, then this endpoint should be used for testing and eventualities, and not for polling, because it has restrictions, like allowing to get information one request per second.
GET
Request parameters
Header
Authorization
Access Token obtained through the developer panel. Must be sent in all requests.string
REQUIRED
x-test-scope
This is a temporary header, it should be used just for development with the value "sandbox"string
Path
paymentIntentId
Payment intent identificationstring
REQUIRED
Response parameters
id
Identification of the payment intentstring
state
State of the payment intentstring
amount
Total amount of payment intentinteger
device_id
Identifier of the device to which the payment intent was assignedstring
Errors
401Error
401
Unauthorized - Token is invalid
403Error
403
Forbidden - Integrator isn't registered
404Error
404
Not-found - Payment intent doesn't exist
500Error
500
Internal server error
Request
curl -X GET \
'https://api.mercadopago.com/point/integration-api/payment-intents/{paymentintentid}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-8*********88776-122*********fc20dede6*********a497d7225*********64' \
-H 'x-test-scope: sandbox' \
Response
{
"id": "7f25f9aa-eea6-4f9c-bf16-a341f71ba2f1",
"state": "FINISHED",
"amount": 1500,
"device_id": "PAX_A910__SMARTPOS1234345545",
"payment": {
"id": 16499678033
},
"additional_info": {
"external_reference": "some-reference-from-your-application",
"print_on_terminal": true,
"ticket_number": "S0392JED"
}
}