Requires Apps must have read_discounts access scope.

A node containing a code discount and its related events.


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 and key, 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.

The metafields associated with the resource matching the supplied list of namespaces and keys.


Was this section helpful?
Map

Fields and connections from

Possible types in

DiscountCodeNode


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.

Was this section helpful?
<?>
DiscountCodeNode Queries


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.


Was this section helpful?