---
title: "Cancel an agreement for recurring payments"
method: POST
path: "/v1/agreements/{agreementId}/cancel"
tags: ["Agreements"]
---

# Cancel an agreement for recurring payments

`POST /v1/agreements/{agreementId}/cancel`

You can use this endpoint to cancel a recurring payments agreement in the `active` status.

## Path parameters

- `agreementId` string, required

## Response `204`

No Content

## Other responses

- `400` — Cancellation of agreement failed
- `401` — Your API key is missing or invalid. Read more about [authenticating GOV.UK Pay API requests](https://docs.payments.service.gov.uk/api_reference/#authentication)
- `404` — Not found
- `429` — Too many requests
- `500` — Downstream system error

---

[API](https://skmtc.net/government-digital-service/apis/pay-api.md) · [All operations](https://skmtc.net/government-digital-service/apis/pay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/government-digital-service/pay-api/revisions/9d66a9f54ae4/schema)
