OxifyOxify
Discounts & Shopify Functions

Validating a discount

Use the validate-discount endpoint to simulate a cart against your active discounts.

This article is a draft and may be incomplete or change before publishing.

The validate-discount API endpoint simulates a sample cart against your active discounts and reports the result.

What it tells you

  • Which discounts apply to the simulated cart
  • Which discounts conflict with each other
  • The final cart total after all discounts

When to use it

  • Before launching a sale — Verify your stack of discounts behaves as expected.
  • After enabling a new discount — Confirm it doesn't conflict with existing ones.
  • When a customer reports an issue — Reproduce their cart and see which discounts the function applied.

How to access

From the in-app validator, or directly via the API endpoint. Most merchants use the in-app version since it has a friendly UI.

Validate before every major promo (Black Friday, holiday sale). Discount stacking bugs are easier to find ahead of time than during peak traffic.

On this page