Wilby DocsGet Sandbox Keys

Sandbox Test Data

Sandbox keys (oh_test_…) run on a simulated processor: no real money moves. Use these as payment_method_ref.

Cards

Payment methodWhat happens
pm_test_cardA credit card: holds and charges go through. (Any other pm_test_… name works the same.)
pm_test_declineAlways declined (402 payment_declined).
pm_test_debitA debit card: holds stay close to what the customer entered (1.2× by default).
pm_test_prepaidA prepaid card: same hold rule as debit.
pm_test_hold5A card whose network lets holds lapse after 5 days instead of 7: watch them get renewed.

Bank Accounts (ACH)

Bank debits need a signed bank authorization first (Bank Payments). They come back pending and clear later; call POST /v1/sandbox/bank-reconcile to settle them now.

Payment methodWhat happens
pm_test_bank_okClears.
pm_test_bank_nsfReturned R01 (not enough money), every time.
pm_test_bank_nsf_onceThe first debit of an order is returned R01; a retry clears.
pm_test_bank_unauthReturned R10 (customer says not authorized): counts against the unauthorized-return limit.
pm_test_ibpAn instant bank payment: confirmed at once, holds like a card.

Outside Agent Permissions

POST /v1/sandbox/outside-mandates signs test permissions with built-in test issuers (AP2, Verifiable Intent or ACP). Turn the issuer on first with POST /v1/trusted-issuers/{id}/enable. ACP payment tokens: any spt_… is charged once; spt_test_decline… is declined.

Stores

Your sign-up made test-store. Records are permanent, in the sandbox too (that's the point), so instead of a reset, make a fresh store:

curl -X POST https://dev.usewilby.com/v1/sandbox/test-store \
  -H "Authorization: Bearer $OH_KEY" \
  -H "Idempotency-Key: new-store-1" \
  -H "content-type: application/json" \
  -d '{
       "name": "Second Test Store"
     }'

The answer has the new store's external_ref. Sandbox endpoints are refused with live keys.