Sandbox Test Data
Sandbox keys (oh_test_…) run on a simulated processor: no real money moves. Use these as payment_method_ref.
Cards
| Payment method | What happens |
|---|---|
pm_test_card | A credit card: holds and charges go through. (Any other pm_test_… name works the same.) |
pm_test_decline | Always declined (402 payment_declined). |
pm_test_debit | A debit card: holds stay close to what the customer entered (1.2× by default). |
pm_test_prepaid | A prepaid card: same hold rule as debit. |
pm_test_hold5 | A 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 method | What happens |
|---|---|
pm_test_bank_ok | Clears. |
pm_test_bank_nsf | Returned R01 (not enough money), every time. |
pm_test_bank_nsf_once | The first debit of an order is returned R01; a retry clears. |
pm_test_bank_unauth | Returned R10 (customer says not authorized): counts against the unauthorized-return limit. |
pm_test_ibp | An 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://app.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.