Card as a Service · Sandbox

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
01 — How it works

Live in three steps.

  1. Minute 1Get a test key

    Sign up in the console; the sandbox key starts with gp_test_.

    api
    · key gp_test_7f3a… ✓
    · api-sandbox.guarapay.io
  2. Minute 2Add test money

    One call fills the sandbox balance.

    api
    POST /simulate/topup 200
    POST /cards 201
  3. ThenPlay the flows

    Purchases, declines, refunds, 3-D Secure.

    api
    POST /simulate/purchase 201
    ⇢ transaction.posted ✓
02 — What you get

Sandbox, end to end.

Sandbox

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.

GuaraVIRTUAL
•••• •••• •••• 0042
Sandbox · testVISA
Simulate

Purchases & refunds

Make a purchase on any card, then refund it.

purchaserefund
Simulate

Declines by reason

Pick the reason your code must handle.

insufficient_fundsexpired_card
Simulate

3-D Secure codes

Get a one-time code by API and webhook.

Keys

Kept apart

A test key never works in live, and a live key never in the sandbox.

gp_test_gp_live_
03 — Code

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"}'
04 — Access

Tell us what you're building.

Three steps from here to live cards.

  1. We reply within a business dayPricing for your volume, by email or in your messenger.
  2. You connect the APIKeys, webhooks and MCP for your agents.
  3. You go liveSwitch to live keys and issue cards to your users.
Prefer email? support@guarapay.io
What will the cards be for?
Cards per month

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_.