Evaluate price adjustments for an offering
POST /v1/pricing/adjustments/evaluate
Run the read-only pricing cascade for a single offering in a given cart context. Loads every active/scheduled adjustment for the authenticated company, filters by target + eligibility (date window, quantity, order-total, segment, coupon codes, redemption caps), resolves replace-within-category competitions, and returns the itemized modifiers plus the adjusted price. This never mutates Firestore — redemption counters are incremented separately at order placement via POST /v1/pricing/adjustments/{id}/redemptions.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
The offering to price. companyId is optional and, when present, must match the authenticated company; it is forced from the bearer token otherwise.
object
Example
off_gaExample
evt_mainOptional; forced from auth when omitted.
object
Per-unit list price in minor units (cents).
Example
10000Example
USDThe current cart state used for eligibility + dimension math.
object
Example
2ISO 8601 evaluation instant (defaults to server now).
Coupon codes presented by the buyer (case-insensitive).
Example
[ "SUMMER10"]Enables per-customer redemption-cap checks.
object
Example
{ "offering": { "id": "off_ga", "eventId": "evt_main", "price": { "amount": 10000, "currency": "USD" } }, "cartContext": { "quantity": 2, "codes": [ "SUMMER10" ] }}Responses
Section titled “ Responses ”Evaluation result with the applied modifiers and adjusted price
object
Example
okobject
object
object
object
object
object
Adjustments excluded from the cascade, with the reason.
object
Bad request — offering and cartContext are both required
object
Example
errorExample
An error occurredUnauthorized — a valid bearer token is required
object
Example
errorExample
An error occurredForbidden — offering.companyId does not match the authenticated company
object
Example
errorExample
An error occurredInternal server error
object
Example
errorExample
An error occurred