Cancel payment intent

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

https://api.mercadopago.com/point/integration-api/devices/{deviceid}/payment-intents/{paymentintentid}
Request parameters
Header
Authorization
string

REQUIRED

Access Token obtained through the developer panel. Must be sent in all requests.
x-test-scope
string
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 removed
Path
deviceId
string

REQUIRED

Identifier of the device that will have a payment intent queued
paymentIntentId
string

REQUIRED

Payment intent identifier
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"
}