Welcome to Zuora Product Documentation

Explore our rich library of product information

Field descriptions

This reference provides descriptions of the fields of the Subscription object.

Name

Required to create?

Allowed operations

Description

AccountId

required

Create Query Update* Delete Filter

This field can be updated when Status is Draft .

The ID of the account associated with this subscription.

Type : zns:ID

Character limit : 32

Version notes : --

Values : a valid account ID

AncestorAccountId

optional

Filter

A filter option for querying all subscriptions under the same account hierarchy.

Type : zns:ID

Character limit : 32

Version notes : --

Values : a valid account ID

AutoRenew

optional

Create Query Update* Delete Filter

This field can be updated when Status is Draft .

Indicates if the subscription automatically renews at the end of the term.

Type : boolean

Character limit :

Version notes : WSDL 20.0+

Values : true , false

CancelledDate

optional

Query Filter

The date on which the subscription was canceled.

Type :

  • date: Supported as of WSDL version 69+

  • dateTime: Supported through WSDL version 68

Character limit :

Version notes : --

Values : a valid date

ContractAcceptanceDate

optional

Create Query Update* Subscribe Delete Filter

The date when the customer accepts the contract.

This field can be updated when Status is Pending Acceptance .

Note : The customer acceptance date is only required if the Require Customer Acceptance of Orders? Setting is set to Yes . If this setting is set to Yes :

  • If ServiceActivationDate field is required, you must set this field, ServiceActivationDate, and ContractEffectiveDate fields in the subscribe call to activate a subscription.

  • If ServiceActivationDate field is not required, you must set both this field and the ContractEffectiveDate field in the subscribe call to activate a subscription. If you only set a valid date in the ContractEffectiveDate field, the subscribe call still returns success, but the subscription is in Pending Acceptance status.

This field can also be updated when the subscription is still on version one (has not been amended before) and the "Allow update Subscription trigger dates?" setting in Billing Settings is set to "Yes".

Type :

  • date: Supported as of WSDL version 69+

  • dateTime: Supported through WSDL version 68

Character limit :

Version notes : --

ContractEffectiveDate

required

Create Query Update* Subscribe Delete Filter

The date when the contract takes effect.

This field can be updated when Status is Draft .

Note : This field is required in the subscribe call. If you set the value of this field to null and both the ServiceActivationDate and ContractAcceptanceDate fields are not required, the subscribe call still returns success, but the new subscription is in DRAFT status. To activate the subscription, you must set a valid date for this field.

This field can also be updated when the subscription is still on version one (has not been amended before) and the "Allow update Subscription trigger dates? " setting in Billing Settings is set to "Yes".

Type :

  • date: Supported as of WSDL version 69+

  • dateTime: Supported through WSDL version 68

Character limit :

Version notes : --

CpqBundleJsonId__QT

optional

Query Filter

The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce.

Do not change the value in this field.

Type : string

Character limit : 32

Version notes : WSDL 72.0+

Values : N/A

CreatedById

optional

Query Filter

The user ID of the person who created the subscription.

Type : zns:ID

Character limit : 32

Version notes : WSDL 20.0+

Values : automatically generated

CreatedDate

optional

Query Filter

The date the subscription was created.

This value is the same as the OriginalCreatedDate value until the subscription is amended.

Type : dateTime

Character limit :

Version notes : WSDL 20.0+

Values : automatically generated

CreatorAccountId

optional

Query Filter

The account ID that created the subscription or the amended subscription.

Type : zns:ID

Character limit : 32

Version notes :

Values : automatically generated

CreatorInvoiceOwnerId

optional

Query Filter

The account ID that owns the invoices associated with the subscription or the amended subscription.

Type : zns:ID

Character limit : 32

Version notes :

Values : automatically generated

Currency

optional

Query

The code corresponding to the currency.

Type : string

Character limit : 3

Version notes : WSDL 137+

Values : a valid currency code

Note : This field is available only if you have the Multiple Currencies feature enabled.

