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
mutation subscriptionContractSetNextBillingDate($contractId: ID!, $date: DateTime!) {
subscriptionContractSetNextBillingDate(contractId: $contractId, date: $date) {
contract {
# SubscriptionContract fields
}
userErrors {
field
message
}
}
}
Input
{
"contractId": "gid://shopify/<objectName>/10079785100",
"date": "2019-09-07T15:50:00Z"
}
{
"contractId": "gid://shopify/<objectName>/10079785100",
"date": "2019-09-07T15:50:00Z"
}