Search payment intent/point/integration-api/payment-intents/{paymentintentid}This endpoint allows to get information of payment intent. This endpoint will provide the payment intent’s information, its final status and the payment-id, which can be used to get the final status of the transaction in the Payment-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 consume by time, allows to get information one request per second.
GET
Products that use it:
Request's parameters
x-test-scope
Localization: headerThis is a temporary header, it should be used just for development with the value "sandbox"string
paymentIntentIdstring
Localization: pathPayment Intent IdREQUIRED
Response parameters
id
Localization: bodystring
state
Localization: bodystring
amount
Localization: bodyinteger
device_id
Localization: bodystring
Request
curl
curl -X GET \
'https://api.mercadopago.com/point/integration-api/payment-intents/{paymentintentid}' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Answer
json
{
"id": "7f25f9aa-eea6-4f9c-bf16-a341f71ba2f1",
"state": "FINISHED",
"amount": 1500,
"device_id": "INGENICO_MOVE2500__ING-23976989",
"payment": {
"id": 16499678033
},
"additional_info": {
"external_reference": "some-reference-from-your-application",
"print_on_terminal": true,
"ticket_number": "S0392JED"
}
}
Errors
401bad_request
401
403bad_request
403 Forbidden - Integrator isn't registered
404bad_request
404 Not-found - Payment intent doesn't exist
500bad_request
500 Internal server error