Skip to main content
The incentive estimation endpoint lets you run a transaction through your configured Reactions in dry-run mode, returning what points and tier points would be awarded without creating any records. Use it at checkout to show customers their pending earn, or during integration testing to verify your earn rules are resolving correctly.

How it works

Calling POST /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.created or transaction-item.created
  • At least one point-creating action configured on the trigger
  • An API token with the create-transactions scope

Request

The request body mirrors a standard transaction payload. Required fields: Each item in items requires name and price_sell. Optional item fields: sku, product_variant_sku, price_current, quantity (negative for returns).

Example request

Response

For transaction.created triggers, the response is a single object keyed by action UUID:
For transaction-item.created triggers, the response is an array with one result per line item:

Error handling

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.