Cancel payment intenthttps://api.mercadopago.com/point/integration-api/devices/{deviceid}/payment-intents/{paymentintentid}
This endpoint allows to cancel a payment intent while it's status is [open] and it has not been send to the terminal yet.
DELETE
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 only in the development stage with the value "sandbox". When going to production, it should be removedstring
Path
deviceId
Identifier of the device that will have a payment intent queuedstring
REQUIRED
paymentIntentId
Payment intent identifierstring
REQUIRED
Response parameters
id
string
Errors
401Error
401
Unauthorized Token is invalid
403Error
403
Forbidden - Integrator isn't registered
409Error
500Error
500
Internal server error
Request
curl -X DELETE \
'https://api.mercadopago.com/point/integration-api/devices/{deviceid}/payment-intents/{paymentintentid}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********685765-12*********1b4332e5c*********e077d7679*********664' \
-H 'x-test-scope: sandbox' \
Response
{
"id": "d71e88d6-6281-416b-b8ed-592c27352c99"
}