subscriptionDraftFreeShippingDiscountUpdate mutation
Updates a subscription free shipping discount on a subscription draft.
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 subscriptionDraftFreeShippingDiscountUpdate($draftId: ID!, $discountId: ID!, $input: SubscriptionFreeShippingDiscountInput!) { subscriptionDraftFreeShippingDiscountUpdate(draftId: $draftId, discountId: $discountId, input: $input) {} } { “draftId”: “Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=”, “discountId”: “Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=”, “input”: {} }
<font style="color:#1F61A0;">discountUpdated</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">id</font>
<font style="color:#555555;">}</font>
<font style="color:#1F61A0;">draft</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
SubscriptionFreeShippingDiscountInput fields
- recurringCycleLimit (
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
)
The maximum number of times the subscription free shipping discount will be applied on orders. - title (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
The title associated with the subscription free shipping discount.
Return fields
- discountUpdated (
[SubscriptionManualDiscount](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionmanualdiscount)
)
The updated Subscription Discount. - draft (
[SubscriptionDraft](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondraft)
)
The Subscription Contract draft object. - userErrors (
[[SubscriptionDraftUserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptiondraftusererror)
)
List of errors that occurred executing the mutation.