Anchor to section titled 'undefined'

subscriptionBillingCycleContractDraftConcatenate
mutation

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

Concatenates a contract to a Subscription Draft.


An array of Subscription Contracts with their selected billing cycles to concatenate to the subscription draft.

Anchor to draftId
draftId
required

The gid of the Subscription Contract draft to update.


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

SubscriptionBillingCycleContractDraftConcatenatePayload returns


The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation subscriptionBillingCycleContractDraftConcatenate($concatenatedBillingCycleContracts: [SubscriptionBillingCycleInput!]!, $draftId: ID!) {
  subscriptionBillingCycleContractDraftConcatenate(concatenatedBillingCycleContracts: $concatenatedBillingCycleContracts, draftId: $draftId) {
    draft {
      # SubscriptionDraft fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "concatenatedBillingCycleContracts": [
    {
      "contractId": "gid://shopify/<objectName>/10079785100",
      "selector": {
        "date": "2019-09-07T15:50:00Z",
        "index": 1
      }
    }
  ],
  "draftId": "gid://shopify/<objectName>/10079785100"
}
input SubscriptionBillingCycleInput {
  contractId: ID!
  selector: SubscriptionBillingCycleSelector!
}

input SubscriptionBillingCycleSelector {
  date: DateTime
  index: Int
}