Simulations

Sandbox-only APIs for simulating time-sensitive events during testing and integration. Use these endpoints to trigger scenarios like offer expiry without waiting for real timers.

Trigger a simulated action

post
/v2/simulations

Sandbox only. Triggers a simulated event or state transition identified by action. Use this endpoint to drive your integration through states that would otherwise require real-world timing or external actors (e.g. waiting for an offer to expire).

The payload object is action-specific. Each supported action is documented below under SimulationAction.

Authorizations
AuthorizationstringRequired

Basic authentication — Username: apiKeyID, Password: apiSecret

Body
actionstring · enumRequired

Identifies which simulation to run. Treat this as an open enum — new actions will be introduced without a breaking version bump.

ActionDescription
instarefund-offer-expiryImmediately expires an instarefund® offer, causing it to transition to an expired state as if its expires_at timestamp had been reached.
Example: instarefund-offer-expiryPossible values:
Responses
chevron-right
200

Simulation triggered successfully

application/json
statusstringRequiredExample: success
actionstringRequired

The action that was simulated.

Example: instarefund-offer-expiry
messagestringOptional

Human-readable description of what was triggered.

Example: Instarefund offer iro_a1b2c3 has been expired.
post
/v2/simulations

Last updated