Skip to main content
Log inSign up
Anchor to SubscriptionContractAtomicCreateInput

SubscriptionContractAtomicCreateInput

input_object

The input fields required to create a Subscription Contract.

•

The attributes used as input for the Subscription Draft.

•

The currency used for the subscription contract.

•
ID!non-null

The ID of the customer to associate with the subscription contract.

•
[String!]Default:[]

A list of discount redeem codes to apply to the subscription contract.

•

A list of new Subscription Lines.

•
DateTime!non-null

The next billing date for the subscription contract.This field is independent of billing cycles.It stores metadata set by the apps, and thus not managed by Shopify.It can be queried from subscriptionContract.nextBillingDate.

Anchor to upcomingBillingAttemptExpectedDateupcomingBillingAttemptExpectedDate
•

The expected date for the upcoming billing attempt, impacting the contract's billing cycle. For example: If a monthly contract was created on May 14th, the first cycle will end on June 14th, with subsequent cycles starting and ending on the 14th of each month. If a monthly contract was created on May 14th with upcoming_billing_attempt_expected_date set to May 30th, the first cycle will then end on May 30th, and subsequent cycles will end on the 30th of each month. Note: This field must match next_billing_date when specified.


Was this section helpful?