Anchor to subscriptionContractUpdatesubscription
subscriptionContractUpdate
mutation
Requires access scope. Also: The user must have manage_orders_information permission.
The subscriptionContractUpdate mutation allows you to create a draft of an existing subscription contract. This draft can be reviewed and modified as needed. Once the draft is committed with subscriptionDraftCommit, the changes are applied to the original subscription contract.
Anchor to Arguments
Arguments
- Anchor to contractIdcontract•
Id ID!required The gid of the Subscription Contract to update.
Was this section helpful?
Anchor to SubscriptionContractUpdatePayload returnsSubscriptionContractUpdatePayload returns
- Anchor to draftdraft•
The 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 subscriptionContractUpdate($contractId: ID!) {
subscriptionContractUpdate(contractId: $contractId) {
draft {
# SubscriptionDraft fields
}
userErrors {
field
message
}
}
}
Input
{
"contractId": "gid://shopify/<objectName>/10079785100"
}
{
"contractId": "gid://shopify/<objectName>/10079785100"
}