# 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** `/v2/wallet_connect/agreements/{agreement_id}` ## Request parameters ### Header - `x-platform-id` (string, optional) 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, optional) Unique ID that identifies a client ## Response parameters This endpoint has no response body. ## Errors | Status | Error | Description | | ------- | ------- | ----------- | | 400 | 400 | Bad-Request | | 404 | 404 | Not-Found | | 500 | 500 | Error | ## Request example ### cURL ```bash curl -X DELETE \ 'https://api.mercadopago.com/v2/wallet_connect/agreements/{agreement_id}?client.id=' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ' ```