Troubleshooting
If you don’t receive notifications, you will need to apply the search on demand using the external_reference
of the order as search criteria as a contingency method. It can be done through two mechanisms:
Mechanism | Description |
Manual | The point of sale must include a button to perform the search. |
Automatic | After 30 seconds without receiving any notification, an order search starts at every interval of, for example, 5 seconds. |
For any of the mechanisms described above we will use the following endpoint:
curl
curl --location --request GET 'https://api.mercadopago.com/merchant_orders?external_reference=EXTERNAL_REFERENCE' \
--header 'Authorization: Bearer ACCESS_TOKEN'
The answer will be the same as using the order ID and they must use the same criteria mentioned above to confirm the payment of the order.
If the QR on which the order was published has not been scanned, the response will be:
json
{
"elements": null,
"next_offset": 0,
"total": 0
}