Anchor to subscriptionBillingCycleContractDraftConcatenatesubscription
subscriptionBillingCycleContractDraftConcatenate
mutation
Requires access scope. Also: The user must have manage_orders_information permission.
Concatenates a contract to a Subscription Draft.
Anchor to Arguments
Arguments
- Anchor to concatenatedBillingCycleContractsconcatenated•
Billing Cycle Contracts An array of Subscription Contracts with their selected billing cycles to concatenate to the subscription draft.
- Anchor to draftIddraft•
Id ID!required The gid of the Subscription Contract draft to update.
Was this section helpful?
Anchor to SubscriptionBillingCycleContractDraftConcatenatePayload returnsSubscriptionBillingCycleContractDraftConcatenatePayload returns
- Anchor to draftdraft•
The Subscription Draft object.
- Anchor to userErrorsuser•
Errors [SubscriptionDraft non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation subscriptionBillingCycleContractDraftConcatenate($concatenatedBillingCycleContracts: [SubscriptionBillingCycleInput!]!, $draftId: ID!) {2 subscriptionBillingCycleContractDraftConcatenate(concatenatedBillingCycleContracts: $concatenatedBillingCycleContracts, draftId: $draftId) {3 draft {4 # SubscriptionDraft fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "concatenatedBillingCycleContracts": [3 {4 "contractId": "gid://shopify/<objectName>/10079785100",5 "selector": {6 "date": "2019-09-07T15:50:00Z",7 "index": 18 }9 }10 ],11 "draftId": "gid://shopify/<objectName>/10079785100"12}
{
"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
}