Anchor to subscriptionContractSetNextBillingDatesubscription
subscriptionContractSetNextBillingDate
mutation
Requires access scope. Also: The user must have manage_orders_information permission.
Sets the next billing date of a Subscription Contract. This field is managed by the apps. Alternatively you can utilize our Billing Cycles APIs, which provide auto-computed billing dates and additional functionalities.
Anchor to Arguments
Arguments
- Anchor to contractIdcontract•
Id ID!required The gid of the Subscription Contract to set the next billing date for.
- Anchor to datedate•Date
Time! required The next billing date.
Was this section helpful?
Anchor to SubscriptionContractSetNextBillingDatePayload returnsSubscriptionContractSetNextBillingDatePayload returns
- Anchor to contractcontract•
The updated Subscription Contract object.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation subscriptionContractSetNextBillingDate($contractId: ID!, $date: DateTime!) {2 subscriptionContractSetNextBillingDate(contractId: $contractId, date: $date) {3 contract {4 # SubscriptionContract fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "contractId": "gid://shopify/<objectName>/10079785100",3 "date": "2019-09-07T15:50:00Z"4}
{
"contractId": "gid://shopify/<objectName>/10079785100",
"date": "2019-09-07T15:50:00Z"
}