SubscriptionDraft
Requires access scope.
Represents a Subscription Draft.
Anchor to Fields and connectionsFields and connections
- Anchor to billingCyclebilling•
Cycle The billing cycle that the subscription contract will be associated with.
- Anchor to billingPolicybilling•
Policy SubscriptionBilling non-nullPolicy! The billing policy for the subscription contract.
- Anchor to concatenatedBillingCyclesconcatenated•
Billing Cycles The billing cycles of the contracts that will be concatenated to the subscription contract.
- Anchor to currencyCodecurrency•
Code CurrencyCode! non-null The currency used for the subscription contract.
- Anchor to customAttributescustom•
Attributes [Attribute!]!non-null A list of the custom attributes to be added to the generated orders.
- Anchor to customercustomer•Customer!non-null
The customer to whom the subscription contract belongs.
- Anchor to customerPaymentMethodcustomer•
Payment Method The customer payment method used for the subscription contract.
- Anchor to deliveryMethoddelivery•
Method The delivery method for each billing of the subscription contract.
- Anchor to deliveryOptionsdelivery•
Options The available delivery options for a given delivery address. Returns
null
for pending requests.- Anchor to deliveryPolicydelivery•
Policy SubscriptionDelivery non-nullPolicy! The delivery policy for the subscription contract.
- Anchor to deliveryPricedelivery•
Price The delivery price for each billing the subscription contract.
- Anchor to discountsdiscounts•Subscription
Discount non-nullConnection! The list of subscription discounts which will be associated with the subscription contract.
- Anchor to discountsAddeddiscounts•
Added SubscriptionDiscount non-nullConnection! The list of subscription discounts to be added to the subscription contract.
- Anchor to discountsRemoveddiscounts•
Removed SubscriptionDiscount non-nullConnection! The list of subscription discounts to be removed from the subscription contract.
- Anchor to discountsUpdateddiscounts•
Updated SubscriptionDiscount non-nullConnection! The list of subscription discounts to be updated on the subscription contract.
- •ID!non-null
A globally-unique ID.
- Anchor to lineslines•Subscription
Line non-nullConnection! The list of subscription lines which will be associated with the subscription contract.
- Anchor to linesAddedlines•
Added SubscriptionLine non-nullConnection! The list of subscription lines to be added to the subscription contract.
- Anchor to linesRemovedlines•
Removed SubscriptionLine non-nullConnection! The list of subscription lines to be removed from the subscription contract.
- Anchor to nextBillingDatenext•
Billing Date The next billing date for the subscription contract.
- Anchor to notenote•
The note field that will be applied to the generated orders.
- Anchor to originalContractoriginal•
Contract The original subscription contract.
- Anchor to statusstatus•
The current status of the subscription contract.
- Anchor to shippingOptionsshipping•
Options SubscriptionShipping DeprecatedOption Result Available Shipping Options for a given delivery address. Returns NULL for pending requests. Use
instead.
Map
No referencing types
Anchor to QueriesQueries
- •query
Returns a Subscription Draft resource by ID.
SubscriptionDraft Queries
Queried by
Anchor to MutationsMutations
- Anchor to subscriptionBillingCycleContractDraftConcatenatesubscription•
Billing Cycle Contract Draft Concatenate mutation Concatenates a contract to a Subscription Draft.
- •mutation
Edit the contents of a subscription contract for the specified billing cycle.
- •mutation
Creates a Subscription Contract Draft. You can submit all the desired information for the draft using Subscription Draft Input object. You can also update the draft using the Subscription Contract Update mutation. The draft is not saved until you call the Subscription Draft Commit mutation.
- •mutation
The subscriptionContractUpdate mutation allows you to create a draft of an existing subscription contract. This draft can be reviewed and modified as needed. Once the draft is committed with subscriptionDraftCommit, the changes are applied to the original subscription contract.
- •mutation
Adds a subscription discount to a subscription draft.
- •mutation
Applies a code discount on the subscription draft.
- •mutation
Removes a subscription discount from a subscription draft.
- •mutation
Updates a subscription discount on a subscription draft.
- •mutation
Adds a subscription free shipping discount to a subscription draft.
- •mutation
Updates a subscription free shipping discount on a subscription draft.
- •mutation
Adds a subscription line to a subscription draft.
- •mutation
Removes a subscription line from a subscription draft.
- •mutation
Updates a subscription line on a subscription draft.
- •mutation
Updates a Subscription Draft.
SubscriptionDraft Mutations
Mutated by
- subscription
Billing Cycle Contract Draft Concatenate - subscription
Billing Cycle Contract Edit - subscription
Contract Create - subscription
Contract Update - subscription
Draft Discount Add - subscription
Draft Discount Code Apply - subscription
Draft Discount Remove - subscription
Draft Discount Update - subscription
Draft Free Shipping Discount Add - subscription
Draft Free Shipping Discount Update - subscription
Draft Line Add - subscription
Draft Line Remove - subscription
Draft Line Update - subscription
Draft Update