Shopify discounts webhook events

Shopify sends 5 discounts events, including discounts/create, discounts/delete and discounts/redeemcode_added.

Every event here can also reach agents as an MCP event through Hookdeck: MCP events →

discounts/create

documented from Shopify docs (example)

New discount created

Identified by x-shopify-topic header Resource discounts

shopify-discounts-create.json
{
  "admin_graphql_api_id": "gid://shopify/DiscountAutomaticNode/1",
  "title": "Automatic free shipping",
  "status": "ACTIVE",
  "created_at": "2016-08-29T08:00:00-04:00",
  "updated_at": "2016-08-29T08:00:00-04:00"
}

Key fields

Field Type Example
status string ACTIVE
created_at string 2016-08-29T08:00:00-04:00

Full schema: 5 fields.

From Shopify docs

  • Content type application/json

Send example to Inspect → View as JSON

discounts/delete

documented from Shopify docs (example)

Discount is deleted

Identified by x-shopify-topic header Resource discounts

shopify-discounts-delete.json
{
  "admin_graphql_api_id": "gid://shopify/DiscountAutomaticNode/1",
  "deleted_at": "2018-08-29T08:00:00-04:00"
}

Key fields

Field Type Example
deleted_at string 2018-08-29T08:00:00-04:00

Full schema: 2 fields.

From Shopify docs

  • Content type application/json

Send example to Inspect → View as JSON

discounts/redeemcode_added

documented from Shopify docs (example)

Redeem code added to a code discount

Identified by x-shopify-topic header Resource discounts

shopify-discounts-redeemcode-added.json
{
  "admin_graphql_api_id": "gid://shopify/DiscountCodeNode/1",
  "redeem_code": { … },
  "updated_at": "2018-08-29T12:00:00.000Z"
}

Key fields

Field Type Example
updated_at string 2018-08-29T12:00:00.000Z

Full schema: 5 fields.

From Shopify docs

  • Content type application/json

Send example to Inspect → View as JSON

discounts/redeemcode_removed

documented from Shopify docs (example)

Redeem code removed from a code discount

Identified by x-shopify-topic header Resource discounts

shopify-discounts-redeemcode-removed.json
{
  "admin_graphql_api_id": "gid://shopify/DiscountCodeNode/1",
  "redeem_code": { … },
  "updated_at": "2018-08-29T12:00:00.000Z"
}

Key fields

Field Type Example
updated_at string 2018-08-29T12:00:00.000Z

Full schema: 5 fields.

From Shopify docs

  • Content type application/json

Send example to Inspect → View as JSON

discounts/update

documented from Shopify docs (example)

Discount details change

Identified by x-shopify-topic header Resource discounts

shopify-discounts-update.json
{
  "admin_graphql_api_id": "gid://shopify/DiscountAutomaticNode/1",
  "title": "Automatic free shipping updated",
  "status": "ACTIVE",
  "created_at": "2016-08-29T08:00:00-04:00",
  "updated_at": "2016-08-29T08:00:00-04:00"
}

Key fields

Field Type Example
status string ACTIVE
created_at string 2016-08-29T08:00:00-04:00

Full schema: 5 fields.

From Shopify docs

  • Content type application/json

Send example to Inspect → View as JSON

Route Shopify events by type.

Event Gateway receives every Shopify delivery and filters and routes it by event type, so each service gets only the events it handles.

Not affiliated with Shopify. Facts are compiled from public sources and linked inline.