subscriptionContractSetNextBillingDate mutation
Sets the next billing date of a Subscription Contract.
Required access
write_own_subscription_contracts
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
mutation subscriptionContractSetNextBillingDate($contractId: ID!, $date: DateTime!) { subscriptionContractSetNextBillingDate(contractId: $contractId, date: $date) {} } { “contractId”: “Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=”, “date”: “placeholder” }
<font style="color:#1F61A0;">contract</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">id</font>
<font style="color:#555555;">}</font>
<font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">code</font>
<font style="color:#1F61A0;">field</font>
<font style="color:#1F61A0;">message</font>
<font style="color:#555555;">}</font>
Arguments
Return fields
- contract (
[SubscriptionContract](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptioncontract)
)
The updated Subscription Contract object. - userErrors (
[[SubscriptionContractUserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptioncontractusererror)
)
List of errors that occurred executing the mutation.