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.
{"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 withPOST /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 includeapplied: 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.Related guides
Quote and submit
Get approval for the final price after coupon changes.
Follow the money
Keep discounts, fees and merchant allocations separate.