CurrentTerm

optional

Query

The length of the period for the current subscription term.

If TermType is set to TERMED , this field is required and must be greater than 0 . If TermType is set to EVERGREEN , this value is ignored. Default is 0 .

Type : bigint

Character limit : 20

Version notes : WSDL 73.0+

Values : automatically generated

CurrentTermPeriodType

optional

Query

The period type for the current subscription term.

This field is used with the CurrentTerm field to specify the current subscription term.

Type : string

Character limit :

Version notes : WSDL 73.0+

Values :

  • Month (default)

  • Year

  • Day

  • Week

ExternallyManagedBy

optional

Create Query Update

An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.

Type : string

Values :

  • Amazon

  • Apple

  • Google

  • Roku

Id

optional

Query Filter

The ID of this object. Upon creation, the ID of this object is SubscriptionId.

Type : zns:ID

Character limit : 32

Version notes :

Values : automatically generated

InitialTerm

conditional

Create Query Update* Subscribe Delete Filter

The length of the period for the first subscription term.

This field can be updated when Status is Draft . If you use the subscribe() call, this field is required.

Required : If TermType is Termed

Type : bigint

Character limit : 20

Version notes : --

Values : any valid number.

InitialTermPeriodType

optional

Create Query Update* Subscribe Delete Filter

The period type for the first subscription term.

Type : string

Character limit :

Version notes : WSDL 73.0+

Values :

  • Month (default)

  • Year

  • Day

  • Week

Note :

  • This field can be updated when Status is Draft .

  • This field is used with the InitialTerm field to specify the initial subscription term.

InvoiceOwnerId

required

Create Query Update* Delete Filter

This field can be updated when Status is Draft .

The account ID that owns the invoices associated with the subscription.

Type : zns:ID

Character limit :

Version notes : WSDL 32.0+

Va lues : a valid account ID

IsInvoiceSeparate

optional

Create Query Update Delete Filter

Determines if the subscription is invoiced separately. If TRUE , then all charges for this subscription are collected into the subscription's own invoice.

Type : boolean

Character limit :

Version notes : --

V alues : TRUE , FALSE (default)

IsLatestVersion

optional

Query Filter

Indicates whether the current subscription object is the latest version.

Type : boolean

Character limit :

Version notes : WSDL 124.0+

V alues : TRUE , FALSE

LastBookingDate

optional

Query

The last change date of a subscription. This field is writable only when the subscription is newly created as a first version subscription. The value of this field is as follows:

  • For a new subscription created by the Subscribe and Amend APIs, this field has the value of the subscription creation date.

  • For a subscription changed by an amendment, this field has the value of the amendment booking date.

  • For a subscription created or changed by an order, this field has the value of the order date.

Type : dateTime

Character limit :

Version notes : WSDL 122.0+

Name

required

Create Query Update* Delete Filter

The unique identifier of the subscription. If you don't specify a value, then Zuora generates a name automatically.

Whether auto-generated or manually specified, the subscription name must be unique. Otherwise an error will occur.

In WSDL 69+, you can change this value only when the subscription is in Draft status. Once the subscription is activated, you can't change this value, nor can you use this value for a different subscription.

Type : string

Character limit : 100

Version notes : --

Values : one of the following:

  • leave null to automatically generate

  • a string of 100 characters or fewer

Notes

optional

Create Query Update Delete Filter

Use this field to record comments about the subscription.

Type : string

Character limit : 1000

Version notes : --

Values : a string of 1000 characters or fewer

OpportunityCloseDate__QT

optional

Create Query Update Delete Filter

The closing date of the Opportunity.

This field is used in Zuora Reporting Data Sources to report on Subscription metrics.

If the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.

Type : date

Character limit :

Version notes : --

Values : populated by Zuora Quotes

OpportunityName__QT

optional

Create Query Update Delete Filter

The unique identifier of the Opportunity.

This field is used in the Zuora Reporting Data Sources to report on Subscription metrics.

If the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.

Type : string

Character limit : 100

