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
mutation subscriptionBillingCycleContractDraftConcatenate($concatenatedBillingCycleContracts: [SubscriptionBillingCycleInput!]!, $draftId: ID!) {
subscriptionBillingCycleContractDraftConcatenate(concatenatedBillingCycleContracts: $concatenatedBillingCycleContracts, draftId: $draftId) {
draft {
# SubscriptionDraft fields
}
userErrors {
field
message
}
}
}
Input
{
"concatenatedBillingCycleContracts": [
{
"contractId": "gid://shopify/<objectName>/10079785100",
"selector": {
"date": "2019-09-07T15:50:00Z",
"index": 1
}
}
],
"draftId": "gid://shopify/<objectName>/10079785100"
}
{
"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
}