Cancel agreement/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.
DELETE
Products that use it:
Request's parameters
agreementIdstring
Localization: pathUnique ID that identifies an AgreementREQUIRED
client.id
Localization: queryUnique ID that identifies a Clientnumber
x-platform-id
Localization: headerField intended for platforms or modules that offer Mercado Pago in their solutionsstring
Response parameters
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
400
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