Authorizations
Use the /v1/oauth2/token endpoint to obtain an access token and pass it as a Bearer token in the Authorization header.
Path Parameters
The unique external identifier of the subscription
Body
Update request for a subscription.
The name of the subscription.
"Subscription_1"
Date and time in ISO 8601 format. 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"
Date and time in ISO 8601 format. The subscription will terminate on this date without renewal. Date must be provided in ISO 8601 format
"2028-01-01T00:00:00Z"
The status of the subscription If the status field is not defined and multiple active and pending subscriptions exists, we will update the active subscription. However, if you wish to update a pending subscription, please ensure that you include the status attribute with the pending value in your request body.
PENDING
, ACTIVE
, TERMINATED
, CANCELED
"ACTIVE"
Response
Updated subscription object
External reference to the customer
"client-jkl101"
The subscription external unique identifier supplied by client. Must contain only alphanumeric characters, underscores, and hyphens.
"SUB_1752779018503"
The plan code
"Plan-Code-1753840215"
Unique identifier for the subscription
"b71befc2-4799-402c-9d13-ca1f72759c64"
The status of the subscription
PENDING
, ACTIVE
, TERMINATED
, CANCELED
"ACTIVE"
Date and time in ISO 8601 format. The date at which a pending subscription is canceled.
"2025-01-01T00:00:00Z"
Date and time in ISO 8601 format. The date at which an active subscription is canceled.
"2025-01-01T00:00:00Z"
Date and time in ISO 8601 format. Start date of the current billing period
"2025-05-01T00:00:00Z"
End date of the current billing period Date and time in ISO 8601 format.
"2023-10-01T12:00:00Z"
Date and time in ISO 8601 format. The date when the free trial is ended, represented in ISO 8601 date format
"2025-05-01T00:00:00Z"
The name of the subscription.
"Subscription_1"
Date and time in ISO 8601 format. 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"
Date and time in ISO 8601 format. 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"