Anchor to subscriptionBillingCycleContractEditsubscription
subscriptionBillingCycleContractEdit
mutation
Requires access scope. Also: The user must have manage_orders_information permission.
Edit the contents of a subscription contract for the specified billing cycle.
Anchor to Arguments
Arguments
- Anchor to billingCycleInputbilling•
Cycle Input SubscriptionBilling requiredCycle Input! Input object for selecting and using billing cycles.
Was this section helpful?
Anchor to SubscriptionBillingCycleContractEditPayload returnsSubscriptionBillingCycleContractEditPayload returns
- Anchor to draftdraft•
The draft subscription contract 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 subscriptionBillingCycleContractEdit($billingCycleInput: SubscriptionBillingCycleInput!) {2 subscriptionBillingCycleContractEdit(billingCycleInput: $billingCycleInput) {3 draft {4 # SubscriptionDraft fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "billingCycleInput": {3 "contractId": "gid://shopify/<objectName>/10079785100",4 "selector": {5 "date": "2019-09-07T15:50:00Z",6 "index": 17 }8 }9}
{
"billingCycleInput": {
"contractId": "gid://shopify/<objectName>/10079785100",
"selector": {
"date": "2019-09-07T15:50:00Z",
"index": 1
}
}
}
input SubscriptionBillingCycleInput {
contractId: ID!
selector: SubscriptionBillingCycleSelector!
}
input SubscriptionBillingCycleSelector {
date: DateTime
index: Int
}