Skip to main content
Test the full ramp lifecycle in sandbox without moving real money or crypto. Sandbox uses the same API endpoints and SDK methods as production — the only sandbox-specific calls are simulate-* endpoints that trigger transaction lifecycle progression.

What’s Real vs. Simulated

Prerequisites

Step 1: KYB Approval

Start KYB for your organization, then instantly approve it using the simulation endpoint.
You can also simulate a KYB rejection:

Step 2: Create Ramp Accounts

After KYB approval, create on-ramp and off-ramp accounts. These are provisioned through the sandbox banking infrastructure and return real-looking account details.

Step 3: Simulate Transactions

Trigger transaction lifecycle simulation with a chosen scenario. The API responds immediately — the transaction progresses through statuses asynchronously in the background (~1.5s per step).

On-Ramp Simulation

Response:

Off-Ramp Simulation

Simulation Scenarios

Choose a scenario to control which lifecycle path the transaction follows.

On-Ramp Scenarios

Off-Ramp Scenarios

Each status transition takes ~1.5 seconds. A full success scenario completes in ~7.5 seconds. The reversed scenario takes ~10.5 seconds.

Request Parameters

On-ramp simulation: Off-ramp simulation:

Step 4: Verify via Webhooks or Polling

When a simulated transaction reaches a terminal state, RebelFi fires the same webhook events as production to your configured endpoint.
Use webhook.site to quickly stand up a test endpoint and inspect incoming webhook payloads.
See Webhooks for the full event reference. The reversed scenario fires transaction.completed first, then transaction.failed with error "reversed".

Fee Calculation

Simulated transactions use fixed fee rates: Example — $10,000 transaction:

Recipient-Level Simulation

You can also simulate transactions at the recipient level:

Simulation Endpoints Reference

Org-Level

Recipient-Level

Simulation endpoints are only available in the sandbox environment. Calling them in production returns a 400 error.

Testing Checklist

Use this checklist to validate your integration covers all scenarios:
  • Start KYB and receive KYB URL
  • Simulate KYB approval and verify customer.approved webhook
  • Simulate KYB rejection and verify customer.declined webhook
  • Verify your app handles both approval and rejection gracefully
  • Create on-ramp account and store bank details
  • Simulate success scenario — verify transaction.completed webhook and amounts
  • Simulate failed scenario — verify transaction.failed webhook and error handling
  • Simulate rejected scenario — verify your app handles rejections
  • Simulate reversed scenario — verify your app handles both completed and reversed events
  • Verify transaction appears in transaction list
  • Create off-ramp account with bank details
  • Simulate success scenario — verify offramp_transaction.completed webhook
  • Simulate failed scenario — verify offramp_transaction.failed webhook
  • Verify transaction appears in off-ramp transaction list
  • Call simulate endpoints before KYB approval — verify 400 error
  • Attempt to simulate with an invalid recipient ID — verify 404 error
  • Verify fee math matches expected values for your transaction amounts

Next Steps

Webhooks

Full webhook event reference

Quick Start

Production integration guide