Test your integration safely in sandbox before going live with real customer data.
A safe testing environment with simulated data. Perfect for development and integration testing without affecting real customers.
https://sandbox.api.loyalproapp.comProduction environment for real customer data and transactions. Use this after thoroughly testing in sandbox.
https://api.loyalproapp.com| Feature | Sandbox | Live |
|---|---|---|
| Base URL | https://sandbox.api.loyalproapp.com | https://api.loyalproapp.com |
| Purpose | Testing and development | Production transactions |
| Data | Test data only, reset weekly | Real customer data |
| Rate Limits | 100 requests/minute | Based on your plan |
| Webhooks | Simulated events | Real-time events |
| Payments | Test card numbers only | Real payment processing |
Navigate to your dashboard and copy your sandbox API keys.
sk_sandbox_xxxxxxxxxxxxxxxxxxxxUse these example requests to test member creation and point transactions.
curl -X POST https://sandbox.api.loyalproapp.com/v1/members \
-H "Authorization: Bearer sk_sandbox_xxx" \
-H "Content-Type: application/json" \
-d '{"email": "test@example.com", "name": "Test User"}'Use these test card numbers in sandbox mode to simulate different payment scenarios.
4242 4242 4242 4242Successful payment
4000 0000 0000 0002Card declined
4000 0000 0000 9995Insufficient funds
The Live environment manages real customer data and transactions. Use with extreme caution. Always thoroughly test your integration in Sandbox before switching to Live. Ensure your application handles errors gracefully and has proper logging in place.