Updates the metadata about the subscription. This endpoint allows you to update
the name, status, and other metadata about the subscription.
To update pricing information, use the Update Subscription Version endpoint.
Params
The unique identifier of the subscription to update
Request
{
"name" : "Enterprise Plan - 2024" ,
"status" : "active" ,
"description" : "Annual enterprise subscription" ,
"contractPeriodType" : "fixed" ,
"contractStartDate" : "2024-01-01T00:00:00Z" ,
"contractEndDate" : "2024-12-31T23:59:59Z" ,
"contractDuration" : 12 ,
"firstBillingDate" : "2024-01-01T00:00:00Z" ,
"invoiceGenerationStartDate" : "2024-01-01T00:00:00Z" ,
"trialPeriodDays" : 30 ,
"additionalTerms" : "Custom terms for this enterprise client" ,
"termsOfServiceLinks" : [
{
"title" : "Terms of Service" ,
"url" : "https://example.com/terms"
},
{
"title" : "Privacy Policy" ,
"url" : "https://example.com/privacy"
}
],
"termsOfServiceFiles" : [
{
"title" : "MSA Agreement" ,
"fileURL" : "https://example.com/files/msa.pdf"
}
],
"minimumSpend" : {
"amount" : "10000.00" ,
"period" : "month"
},
"maximumSpend" : {
"amount" : "50000.00" ,
"period" : "month"
},
"discount" : {
"discountType" : "percentage" ,
"amount" : "10.00" ,
"durationType" : "fixed" ,
"durationValue" : 12 ,
"durationUnit" : "months"
},
"autoIssueInvoices" : true ,
"autoPayInvoices" : false ,
"sendInvoicesToCustomer" : true ,
"sendReceiptsToCustomer" : true ,
"autoRenew" : true ,
"renewalPeriodType" : "fixed" ,
"renewalDuration" : 12 ,
"cancelationReason" : "business_needs_changed" ,
"cancelationReasonDescription" : "Client restructuring their technology stack" ,
"invoicePaymentTerms" : "net_30" ,
"invoiceMemoTemplate" : "Thank you for your business with us" ,
"invoiceFooterText" : "Please contact [email protected] with any questions" ,
"sendActivationEmail" : true
}
The name of the subscription, e.g., “Waystar Royco - 2024”
The initial status of the subscription. Possible values: draft
, sent
,
accepted
, active
, canceled
A brief description of the subscription, such as “Initial contract for Waystar
Royco”
The period type for the contract. Possible values: monthly_rolling
, fixed
The start date and time of the contract in ISO 8601 format. This is when the
subscription becomes effective
The end date and time of the contract in ISO 8601 format.
The duration of the contract in the units specified by contractPeriodType. if
contractPeriodType is fixed
The initial date when billing should commence for this subscription
invoiceGenerationStartDate
The date when invoice generation should begin. This can differ from the
contract start date
Number of trial days before billing begins, if applicable
Any additional contract terms specific to this subscription
Links to terms of service documents that apply to this subscription Show Terms of Service Link
The title of the document
Files containing terms of service that apply to this subscription Show Terms of Service File
Minimum spending threshold for the subscription The monetary amount for the threshold
The period for the threshold (e.g., “month”, “year”)
Maximum spending threshold for the subscription The monetary amount for the threshold
The period for the threshold (e.g., “month”, “year”)
Discount applied to the subscription The type of discount. Possible values: percentage
, fixed
The amount of the discount - for percentage discounts, this is a
percentage (e.g., “10.00” for 10%)
How long the discount applies. Possible values: monthly_rolling
, fixed
The duration value, required if durationType is fixed
The unit of the duration. Possible values: days
, weeks
, months
,
years
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
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
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
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
Whether the subscription should automatically renew. If not provided, defaults
to the plan’s setting if creating from a plan
The period type for renewals. Required if autoRenew is true. Possible values:
monthly_rolling
, fixed
The duration for renewals. Required if renewalPeriodType is fixed
The reason for cancelation if the subscription is being canceled. Possible
values depend on your organization’s configured cancelation reasons.
cancelationReasonDescription
Additional description or notes regarding the cancelation reason.
Payment terms for invoices. Possible values: on_issue
, net_7
, net_15
,
net_30
, net_60
, net_90
, indefinite
Template for invoice memos
Text to display in the footer of invoices
Whether to send an activation email when the subscription is activated
Response
{
"id" : "sub_0000000000000001" ,
"createdAt" : "2024-01-01T12:00:00Z" ,
"updatedAt" : "2024-01-01T12:00:00Z" ,
"organizationId" : "org_0000000000000001" ,
"name" : "Enterprise Plan - 2024" ,
"accountId" : "acc_0000000000000001" ,
"purchaseOrderNumber" : "PO-12345" ,
"description" : "Annual enterprise subscription" ,
"trialPeriodDays" : 30 ,
"additionalTerms" : "Custom terms for this enterprise client" ,
"termsOfServiceLinks" : [
{
"title" : "Terms of Service" ,
"url" : "https://example.com/terms"
},
{
"title" : "Privacy Policy" ,
"url" : "https://example.com/privacy"
}
],
"termsOfServiceFiles" : [
{
"title" : "MSA Agreement" ,
"fileURL" : "https://example.com/files/msa.pdf"
}
],
"minimumSpend" : {
"amount" : "10000.00" ,
"period" : "month"
},
"maximumSpend" : {
"amount" : "50000.00" ,
"period" : "month"
},
"contractStartDate" : "2024-01-01T00:00:00Z" ,
"contractEndDate" : "2024-12-31T23:59:59Z" ,
"contractDuration" : 12 ,
"contractPeriodType" : "fixed" ,
"discount" : {
"discountType" : "percentage" ,
"amount" : "10.00" ,
"durationType" : "fixed" ,
"durationValue" : 12 ,
"durationUnit" : "months"
},
"currency" : "USD" ,
"sourceCurrency" : "USD" ,
"conversionRate" : 1 ,
"conversionRateDate" : "2024-01-01T00:00:00Z" ,
"status" : "draft" ,
"quoteTemplateId" : "qt_0000000000000001" ,
"signerName" : "John Doe" ,
"signerEmail" : "[email protected] " ,
"signerJobTitle" : "CEO" ,
"cancelationReason" : "no_longer_required" ,
"cancelationReasonDescription" : "We no longer have a need for this subscription" ,
"activatedAt" : "2024-01-01T00:00:00Z" ,
"endedAt" : "2024-12-31T23:59:59Z" ,
"autoIssueInvoices" : true ,
"autoPayInvoices" : false ,
"sendInvoicesToCustomer" : true ,
"sendReceiptsToCustomer" : true ,
"invoiceGenerationStartDate" : "2024-01-01T00:00:00Z" ,
"autoRenew" : true ,
"renewalPeriodType" : "fixed" ,
"renewalDuration" : 12 ,
"renewalHistory" : [],
"firstBillingDate" : "2024-01-01T00:00:00Z" ,
"lastBillingDate" : "2024-12-31T23:59:59Z" ,
"chargeOneoffPricesOnContractStart" : true ,
"hasPDF" : false ,
"invoicePaymentTerms" : "net_30" ,
"invoiceMemoTemplate" : "Thank you for your business with us" ,
"invoiceFooterText" : "Please contact [email protected] with any questions" ,
"sendActivationEmail" : true
}
Unique identifier for the subscription
When the subscription was created in ISO 8601 format
When the subscription was last updated in ISO 8601 format
The organization ID that owns this subscription
The name of the subscription, e.g., "Enterprise Plan - 2024"
The customer account ID associated with this subscription. This is typically
an Alguna customer ID
The purchase order number provided by the customer for this subscription
A brief description of the subscription, such as "Annual enterprise
subscription"
Number of trial days before billing begins
Any additional contract terms specific to this subscription
Links to terms of service documents that apply to this subscription Show Terms of Service Link
The title of the document
Files containing terms of service that apply to this subscription Show Terms of Service File
Minimum spending threshold for the subscription The monetary amount for the threshold
The period for the threshold (e.g., "month", "year")
Maximum spending threshold for the subscription The monetary amount for the threshold
The period for the threshold (e.g., "month", "year")
When the contract begins in ISO 8601 format
When the contract ends in ISO 8601 format. Only set if contractPeriodType is
fixed
The duration of the contract in the units specified by contractPeriodType
The period type for the contract. Possible values: monthly_rolling
, fixed
Discount applied to the subscription The type of discount. Possible values: percentage
, fixed
The amount of the discount - for percentage discounts, this is a
percentage (e.g., "10.00" for 10%)
How long the discount applies. Possible values: monthly_rolling
, fixed
The duration value, required if durationType is fixed
The unit of the duration. Possible values: days
, weeks
, months
,
years
When the discount ends (deprecated, use calculated value)
The currency for the subscription (e.g., "USD")
The original currency if the subscription was converted from another currency
The rate used for currency conversion, if applicable
When the conversion rate was determined
Current status of the subscription. Possible values: draft
, sent
,
accepted
, active
, canceled
ID of the quote template used, if applicable
Name of the person who signed the subscription
Email of the person who signed the subscription
Job title of the person who signed the subscription
Reason for cancellation if the subscription was canceled. Possible values:
no_longer_required
, moving_provider
, pricing
, support
, features
,
other
cancelationReasonDescription
Additional details about the cancellation reason
When the subscription was activated
When the subscription ended
Whether invoices are automatically issued for this subscription
Whether invoices are automatically paid for this subscription
Whether invoices are sent to the customer
Whether receipts are sent to the customer
invoiceGenerationStartDate
When invoice generation begins in ISO 8601 format. This can differ from the
contract start date
Whether the subscription automatically renews
The period type for renewals. Possible values: monthly_rolling
, fixed
The duration for renewals if renewalPeriodType is fixed
History of subscription renewals, with details about each renewal event
The initial billing date in ISO 8601 format
The most recent billing date in ISO 8601 format
chargeOneoffPricesOnContractStart
Whether one-off prices are charged at contract start rather than on the first
billing date
Whether the subscription has a generated PDF document
Payment terms for invoices. Possible values: on_issue
, net_7
, net_15
,
net_30
, net_60
, net_90
, indefinite
Template for invoice memos
Text displayed in the footer of invoices for this subscription
Whether an activation email is sent when the subscription is activated