---
title: "Cancel a Gocardless mandate"
method: POST
path: "/api/external/v2/gocardless_mandates/{gocardless_mandate_id}/cancellations"
tags: ["Mandates"]
---

# Cancel a Gocardless mandate

`POST /api/external/v2/gocardless_mandates/{gocardless_mandate_id}/cancellations`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/v2/gocardless_mandates/{gocardless_mandate_id}/cancellations`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token` scopes: `customer_mandates:all`

Cancels a specific Gocardless mandate by ID. The mandate must be in a cancellable state, having one of the following statuses: `pending_submission`, `submitted` or `active`.

> ℹ️
> This endpoint requires the following scope: `customer_mandates:all`

## Path parameters

- `gocardless_mandate_id` integer, required

## Headers

- `X-Company-Id` string

## Response `204`

Mandate cancelled successfully. No content returned.

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden
- `404`: The resource was not found
- `422`: Unprocessable content

## Changes

- **2026-11-03** `871f863307e5`: 1 info
  - added the new optional `header` request parameter `X-Company-Id`

[Operation history](https://skmtc.dev/pennylane/apis/company-v2/changes/api/external/v2/gocardless_mandates/:gocardless_mandate_id/cancellations/post.md)

---

[API](https://skmtc.dev/pennylane/apis/company-v2.md) - [All operations](https://skmtc.dev/pennylane/apis/company-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/company-v2/revisions/871f863307e5?raw)
