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