---
title: "Cancel a billing agreement"
method: POST
path: "/paypal/billing_agreements/{id}/cancel"
---

# Cancel a billing agreement

`POST /paypal/billing_agreements/{id}/cancel`

## Request

- Base URL: `https://gateway.pmnts-sandbox.io/v1.0`
- URL: `https://gateway.pmnts-sandbox.io/v1.0/paypal/billing_agreements/{id}/cancel`
- Auth: HTTP basic

## Path parameters

- `id` string, required

## Headers

- `Content-Type` string

## Response `200`

200

- object
  - `successful` boolean
  - `response` object
    - `id` string
    - `name` string
    - `description` string
    - `state` string
    - `payer` object
      - `payer_info` object
        - `email` string
        - `first_name` string
        - `last_name` string
        - `payer_id` string
    - `shipping_address` object
      - `first_name` string
      - `last_name` string
      - `address_1` string
      - `address_2` string
      - `city` string
      - `state` string
      - `postcode` string
      - `country` string
    - `merchant_custom_data` string
    - `created_at` string
  - `errors` unknown[]
    - unknown

## Other responses

- `404`: 404
- `422`: 422

## Changes

- **2026-11-03** `a62ddbae3800`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fatzebra/apis/gateway/changes/paypal/billing_agreements/:id/cancel/post.md)

---

[API](https://skmtc.dev/fatzebra/apis/gateway.md) - [All operations](https://skmtc.dev/fatzebra/apis/gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/fatzebra/apis/gateway/revisions/a62ddbae3800?raw)
