ribirewards logo
Request Demo
For Developers

API Sandbox

Test your RibiRewards integration risk-free. No real money, no actual deliveries. Full API functionality in a safe environment.

Get Sandbox API KeyView API Docs

What you can test

The sandbox mirrors production functionality without real-world consequences

Test all gift types

Send gift boxes, choice cards, and experiences without spending real money

Webhook testing

Trigger webhook events and test your integration's response handling

Address collection flow

Test the complete recipient journey including address capture for gift boxes

Error scenarios

Simulate delivery failures, expired gifts, and edge cases to test error handling

Redemption testing

Complete end-to-end tests including recipient redemption flows

Unlimited test sends

No limits on sandbox API calls. Test as much as you need before going live

How sandbox mode works

1

Same API endpoints

Use the same API structure as production. Just swap your API key and base URL to sandbox mode.

api.sandbox.ribirewards.com
2

Test everything

Send gifts, trigger webhooks, test redemption flows. All gift operations work exactly like production.

No emails sent • No real deliveries • No charges
3

Switch to production

Once testing is complete, just swap to production API keys. Your code stays the same.

Replace sandbox key → Go live instantly

Test credit card numbers

Use these test cards to simulate different payment scenarios

4242424242424242Visa

Always succeeds

Success
4000000000000002Visa

Card declined

Decline
4000000000009995Visa

Insufficient funds error

Insufficient Funds

Important: Never use real credit cards

Always use test card numbers in sandbox mode. Real credit card numbers will be rejected. Use any future expiry date and any 3-digit CVC.

Sandbox vs Production

FeatureSandboxProduction
Real money chargedNoYes
Emails sent to recipientsNoYes
Physical gifts deliveredNoYes
Webhooks triggeredYesYes
API rate limitsUnlimited1,000 req/min
Data retention7 daysIndefinite

Get your sandbox API key

Start testing in 2 minutes

1. Sign up for free

Create a RibiRewards account and navigate to the Developer section in your dashboard.

2. Generate sandbox keys

Click "Create Sandbox API Key" to generate your test credentials:

Sandbox API Key:
sk_test_51234567890abcdefghijklmnopqrstuvwxyz

3. Make your first API call

curl https://api.sandbox.ribirewards.com/v1/gifts \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
    "recipient_email": "test@example.com",
    "gift_type": "choice_card",
    "amount": 100,
    "category": "coffee"
  }'

Ready to start testing?

Get sandbox API keys and start building your integration risk-free

Sign Up FreeView API Documentation
ribirewards logo

Gifting infrastructure for Africa and the Middle East.

For Developers

  • API Documentation
  • Integration Guide
  • Webhooks
  • Sandbox

Reward Types

  • Gift Boxes
  • Choice Cards
  • Experiences
  • Sports Tickets

Resources

  • Blog
  • FAQs
  • Contact Us

Contact

  • hello@ribirewards.com
  • 10+ African Countries

© 2026 RibiRewards. All rights reserved.