Version notes : --

Values : populated by Zuora Quotes

OriginalCreatedDate

optional

Query Filter

The date when the subscription was originally created. This value is the same as the CreatedDate value until the subscription is amended.

Type: dateTime

Character limit :

Version notes : WSDL 20.0+

Values : automatically generated

OriginalId

optional

Query Filter

The original ID of this subscription.

Type : zns:ID

Character limit :

Version notes : WSDL 20.0+

Values : automatically generated

OriginalSubscriptionId

n/a

n/a

Deprecated . Use OriginalId instead.

PaymentTerm

optional

Query Filter

The name of the payment term associated with the subscription.

Type : string

Character limit : 100

Version notes : WSDL 115.0+

Values : automatically generated

PreviousSubscriptionId

optional

Query Filter

The subscription ID immediately prior to the current subscription.

Type : zns:ID

Character limit : 32

Version notes : --

Values : automatically generated

QuoteBusinessType__QT

optional

Create Query Update Delete Filter

The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn.

This field is used in the Zuora Reporting Data Sources to report on Subscription metrics.

If the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.

Type : string

Character limit : 32

Version notes : --

Values : populated by Zuora Quotes

QuoteNumber__QT

optional

Create Query Update Delete Filter

The unique identifier of the Quote.

This field is used in the Zuora Reporting Data Sources to report on Subscription metrics.

If the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.

Type : string

Character limit : 32

Version notes : --

Values : populated by Zuora Quotes

QuoteType__QT

optional

Create Query Update Delete Filter

The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel.

This field is used in the Zuora Reporting Data Sources to report on Subscription metrics.

If the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.

Type : string

Character limit : 32

Version notes : --

Values : populated by Zuora Quotes

Revision

optional

Query

An auto-generated decimal value uniquely tagged with a subscription. The value always contains one decimal place, for example, the revision of a new subscription is 1.0. If a further version of the subscription is created, the Revision value will be increased by 1.

The Revision value is always incremental regardless of the deletion of subscription versions. The Revision value may be greater than the version value. In this case, the difference value between the two values indicates the number of deletions of amendments or order actions.

Type: string

Character limit :

Version notes : WSDL 107+

Values : automatically generated

RenewalSetting

conditional

Subscribe Update* Amend Filter

This field can be updated when Status is Draft .

Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed.

Required : If TermType is Termed

Type : string

Character limit :

Version notes : WSDL 62+

Values : RENEW_WITH_SPECIFIC_TERM (default), RENEW_TO_EVERGREEN

RenewalTerm

conditional

Create Query Update* Subscribe Delete Filter

The length of the period for the subscription renewal term.

This field can be updated when Status is Draft . If you use the subscribe() call, this field is required.

Required : If TermType is Termed.

Type : bigint

Character limit : 20

Version notes : --

Values : one of the following:

  • leave null to default to 0

  • any number

RenewalTermPeriodType

optional

Create Query Update* Subscribe Delete Filter

The period type for the subscription renewal term.

Type : string

Character limit :

Version notes : WSDL 73.0+

Values :

  • Month (default)

  • Year

  • Day

  • Week

Note :

  • This field is used with the RenewalTerm field to specify the subscription renewal term.

  • This field can be updated when Status is Draft .

ServiceActivationDate

optional

Create Query Update* Subscribe Delete Filter

The date when the subscription is activated.

This field can be updated when Status is Pending Activation.

Note : The service activation date is only required if the Require Service Activation of Orders? Setting is set to Yes . If this setting is set to Yes :

  • If ContractAcceptanceDate field is required, you must set this field, ContractAcceptanceDate, and ContractEffectiveDate fields in the subscribe call to activate a subscription.

  • If ContractAcceptanceDate field is not required, you must set both this field and the ContractEffectiveDate field in the subscribe call to activate a subscription. If you only set a valid date in the ContractEffectiveDate field, the subscribe call still returns success, but the subscription is in Pending Activation status.

