Skip to main content
PATCH
Updates the metadata about the subscription. This endpoint allows you to update the name and other metadata about the subscription. To change the subscription status, use the dedicated Activate or Cancel endpoints. To update pricing information, use the Update Subscription Version endpoint.

Params

string
required
The unique identifier of the subscription to update

Request

string
The name of the subscription, e.g., “Waystar Royco - 2024”
string
A brief description of the subscription, such as “Initial contract for Waystar Royco”
string
The period type for the contract. Possible values: monthly_rolling, fixed
datetime
The start date and time of the contract in ISO 8601 format. This is when the subscription becomes effective
datetime
The end date and time of the contract in ISO 8601 format.
integer
The duration of the contract in the units specified by contractPeriodType. if contractPeriodType is fixed
datetime
The initial date when billing should commence for this subscription
datetime
The date when invoice generation should begin. This can differ from the contract start date
integer
Number of trial days before billing begins, if applicable
string
Any additional contract terms specific to this subscription
Links to terms of service documents that apply to this subscription
array
Files containing terms of service that apply to this subscription
object
Minimum spending threshold for the subscription
object
Maximum spending threshold for the subscription
object
Discount applied to the subscription
boolean
Whether to automatically issue invoices for this subscription. If not provided, defaults to the organization’s setting or plan’s setting if creating from a plan
boolean
Whether to automatically pay invoices for this subscription. If not provided, defaults to the customer’s setting or plan’s setting if creating from a plan
boolean
Whether to send invoices to the customer. If not provided, defaults to the organization’s setting or plan’s setting if creating from a plan
boolean
Whether to send receipts to the customer. If not provided, defaults to the organization’s setting or plan’s setting if creating from a plan
boolean
Whether the subscription should automatically renew. If not provided, defaults to the plan’s setting if creating from a plan
string
The period type for renewals. Required if autoRenew is true. Possible values: monthly_rolling, fixed
integer
The duration for renewals. Required if renewalPeriodType is fixed
string
The reason for cancelation if the subscription is being canceled. Possible values depend on your organization’s configured cancelation reasons.
string
Additional description or notes regarding the cancelation reason.
string
Payment terms for invoices. Possible values: on_issue, net_7, net_15, net_30, net_60, net_90, indefinite
string
Template for invoice memos
Text to display in the footer of invoices
boolean
Whether to enable roll-up billing for this subscription. When enabled, invoices for this subscription are billed to the parent customer instead of the subscription’s own customer. Requires the customer to be part of a customer family with a parent customer configured
boolean
Whether to send an activation email when the subscription is activated

Response

string
Unique identifier for the subscription
datetime
When the subscription was created in ISO 8601 format
datetime
When the subscription was last updated in ISO 8601 format
string
The organization ID that owns this subscription
string
The name of the subscription, e.g., "Enterprise Plan - 2024"
string
The customer account ID associated with this subscription. This is typically an Alguna customer ID
string
The purchase order number provided by the customer for this subscription
string
A brief description of the subscription, such as "Annual enterprise subscription"
integer
Number of trial days before billing begins
string
Any additional contract terms specific to this subscription
Links to terms of service documents that apply to this subscription
array
Files containing terms of service that apply to this subscription
object
Minimum spending threshold for the subscription
object
Maximum spending threshold for the subscription
datetime
When the contract begins in ISO 8601 format
datetime
When the contract ends in ISO 8601 format. Only set if contractPeriodType is fixed
integer
The duration of the contract in the units specified by contractPeriodType
string
The period type for the contract. Possible values: monthly_rolling, fixed
object
Discount applied to the subscription
string
The currency for the subscription (e.g., "USD")
string
The original currency if the subscription was converted from another currency
string
The rate used for currency conversion, if applicable
datetime
When the conversion rate was determined
string
Current status of the subscription. Possible values: draft, sent, accepted, active, canceled
string
ID of the plan this subscription was created from, if applicable
string
Name of the person who signed the subscription
string
Email of the person who signed the subscription
string
Job title of the person who signed the subscription
string
Reason for cancellation if the subscription was canceled. Possible values: no_longer_required, moving_provider, pricing, support, features, other
string
Additional details about the cancellation reason
datetime
When the subscription was activated
datetime
When the subscription ended
boolean
Whether invoices are automatically issued for this subscription
boolean
Whether invoices are automatically paid for this subscription
boolean
Whether invoices are sent to the customer
boolean
Whether receipts are sent to the customer
datetime
When invoice generation begins in ISO 8601 format. This can differ from the contract start date
boolean
Whether the subscription automatically renews
string
The period type for renewals. Possible values: monthly_rolling, fixed
integer
The duration for renewals if renewalPeriodType is fixed
array
History of subscription renewals, with details about each renewal event
datetime
The initial billing date in ISO 8601 format
datetime
The most recent billing date in ISO 8601 format
boolean
Whether one-off prices are charged at contract start rather than on the first billing date
boolean
Whether the subscription has a generated PDF document
string
Payment terms for invoices. Possible values: on_issue, net_7, net_15, net_30, net_60, net_90, indefinite
string
Template for invoice memos
Text displayed in the footer of invoices for this subscription
boolean
Whether an activation email is sent when the subscription is activated