---
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`

## Request

- Base URL: `https://publicapi.payments.service.gov.uk`
- URL: `https://publicapi.payments.service.gov.uk/v1/agreements/{agreementId}/cancel`
- Auth: HTTP bearer

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.dev/government-digital-service/apis/pay-api.md) - [All operations](https://skmtc.dev/government-digital-service/apis/pay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/government-digital-service/apis/pay-api/revisions/9d66a9f54ae4?raw)
