Skip to content

Sandbox & Testing ​

Is there a sandbox? ​

v1.5 does not ship a separate sandbox. Use your real account in production with small test amounts.

ItemValue
Production base URLhttps://api.coinepay.net
Sandbox base URLNone
Local devhttp://localhost:8801 (your machine only)

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 endpoint

3. Walk through "list headers → list configs → apply → webhook → info" ​

The most complete happy path. See Quick Start.

4. Test amount tips ​

ItemRecommendation
Initial depositPick the cheapest package (typically $5-10)
Test rechargeUse 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 iterationsOpen new cards each time — closing has fees

Available card_types ​

card_typeDescription
virtual_lVirtual card class L
virtual_pVirtual card class P
virtual_vVirtual card class V (VISA)
virtual_rVirtual card class R
virtual_gVirtual card class G
virtual_aVirtual card class A
virtual_s921Virtual 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 ​

ItemValue
ValidityIndefinite (until reset / disabled)
Per-user limit1 active credential pair (v1)
After resetOld SECRET immediately invalid; AppID unchanged
After disableHTTP 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 ​

SymptomSelf-check first
Persistent 401See Auth — handling 401
No webhook receivedVerify URL is public HTTPS, firewall, 5s response, check webhook_events/list
Card stuck in pendingIt's async; wait for webhook. Contact if > 30 min.
virtual_s921 card has no card number yetcard.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 processingThe 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]

Released under MIT-equivalent terms.