Skip to main content
Promotions

Apply coupons per merchant and let the quote determine the discount. Funded basket campaigns are a future capability.

Merchant coupons — existing API

PUT /v1/carts/{cart_id}/coupons replaces the cart’s coupon selection. Keys in coupons are Ignyt connection IDs, not merchant IDs, store IDs or coupon IDs. Use the connection associated with the catalog variant. The same code text can mean different things at different stores.
Send {"coupons": {}} to clear the selection. To remove one store’s codes, resend the complete desired mapping for the other stores. Use the cart’s owning credential and required cart:write authority, or its supported bound shopper session. A successful coupon-selection response is not proof that the merchant accepted a discount.

Requote after every change

Request a fresh quote with POST /v1/carts/{cart_id}/quotes. Inspect each group’s coupon_results, discount_minor and final totals. Only an authoritative quote determines the actual discount. Coupon edits invalidate the previous cart quote; obtain shopper approval for the new quote before submission.

Respect store-specific rules

The connector and merchant platform determine supported code counts, eligibility, expiry, stacking, shipping and automatic discounts. Results can include applied: false and a reason; some unsupported or invalid combinations reject quoting. Do not assume every platform accepts every coupon, silently claim a rejected code was applied, or alter the merchant’s prices yourself. Customer-specific rules and shopper-email privacy require store-specific qualification. For Odoo, discount_minor represents the effective order-level discount derived from Odoo’s untaxed total. It can differ slightly from summed displayed reward lines because Odoo rounds those lines and its aggregate independently. Ignyt allocates only bounded coupon reward rounding to the discount; Odoo’s tax and payable total remain exact. Inconsistent aggregates or discrepancies beyond that rounding bound reject quoting. Use the returned quote amounts for shopper approval and submission rather than recalculating the coupon.

Overall basket discounts — planned option

Ignyt does not yet expose a global promotion/campaign API. Do not send an undocumented global_discount field or subtract an amount from the approved quote total.
The intended option is a funded campaign scoped to an app or selected merchants: percentage, fixed amount or shipping benefit, subject to an agreed budget, currency, dates, eligibility and stacking policy. Funding can come from the tenant, Ignyt or an explicitly consenting merchant; it must be agreed before activation. For example, if the merchant is owed AED 100 and the shopper pays AED 90, the remaining AED 10 needs an identified funding source. A checkout-wide promotion must allocate that amount deterministically across merchant orders and preserve the allocation through partial failures, refunds and settlement recovery. It must not silently take AED 10 from the merchant’s payout. Ask Ignyt to scope this capability before offering it to shoppers. Existing merchant coupons remain independent of that future option. See payment responsibilities and refund handling.

Quote and submit

Get approval for the final price after coupon changes.

Follow the money

Keep discounts, fees and merchant allocations separate.