Skip to main content

Get Your API Key

1

Sign Up

Create a free account at enterprise.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:
Response:
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:
Response:

Step 2: Check Top-Up Status

Check the status of your top-up using the reference:
Response:
Status flow: PENDING (5s) → HANDLING (15s) → FULFILLED

Step 3: Try Internet Top-Up

Recharge an ADSL line with a 1000 DZD card:
Response:
Check the internet top-up status:
Response:

Step 4: Explore Gift Cards

Get the product catalog to see available gift cards:
Place a gift card order:
Response:
Retrieve gift card codes by checking order status:
Response when fulfilled:
Card codes are retrieved from the cards array when status is FULFILLED

Sandbox Testing

In sandbox mode, test these special scenarios with mobile top-ups:
Each workflow guide includes comprehensive sandbox testing instructions and examples.

Understanding Response Format

All API responses follow this structure:
Learn about Response Format →

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]