Anchor to discountAutomaticBasicUpdatediscount
discountAutomaticBasicUpdate
mutation
Requires Apps must have access scope.
Anchor to Arguments
Arguments
- Anchor to automaticBasicDiscountautomatic•
Basic Discount DiscountAutomatic requiredBasic Input! The input data used to update the automatic amount off discount.
- •ID!required
The ID of the automatic amount off discount to update.
Was this section helpful?
Anchor to DiscountAutomaticBasicUpdatePayload returnsDiscountAutomaticBasicUpdatePayload returns
- Anchor to automaticDiscountNodeautomatic•
Discount Node The automatic discount that was updated.
- Anchor to userErrorsuser•
Errors [DiscountUser non-nullError!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation discountAutomaticBasicUpdate($automaticBasicDiscount: DiscountAutomaticBasicInput!, $id: ID!) {2 discountAutomaticBasicUpdate(automaticBasicDiscount: $automaticBasicDiscount, id: $id) {3 automaticDiscountNode {4 # DiscountAutomaticNode fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "automaticBasicDiscount": {3 "combinesWith": {4 "orderDiscounts": true,5 "productDiscounts": true,6 "shippingDiscounts": true7 },8 "customerGets": {9 "appliesOnOneTimePurchase": true,10 "appliesOnSubscription": true,11 "items": "",12 "value": ""13 },14 "endsAt": "2019-09-07T15:50:00Z",15 "minimumRequirement": {16 "quantity": "",17 "subtotal": ""18 },19 "recurringCycleLimit": 1,20 "startsAt": "2019-09-07T15:50:00Z",21 "title": "<your-title>"22 },23 "id": "gid://shopify/<objectName>/10079785100"24}
{
"automaticBasicDiscount": {
"combinesWith": {
"orderDiscounts": true,
"productDiscounts": true,
"shippingDiscounts": true
},
"customerGets": {
"appliesOnOneTimePurchase": true,
"appliesOnSubscription": true,
"items": "",
"value": ""
},
"endsAt": "2019-09-07T15:50:00Z",
"minimumRequirement": {
"quantity": "",
"subtotal": ""
},
"recurringCycleLimit": 1,
"startsAt": "2019-09-07T15:50:00Z",
"title": "<your-title>"
},
"id": "gid://shopify/<objectName>/10079785100"
}
input DiscountAutomaticBasicInput {
combinesWith: DiscountCombinesWithInput
customerGets: DiscountCustomerGetsInput
endsAt: DateTime
minimumRequirement: DiscountMinimumRequirementInput
recurringCycleLimit: Int
startsAt: DateTime
title: String
}
input DiscountCombinesWithInput {
orderDiscounts: Boolean
productDiscounts: Boolean
shippingDiscounts: Boolean
}
input DiscountCustomerGetsInput {
appliesOnOneTimePurchase: Boolean
appliesOnSubscription: Boolean
items: DiscountItemsInput
value: DiscountCustomerGetsValueInput
}
input DiscountMinimumRequirementInput {
quantity: DiscountMinimumQuantityInput
subtotal: DiscountMinimumSubtotalInput
}