Skip to main content

Overview

The Event Simulator creates simulated connections and purchases, so you can test your API and webhook integrations without linking a real account or making a real purchase.

Simulator Behavior

Supported Events

  • A consumer links a retail account. Starts your Account connected flows (connection.activated webhooks).
  • A consumer makes a retail purchase. Starts your Purchase shared flows (purchase.created webhooks).
  • A linked account becomes unauthenticated. The connection’s status changes; no flow starts.
  • The consumer signs in again. The connection becomes active; no flow starts.

Simulated Events and Flows

A simulated event runs your flows with two differences:
  • Only Send webhook actions send, and only to destinations that accept simulated events. Actions for apps such as Klaviyo or Rivo do not send.
  • A Wait step does not hold a simulated purchase.

API and Webhook Interactions

Read simulated connections and purchases through the Subtotal API as you read real ones. A destination that accepts simulated events also receives real ones. Simulated deliveries carry is_simulated: true at the top level; real deliveries don’t include the field. See Event types.

Simulated Purchases

Each simulated purchase includes at least one of your brands’ products when the retailer sells one. Its items come from real products at the connection’s retailer.

Configure Simulated Events for Your Webhook Destination

On the Webhooks page, open the ⋯ menu on your webhook destination, select Configure and turn on Allow simulated events. The Configure Webhook dialog with the Allow simulated events switch on. Then make sure a flow that is on sends to that destination with a Send webhook action. See Configuring webhook destinations.

Run Simulations

First choose your retailers in the Subtotal Link Configuration. Then open the simulator. Select Simulate an Account Link in the top right. simulate connection Select a retailer and click simulate. The simulated connection is created and your Account connected flows start. select retailer

Modify Status and Simulate Purchases

The new connection appears in the list of simulated connections. The identifier shown is its connection_id, which you can use in API calls. Open the connection’s options to change its status or simulate a purchase. A status change starts no flow; a purchase starts your Purchase shared flows. simulated connection options

Simulate with the API or Subtotal: For Brands

The Subtotal API and Subtotal: For Brands do everything the dashboard simulator does. Simulated connections are marked is_simulated: true in connection responses. The API’s connection endpoints include them; the connector’s list_connections lists them only with include_simulated. Call the endpoints with your API key, or an OAuth token with the simulator:write scope (simulator:read to list simulated connections through the connector). Simulated connections and purchases are purged periodically.