Skip to content

Environments

Single Endpoint

Both production and sandbox use the same API endpoint:

https://api.recivr.com

The JWT environment claim determines behavior:

  • Live tokens (live_ prefix) → fees calculated and persisted to analytics
  • Sandbox tokens (test_ prefix) → fees calculated with the same rules but not persisted — no impact on dashboard analytics

Switch from sandbox to live by swapping the token. No URL change, no code change.

Sandbox

Use sandbox tokens to validate your integration before going live.

Getting a Sandbox Key:

  1. Login to dashboard.recivr.com
  2. Select your entity → API Tokens
  3. Click Generate Sandbox Key
  4. Copy the test_... token

Sandbox tokens produce valid fee calculations using the same rules, but results are not persisted and rate limits are relaxed.

Going Live

  1. Generate a Live Key in the dashboard
  2. Replace test_... token with live_... token in your configuration
  3. No URL change, no code change — same endpoint, same request format

Test BIN Ranges

The sandbox database includes synthetic BIN ranges for testing:

BINSchemeIssuer CountryCard TypeRegion (vs GB acquirer)
40000000VisaDEConsumer DebitINTRA_EEA
41111111VisaUSConsumer CreditINTER_REGIONAL
42222222VisaGBConsumer DebitDOMESTIC
51000000MastercardDEConsumer DebitINTRA_EEA
52222222MastercardFRCommercial CreditINTRA_EEA
53635423MastercardDEConsumer DebitINTRA_EEA
55555555MastercardUSConsumer CreditINTER_REGIONAL

Verification Checklist

Before going live, verify in sandbox:

#TestExpected
1Request with valid token200
2Request without token401
3Request with expired token401
4Missing txn_id422
5Invalid mcc (e.g. "12")422
6Valid requestResponse includes scheme_fees and interchange
7Verify totalstotal_fees_by_currency = scheme + interchange + fixed
8mode: "scheme"interchange is null
9mode: "interchange"scheme_fees is null
10GET /health200
11Invalid BIN400
12Same txn_id twiceBoth return 200 (idempotent)

Recivr — The intelligence layer of the payments stack.