Sandbox & Testing
Is there a sandbox?
v1.5 does not ship a separate sandbox. Use your real account in production with small test amounts.
| Item | Value |
|---|---|
| Production base URL | https://api.coinepay.net |
| Sandbox base URL | None |
| Local dev | http://localhost:8801 (your machine only) |
Recommended Testing Flow
1. Create dedicated test credentials
Don't test with production credentials. Generate independent AppID/Secret in the dashboard for testing.
2. Receive webhooks via webhook.site
https://webhook.site provides free temporary receiver URLs that show full request headers/body.
bash
# Open webhook.site in browser, copy the unique URL, e.g.:
WEBHOOK_URL="https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# Configure via dashboard or set_webhook endpoint3. Walk through "list headers → list configs → apply → webhook → info"
The most complete happy path. See Quick Start.
4. Test amount tips
| Item | Recommendation |
|---|---|
| Initial deposit | Pick the cheapest package (typically $5-10) |
| Test recharge | Use the package's min_recharge (in the package's recharge asset, the same unit as the /card/recharge amount). For virtual_v / virtual_r / virtual_g / virtual_a / virtual_s921 the card provider additionally requires at least 10 in card currency per deposit after fees; below that the recharge fails with recharge_rejected and the funds go back to your wallet |
| Multiple iterations | Open new cards each time — closing has fees |
Available card_types
| card_type | Description |
|---|---|
virtual_l | Virtual card class L |
virtual_p | Virtual card class P |
virtual_v | Virtual card class V (VISA) |
virtual_r | Virtual card class R |
virtual_g | Virtual card class G |
virtual_a | Virtual card class A |
virtual_s921 | Virtual card class S921 (USD; cardholder required) |
Account-dependent
Not every account has every card_type enabled. The header_id values returned from card_headers/list are your actual range — don't hardcode.
Credential Lifecycle
| Item | Value |
|---|---|
| Validity | Indefinite (until reset / disabled) |
| Per-user limit | 1 active credential pair (v1) |
| After reset | Old SECRET immediately invalid; AppID unchanged |
| After disable | HTTP 401 / code 40100 / error_key openapi_invalid_credentials; can re-enable any time |
Verify a Captured Webhook
Copy the request from webhook.site, run it through the verification snippet locally, and confirm verify_ok = true.
When to Contact Support
| Symptom | Self-check first |
|---|---|
| Persistent 401 | See Auth — handling 401 |
| No webhook received | Verify URL is public HTTPS, firewall, 5s response, check webhook_events/list |
Card stuck in pending | It's async; wait for webhook. Contact if > 30 min. |
virtual_s921 card has no card number yet | card.opened can arrive before the number is issued; poll /card/info until masked_card_no is non-empty before recharging (recharging too early returns card_number_not_ready) |
Recharge still processing | The final result is async: look for card.recharged / card.recharge_failed in webhook_events/list, or check /card/transactions/list. Do not resend with a new Idempotency-Key |
Support email: [email protected]