Cancel agreement - Agreements - Mercado Pago Developers
Which documentation are you looking for?

Do not know how to start integrating? 

Check the first steps
Cancel agreement

DELETE

https://api.mercadopago.com/v2/wallet_connect/agreements/{agreement_id}
Endpoint to cancel an agreement by id. An agreement is an authorization link that the buyer receives to allow the seller to access their Mercado Pago wallet to debit the payment. You will need to cancel an agreement when the vinculation flow has ended.
Request's parameters
PATH
agreementId
string

REQUIRED

Unique ID that identifies an agreement.
QUERY
client.id
number
Unique ID that identifies a client
HEADER
x-platform-id
string
Field intended for platforms or modules that offer Mercado Pago in their solutions.
Response parameters
Esta solicitação não tem resposta
Errors

400Error

400

Bad-Request

404Error

404

Not-Found

500Error

500

Error

Request
curl -X DELETE \
    'https://api.mercadopago.com/v2/wallet_connect/agreements/{agreement_id}?client.id=1451895580758649'\
    -H 'Content-Type: application/json' \
       -H 'x-platform-id: YOUR_PLATFORM_ID' \
       -H 'Authorization: Bearer TEST-3322*********190-03031*********46528954c*********0339910-1*********' \
    
Sample answer
// This request has not been responded to.