How it works
CallingPOST /transactions/incentive-estimate creates an in-memory transaction, loads the Trigger you specify, executes its actions in dry-run mode, and returns the results. Nothing is persisted.
The endpoint only executes actions that support dry-run: Create Point, Create Points, Create Tier Point, Create Tier Points, and Create Point With Rate.
Prerequisites
- A published Trigger Reaction with event
transaction.createdortransaction-item.created - At least one point-creating action configured on the trigger
- An API token with the
create-transactionsscope
Request
| Field | Required | Description |
|---|---|---|
trigger_id | Yes | UUID of the Trigger Reaction to simulate |
profile_id | No | Profile to resolve earn rules against. Accepts email, card_pos, or other handle |
location_id | No | Location used for rate scoping |
total | Yes | Transaction total |
transacted_at | Yes | Datetime in YYYY-MM-DD HH:mm:ss format |
timezone | No | Defaults to your client_timezone setting |
items | No | Array of line items (required if trigger event is transaction-item.created) |
items requires name and price_sell. Optional item fields: sku, product_variant_sku, price_current, quantity (negative for returns).
Example request
Response
Fortransaction.created triggers, the response is a single object keyed by action UUID:
transaction-item.created triggers, the response is an array with one result per line item:
Error handling
| Status | Cause |
|---|---|
404 | Trigger, profile, or location not found |
422 | Validation failure or missing required fields |
Common use cases
Show pending earn at checkout: call the estimation endpoint when a cart is updated and display the projected point earn before the customer completes the purchase. Validate earn rules: during integration testing, confirm that rate scoping (location, region, tier conditions) is resolving as expected before you submit real transactions. Preview promotional multipliers: if you configure a time-limited double-points rate, use estimation to verify the multiplier is active before promoting it to customers.Related
- Reactions overview: configuring the Trigger this endpoint simulates
- Using Rates: how point definition rates are resolved
- Creating transactions: submitting real transactions
- API reference: full endpoint specification