Skip to main content

Sandbox

The sandbox is Rivus's test environment for clients. It runs the same version as production, with the same rules and formats, but no real money:

SandboxProduction
Portalhttps://sandbox.rivusfinance.comhttps://rivusfinance.com
API base URLhttps://api-sandbox.rivusfinance.comhttps://api.rivusfinance.com
Keyrvs_test_…rvs_live_…
Brokers and bankssimulatedreal

The sandbox is separate from production: users, accounts, balances and keys are different. An rvs_test_… key does not work in production, and vice versa.

Getting access​

  1. Ask the Rivus team for sandbox access. Rivus creates your test account and a sandbox user (email and password), separate from your production user.
  2. With that user, sign in to the sandbox Portal (sandbox.rivusfinance.com) and follow balances, statements and operations just like in production.
  3. Create your rvs_test_… key in Credentials, choosing Sandbox, or in the sandbox Portal under Settings → API and integrations.

If you need balance to simulate conversions, withdrawals and transfers, ask the Rivus team for a test credit.

Testing from the docs​

In the API reference, every endpoint has a Test Request button. It sends a real request to the sandbox, straight from your browser:

  1. Open an endpoint and click Test Request.
  2. Under Authentication, paste your rvs_test_… key (it is stored only in your browser).
  3. Fill in the parameters and send.

:::danger Never use a production key here The Test Request button only talks to the sandbox. Even so, never paste an rvs_live_… key into browser tools: keep it in your server's secrets vault. :::

:::note Withdrawals and transfers from the browser The withdraw scope requires an IP allowlist on the key. To test it from the browser, add your network's public IP to the sandbox key's allowlist. :::

What is different in the sandbox​

  • Quotes come from a simulated broker: prices are fictitious.
  • No Pix, withdrawal or transfer leaves the environment.
  • Withdrawals and transfers that depend on the Rivus team (approval, completion) are handled by them in the sandbox, as in production. Ask the team if you need a request moved forward to test webhooks.

When your integration is ready, switch the base URL and the key to the production ones. Nothing else changes.