DiscountAutomaticNode - admin-graphql - OBJECT
Version: 2025-01
Description:
A node containing an automatic discount and its related events.
Access Scopes
Apps must have `read_discounts` access scope.
Fields
automaticDiscount
: DiscountAutomatic! - The automatic discount object.
id
: ID! - A globally-unique ID.
metafield
: Metafield - A [custom field](https://shopify.dev/docs/apps/build/custom-data), including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information.
Connections
events
: EventConnection!
metafieldDefinitions
: MetafieldDefinitionConnection!
metafields
: MetafieldConnection!
Related queries
automaticDiscountNode
Returns an automatic discount resource by ID.
automaticDiscountNodes
List of automatic discounts.
Related mutations
discountAutomaticActivate
Activates an automatic discount.
discountAutomaticBasicCreate
Creates a basic automatic discount.
discountAutomaticBasicUpdate
Updates a basic automatic discount.
discountAutomaticBxgyCreate
Creates a BXGY automatic discount.
discountAutomaticBxgyUpdate
Updates an existing Buy X, Get Y (BXGY) automatic discount.
discountAutomaticDeactivate
Deactivates an automatic discount.
discountAutomaticFreeShippingCreate
Creates a free shipping automatic discount.
discountAutomaticFreeShippingUpdate
Updates a free shipping automatic discount.
Related Unions
MetafieldReferencer
Types of resources that may use metafields to reference other resources.
Examples