Cancel agreement - Agreements - Mercado Pago Developers
Cancel agreement

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

https://api.mercadopago.com/v2/wallet_connect/agreements/{agreement_id}
Request parameters
Header
Authorization
string

REQUIRED

Access Token obtained through the developer panel. Must be sent in all requests.
x-platform-id
string
Field intended for platforms or modules that offer Mercado Pago in their solutions.
Path
agreement_id
string

REQUIRED

Unique ID that identifies an agreement.
Query
client.id
number
Unique ID that identifies a client
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 'Authorization: Bearer APP_USR-8*********932064-12*********edf6d3c99*********2236c703f*********668' \
       -H 'x-platform-id: YOUR_PLATFORM_ID' \
    
Response
// This request has not been responded to.