---
title: "Cancel a Contract"
method: DELETE
path: "/v3/contract?id={contractId}"
---

# Cancel a Contract

`DELETE /v3/contract?id={contractId}`

## Request

- Base URL: `https://sandbox.api.mxmerchant.com/checkout`
- URL: `https://sandbox.api.mxmerchant.com/checkout/v3/contract?id={contractId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/mxmerchant/apis/checkout-api/docs/v3/contract%3Fid=:contractId/delete.ts> (a function with typed inputs; its response is checked against the schema)

This will ***cancel*** active contracts that have payments and ***delete*** inactive contracts or contracts that have not billed yet.

## Query parameters

- `id` integer, required

## Response `204`

204

---

[API](https://skmtc.dev/mxmerchant/apis/checkout-api.md) - [All operations](https://skmtc.dev/mxmerchant/apis/checkout-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mxmerchant/apis/checkout-api/revisions/6807b698abcb?raw)
