Home
Documentation
Resources
Partners
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Cancel payment intent - Payment intent - Mercado Pago Developers

Intelligent search powered by OpenAI 

Cancel payment intent

DELETE

https://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..
Request's parameters
HEADER
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 'x-test-scope: sandbox' \
       -H 'Authorization: Bearer TEST-4599*********755-11221*********d497ae962*********ecf8d85-1*********' \
    
Sample answer
{
  "id": "d71e88d6-6281-416b-b8ed-592c27352c99"
}