This endpoint allows you to cancel an existing subscription. You can either cancel immediately or set it to cancel at the end of the current billing period.
Documentation Index
Fetch the complete documentation index at: https://docs.paypal.ai/llms.txt
Use this file to discover all available pages before exploring further.
Use the /v1/oauth2/token endpoint to obtain an access token and pass it as a Bearer token in the Authorization header.
The unique external identifier of the subscription
Cancel request for a subscription.
Option specifying how the subscription should be canceled
IMMEDIATE, END_OF_PERIOD "IMMEDIATE"
Updated subscription object
External reference to the customer
^[a-zA-Z0-9_-]*$"client-jkl101"
The subscription external unique identifier supplied by client. Must contain only alphanumeric characters, underscores, and hyphens.
^[a-zA-Z0-9_-]*$"SUB_1752779018503"
The plan code
"Plan-Code-1753840215"
The name of the subscription.
"Subscription_1"
The effective start date of the subscription; can be past, current, or future. Date must be provided in ISO 8601 format
"2025-06-01T00:00:00Z"
The subscription will terminate on this date without renewal. Date must be provided in ISO 8601 format
"2028-01-01T00:00:00Z"
The billing time for the subscription, which can be set as either anniversary or calendar
CALENDAR, ANNIVERSARY "CALENDAR"
Unique identifier for the subscription
"b71befc2-4799-402c-9d13-ca1f72759c64"
The status of the subscription
PENDING, ACTIVE, TERMINATED, CANCELED "ACTIVE"
The date at which a pending subscription is canceled.
"2025-01-01T00:00:00Z"
The date at which an active subscription is canceled.
"2025-01-01T00:00:00Z"
Start date of the current billing period
"2025-05-01T00:00:00Z"
End date of the current billing period
"2025-06-01T00:00:00Z"
The date when the free trial is ended, represented in ISO 8601 date format
"2025-05-01T00:00:00Z"