Cancel agreement - Agreements - Mercado Pago Developers
Cancel agreement

DELETE

/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
agreementId

REQUIRED

string
Localization: pathUnique ID that identifies an Agreement
client.id
number
Localization: queryUnique ID that identifies a Client
x-platform-id
string
Localization: headerField intended for platforms or modules that offer Mercado Pago in their solutions
Response parameters
This request has no response.
Request
curl
curl -X DELETE \
      'https://api.mercadopago.com/v2/wallet_connect/agreements/{agreement_id}?client.id=1451895580758649' \
      -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' 
Answer
json
{}
Errors
400bad_request
400Parameter agreement_id is required
400Parameter agreementId has more than 32 characters
400Parameter agreement_id must be an alfanumeric value
404bad_request
404The Agreement with that id
500bad_request
500Internal server error