Get Your API Key
1
Sign Up
Create a free account at oneclickdz.com
2
Generate API Keys
Go to Settings → API Section → Generate API KeyYou’ll receive two keys:
- Sandbox: Test without real transactions
- Production: Live transactions
3
Secure Your Keys
Store keys securely in environment variables. Never expose them in client-side code or version control.
Always start with Sandbox mode to test your integration safely.
Verify Your API Key
Test your API key with the validate endpoint:If you see
"success": true, your API key is working correctly!Step 1: Send a Mobile Top-Up
Send a 500 DZD top-up to a Djezzy number:Step 2: Check Top-Up Status
Check the status of your top-up using the reference:Status flow:
PENDING (5s) → HANDLING (15s) → FULFILLED ✅Step 3: Try Internet Top-Up
Recharge an ADSL line with a 1000 DZD card:Step 4: Explore Gift Cards
Get the product catalog to see available gift cards:Card codes are retrieved from the
cards array when status is FULFILLEDSandbox Testing
In sandbox mode, test these special scenarios with mobile top-ups:| Phone Number | Behavior | Purpose |
|---|---|---|
Any normal number (e.g., 0778037340) | Success: PENDING → HANDLING → FULFILLED | Test successful transactions |
0600000001 | REFUNDED with error message | Test refund handling |
0600000002 | REFUNDED with suggested alternative plans | Test plan mismatch |
0600000003 | UNKNOWN_ERROR status | Test uncertain state handling |
Each workflow guide includes comprehensive sandbox testing instructions and examples.
Understanding Response Format
All API responses follow this structure:Next Steps
Mobile Top-Up Guide
Complete integration workflow
Internet Top-Up Guide
ADSL and 4G with sandbox testing
Gift Card Guide
Digital product delivery
Error Handling
Handle errors properly
Authentication
Secure API access patterns
Best Practices
Production-ready security
Need Help? Check our Contact & Support page or email
[email protected]

