Anchor to section titled 'undefined'

subscriptionBillingCycleContractDraftCommit
mutation

Requires write_own_subscription_contracts access scope. Also: The user must have manage_orders_information permission.

Commits the updates of a Subscription Billing Cycle Contract draft.


Anchor to draftId
draftId
required

The gid of the Subscription Contract draft to commit.


Was this section helpful?
Anchor to section titled 'SubscriptionBillingCycleContractDraftCommitPayload returns'

SubscriptionBillingCycleContractDraftCommitPayload returns


The committed Subscription Billing Cycle Edited Contract object.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation subscriptionBillingCycleContractDraftCommit($draftId: ID!) {
  subscriptionBillingCycleContractDraftCommit(draftId: $draftId) {
    contract {
      # SubscriptionBillingCycleEditedContract fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "draftId": "gid://shopify/<objectName>/10079785100"
}