Requires Apps must have access scope.
A node containing a code discount and its related events.
Fields and connections
The underlying code discount object.
The paginated list of events associated with the host subject.
A globally-unique ID.
A custom field, including its
namespace
andkey
, that's associated with a Shopify resource for the purposes of adding and storing additional information.A list of custom fields that a merchant associates with a Shopify resource.
Returns a code discount resource by ID.
Returns a code discount identified by its discount code.
List of code discounts. Special fields for query params:
- status: active, expired, scheduled
- discount_type: bogo, fixed_amount, free_shipping, percentage.
Mutations
Activates a code discount.
Creates a basic code discount.
Updates a basic code discount.
Creates a Buy X get Y (BXGY) code discount.
Updates a Buy X, Get Y (BXGY) code discount.
Deactivates a code discount.
Creates a free shipping code discount.
Updates a free shipping code discount.