Navigation

Sandbox Magic Numbers

Nine deterministic account_number values drive the link-flow scenarios in sandbox. Use them to integration-test every error path and edge case without ever touching a real biller.

Where to use these

Pass any of these values as account_number in POST /link/:link_token_id/submit-credentials and as the account_number query param on GET /bills. The sandbox returns the matching scenario every time, with the same data — your tests stay deterministic.
4242424242success

Credentials accepted on first try. Account discovery returns one residential account. Bills retrieve as a single PENDING bill due in 15 days.

next_step: discover_accounts
4000000001auth_failure

submit-credentials returns 200 with success: false. Use this to exercise your invalid-credentials UX.

error_code: INVALID_CREDENTIALS
4000000002biller_unavailable

Simulates a transient biller outage. submit-credentials and /bills both surface success: false with this code so you can confirm retry / backoff logic.

error_code: BILLER_UNAVAILABLE
4000000003mfa_required

submit-credentials returns status: mfa_required. Continue with POST /link/:id/submit-mfa using mfa_code "123456" (the only valid sandbox MFA code).

next_step: submit-mfa with code 123456
4000000004account_locked

Account is locked after too many failed attempts. Returned at the credentials step.

error_code: ACCOUNT_LOCKED
4000000005past_due

Credentials accepted; /bills returns one OVERDUE bill dated 30 days in the past with a Late fee + Interest line item.

4000000006auto_pay

Credentials accepted; /bills returns one SCHEDULED bill with auto_pay_enabled: true and a due date 5 days out.

4000000007payment_plan

Credentials accepted; /bills returns THREE installment bills 30 days apart (one PENDING, two SCHEDULED), each labeled "Payment plan installment N of 3".

4000000008multiple_accounts

discover-accounts returns THREE accounts (Primary, Vacation Home, Business) for the same set of credentials. Exercise the account-selection UX with N>1.

Programmatic discovery

The same scenarios are available un-authenticated at GET https://sandbox.api.billerapi.com/sandbox/scenarios. Fetch it from a CI fixture if you want to seed tests automatically.

Related