Sandbox
Sandbox keys
Keys starting with ligo_test_ reach a built-in test bank with invented data, at the same address and with the same routes as live; their tokens start with ligo_test_at_. A sandbox key never reaches anything real, and a live key never gets sandbox data. Ask Ligo for one.
The sandbox bank
- Its bank is
sandbox. It always returns the same data, so you can write tests against it. - Two accounts, a checking and a savings account in USD, with invented numbers that belong to your integration. Add both with
"all": true. - One balance per account: today’s ledger balance,
interim_booked. - Three booked transactions a day, the same every time. A refresh stores the last 31 days.
- It accepts Banco General-style OFX statements whose
ACCTIDis the account number grouped 2-2-2-6-1.
Test credentials
Like a real bank, the sandbox needs credentials in X-Bank-Credentials: {"api_key": "…"} for each integration. The value picks the result:
| Test value | Result |
|---|---|
test_ok | The test data. |
test_bank_down | bank_unavailable. |
test_rejected | bank_auth_failed. |
test_unclassified | unclassified, with an invented bank error in details.bank_error. |
| Anything else | bank_auth_failed, as with wrong credentials at a real bank. |
Never send real bank credentials or real statements to the sandbox: it never calls a bank, and Ligo can read what it stores.
Limits for now
- A sandbox key has 60 requests a minute.
- Ligo creates sandbox keys and integrations for you. Self-service comes later.
- Sandbox and live traffic share Ligo’s infrastructure for now.