Test every card flow before you go live
A sandbox with its own keys and test money. Simulate purchases, declines, refunds and 3-D Secure codes, and watch your code handle them.
- Test keys gp_test_…
- No real money
- Same API
Live in three steps.
- Minute 1Get a test key
Sign up in the console; the sandbox key starts with gp_test_.
· key gp_test_7f3a… ✓· api-sandbox.guarapay.io - Minute 2Add test money
One call fills the sandbox balance.
POST /simulate/topup 200POST /cards 201 - ThenPlay the flows
Purchases, declines, refunds, 3-D Secure.
POST /simulate/purchase 201⇢ transaction.posted ✓
Sandbox, end to end.
Real flows, test money
A purchase in the sandbox goes through the card state, the limit, the balance and your endpoint — the same checks as live.
Purchases & refunds
Make a purchase on any card, then refund it.
Declines by reason
Pick the reason your code must handle.
3-D Secure codes
Get a one-time code by API and webhook.
Kept apart
A test key never works in live, and a live key never in the sandbox.
A few lines
to start.
Same REST API, same keys and limits for every program. Docs open in the console after sign-up.
# a test key (gp_test_…) works only here — no real money # 1. add test money to the balance curl -X POST https://api-sandbox.guarapay.io/api/v1/sandbox/simulate/topup \ -H "Authorization: Bearer $GUARA_TEST_KEY" \ -d '{"amount_cents":100000}' # 2. a purchase on a card you issued curl -X POST https://api-sandbox.guarapay.io/api/v1/sandbox/simulate/purchase \ -H "Authorization: Bearer $GUARA_TEST_KEY" \ -d '{"card_id":"'$CARD_ID'","amount_cents":2000,"merchant":"OpenAI"}' # 3. a decline, with the reason you want to handle curl -X POST https://api-sandbox.guarapay.io/api/v1/sandbox/simulate/decline \ -H "Authorization: Bearer $GUARA_TEST_KEY" \ -d '{"card_id":"'$CARD_ID'","amount_cents":2000,"reason":"insufficient_funds"}'
Tell us what you're building.
Three steps from here to live cards.
- We reply within a business dayPricing for your volume, by email or in your messenger.
- You connect the APIKeys, webhooks and MCP for your agents.
- You go liveSwitch to live keys and issue cards to your users.
Sandbox: FAQ
Is there a sandbox for the card API?
Yes. After sign-up you get a sandbox with its own test keys and test money at api-sandbox.guarapay.io.
What can I simulate?
A top-up of the balance, a purchase, a decline with a chosen reason, a refund of a posted purchase and a 3-D Secure code.
Which decline reasons are there?
insufficient_funds, do_not_honor, expired_card, suspected_fraud and merchant_blocked.
Do webhooks and authorization work in the sandbox?
Yes. A simulated purchase goes through the same checks and asks your endpoint; the events reach your webhooks.
Can a test key move real money?
No. Test keys start with gp_test_ and work only in the sandbox; live keys start with gp_live_.