OneClick for Developers
Build with OneClick APIs
Integrate mobile top-ups, internet recharge, digital products, and secure payments into your application using simple REST APIs.
import { OCPay } from '@ocpay/node';const client = new OCPay('sk_live_...');await client.charges.create({amount: 1500,currency: 'DZD'});
$ocpay = new \OCPay\Client('sk_live_...');$ocpay->charges->create(['amount' => 1500,'currency' => 'DZD']);
import ocpayocpay.api_key = 'sk_live_...'ocpay.Charge.create(amount=1500,currency='DZD')
{ "id": "ch_9x3a", "status": "success", "amount": 1500, "created": 1680000000 }
Explore Our Resources
Everything you need to build and scale your integration.
Available API Products
Browse the full catalogue of OneClick APIs. Each API follows the same authentication and asynchronous response pattern.
Mobile Top-Up API
Top up any Algerian operator , Djezzy, Ooredoo, Mobilis.
Capabilities
Query available plans, send top-ups, and verify transaction status using a unique order reference.
Sample Endpoints
Navio Payment API
Generate secure payment links and accept DZD payments via CIB/EDAHABIA.
Capabilities
Create payment links with a unique reference, redirect customers, and verify payment status.
Sample Endpoints
Gift Cards API
Distribute digital gift cards from international and local brands.
Capabilities
Fetch the full gift card catalog, place orders, and check order delivery by ID.
Sample Endpoints
Internet Recharge API
Sell internet packages and data bundles for all operators.
Capabilities
Browse product catalogs, send recharges, and track delivery status with a unique order ID.
Sample Endpoints
Secure API Access
Use our secure authentication flow to protect your requests.
Real-time Event Notifications
Stay updated on asynchronous events automatically.
Real-time Processing
Receive immediate updates when an order transitions state.
Automatic Retries
Built-in exponential backoff for failed webhook deliveries.
Security Validation
Verify webhook authenticity using signature headers.
async function pollStatus(checkFunction, options = {}) {const {maxAttempts = 60,interval = 5000,finalStates = ["FULFILLED", "REFUNDED"],} = options;for (let attempt = 1; attempt <= maxAttempts; attempt++) {const result = await checkFunction();if (finalStates.includes(result.status)) {return result;}if (attempt < maxAttempts) {await new Promise((resolve) => setTimeout(resolve, interval));}}throw new Error("Polling timeout");}// Usageconst result = await pollStatus(() => checkTopupStatus(topupId), {maxAttempts: 60,interval: 5000,});
Multiple ways to integrate
Use our official SDKs, integrate directly via REST, or install a platform plugin for popular e-commerce tools.
Test before you go live
OneClick provides a full sandbox environment where you can simulate transactions safely before deploying to production.
Use these test phone numbers when calling the Mobile Top-Up API in sandbox mode.
060000000106000000020600000003Pro Tip:Sandbox API calls use the same endpoints and authentication as production. Set sandbox: true in your request body.
We're Here to Help
Get the technical support you need to succeed.
Portals
© 2026 OneClick. All rights reserved.



