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 scope, 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.
A rejected selection remains on the editable cart. Remove or replace the code, or change the basket,
then request a fresh quote and approve its exact total. Ignyt never silently removes the code or
charges the undiscounted amount. Coupons for stores outside the cart return 422 coupon_scope_invalid;
blank, duplicate or unsupported code counts return 422 coupon_input_invalid.
Accepted outcomes include status: "accepted", applied: true and verification: "merchant_basket"
(sandbox_engine for built-in sample stores). A positive item discount is not required: native
free-shipping and partial-basket coupons can be valid. Automatic discounts do not prove acceptance
of a supplied code. Submission rejects older coupon quotes without this evidence and rechecks the
original merchant quote. First payment admission checks again; changed terms need a fresh approval.
Existing payments and historical completed purchases retain their original recovery behavior.
If refusal happens after submission but before payment, the accepted purchase remains a failed,
immutable attempt. Create a new cart, obtain a fresh quote and collect new approval. The original
submission key continues to return its original receipt; it does not reopen that cart.
Respect store-specific rules
The connector and merchant platform determine supported code counts, eligibility, expiry, stacking, shipping and automatic discounts. Every supplied code must have explicit merchant-basket acceptance evidence. A rejected code returns409 coupon_rejected; missing, contradictory or unavailable evidence returns 409 coupon_unverifiable. Either blocks the entire cart before payment, including mixed-store carts. Error details identifies connection_id, coupon and a safe machine-readable reason. 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.