Anchor to DiscountAutomaticBasicCreatePayloadDiscount
payloadDiscount Automatic Basic Create Payload
Return type for mutation.
Anchor to FieldsFields
- automaticDiscountNode (DiscountAutomaticNode)
- userErrors ([DiscountUserError!]!)
- Anchor to automaticDiscountNodeautomatic•Discount
Discount Node Automatic Node The automatic discount that was created.
- Anchor to userErrorsuser•[Discount
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Anchor to Mutations with this payloadMutations with this payload
- discountAutomaticBasicCreate (DiscountAutomaticBasicCreatePayload)
- •mutation
Creates an amount off discount that's automatically applied on a cart and at checkout.
Note: To create code discounts, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountCodeBasicCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>Basic<wbr/>Create</span></code></a> mutation.
- Anchor to automaticBasicDiscountautomatic•Discount
Basic Discount Automatic Basic Input! required The input data used to create the automatic amount off discount.
Arguments
Was this section helpful?