Anchor to SubscriptionContractAtomicCreateInputSubscription
input_objectSubscription Contract Atomic Create Input
The input fields required to create a Subscription Contract.
Anchor to FieldsFields
- contract (SubscriptionDraftInput!)
- currencyCode (CurrencyCode!)
- customerId (ID!)
- discountCodes ([String!])
- lines ([SubscriptionAtomicLineInput!]!)
- nextBillingDate (DateTime!)
- Anchor to contractcontract•Subscription
Draft Input! required The attributes used as input for the Subscription Draft.
Show input fields
- Anchor to currencyCodecurrency•Currency
Code Code! non-null The currency used for the subscription contract.
Show enum values
- Anchor to customerIdcustomer•ID!
Id non-null The ID of the customer to associate with the subscription contract.
- Anchor to discountCodesdiscount•[String!]
Codes Default:[] A list of discount redeem codes to apply to the subscription contract.
- Anchor to lineslines•[Subscription
Atomic Line Input!]! required A list of new Subscription Lines.
Show input fields
- Anchor to nextBillingDatenext•Date
Billing Date Time! 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.
Was this section helpful?