This field can also be updated when the subscription is still on version one (has not been amended before) and the "Allow update Subscription trigger dates?" setting in Billing Settings is set to "Yes".

Type :

  • date: Supported as of WSDL version 69+

  • dateTime: Supported through WSDL version 68

Character limit : 29

Version notes : --

Status

optional

Query Filter

The status of the subscription.

Type : string (enum)

Character limit : 18

Version notes : --

Values : automatically generated

Possible values : one of the following:

  • Draft

  • Pending Activation

  • Pending Acceptance

  • Active

  • Cancelled

  • Expired

  • Suspended

SubscriptionBillToId

optional

Query

The bill-to contact ID of the subscription.

The value of this field is null if you have the Flexible Billing Attributes feature disabled.

Type : string

Version notes: WSDL 121.0+

SubscriptionBillToSnapshotId

optional

Query

The snapshot ID of the subscription's bill-to contact. The snapshot ID will not change after the subscription version is created.

The value of this field is null if you have the Flexible Billing Attributes feature disabled.

Type : string

Version notes: WSDL 121.0+

SubscriptionEndDate

optional

Query Filter

The date when the subscription term ends, where the subscription ends at midnight the day before.

For example, if the SubscriptionEndDate is 12/31/2016, the subscriptions ends at midnight (00:00:00 hours) on 12/30/2016.

This date is the same as the term end date or the cancelation date, as appropriate.

Type :

  • date: Supported as of WSDL version 69+

  • dateTime: Supported through WSDL version 68

Character limit : 29

Version notes: --

Values : automatically generated

SubscriptionStartDate

required

Query Filter

The date when the subscription term starts. This date is the same as the start date of the original term, which isn't necessarily the start date of the current or new term.

Type :

  • date: Supported as of WSDL version 69+

  • dateTime: Supported through WSDL version 68

Character limit : 29

Version notes : --

Values : automatically generated

TermEndDate

required

Query Update* Filter

This field can be updated when Status is Draft .

The date when the subscription term ends. If the subscription is evergreen, the TermEndDate value is null or is the cancelation date, as appropriate.

Type :

  • date: Supported as of WSDL version 69+

  • dateTime: Supported through WSDL version 68

Character limit : 29

Version notes : --

Values : automatically generated

TermStartDate

required

Create Query Update* Filter

This field can be updated when Status is Draft .

The date when the subscription term begins. If this is a renewal subscription, then this date is different from the subscription start date.

Type :

  • date: Supported as of WSDL version 69+

  • dateTime: Supported through WSDL version 68

Character limit : 29

Version notes : --

TermType

required

Create Query Update* Filter

This field can be updated when Status is Draft .

Indicates if a subscription is termed or evergreen . A termed subscription has a specific end date and requires manual renewal. An evergreen subscription doesn't have an end date and doesn't need renewal. This field can be updated when the subscription status is Draft.

Type : string (enum)

Character limit : 9

Version notes : --

Values : TERMED , EVERGREEN

UpdatedById

optional

Query Filter

The ID of the user who last updated the subscription.

Type: zns:ID

Character limit: 32

Version notes: WSDL 20.0+

Values: automatically generated

UpdatedDate

optional

Query Filter

The date when the subscription was last updated.

Type: dateTime

Character limit: 29

Version notes : WSDL 20.0+

Values : automatically generated

Version

optional

Query Filter

The version number of the subscription.

Type: int

Character limit :

Version notes : --

Values : automatically generated

SubscriptionSoldToId

optional

Query Filter

The ID of the sold-to contact. Use this field to assign an existing account as the sold-to contact of a subscription.

Type: zns:ID

Character limit: 32

Version notes: WSDL 132.0+

SubscriptionSoldToSnapshotId

optional

Query Filter

The snapshot of the ID for an account used as the sold-to contact of a subscription. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the subscription.

Type: zns:ID

Character limit: 32

Version notes: WSDL 132.0+

VersionCreatedDate

n/a

n/a

Deprecated. Use the CreatedDate field instead.