Check Status by ID
curl --request GET \
--url https://api.oneclickdz.com/v3/internet/check-id/{id} \
--header 'X-Access-Token: <api-key>'import requests
url = "https://api.oneclickdz.com/v3/internet/check-id/{id}"
headers = {"X-Access-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Access-Token': '<api-key>'}};
fetch('https://api.oneclickdz.com/v3/internet/check-id/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oneclickdz.com/v3/internet/check-id/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Access-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oneclickdz.com/v3/internet/check-id/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Access-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.oneclickdz.com/v3/internet/check-id/{id}")
.header("X-Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oneclickdz.com/v3/internet/check-id/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"card_code": "<string>",
"num_trans": "<string>",
"date_traitement": "<string>"
}Internet Top-Ups
Check Status by ID
Check internet top-up status using internal ID
GET
/
v3
/
internet
/
check-id
/
{id}
Check Status by ID
curl --request GET \
--url https://api.oneclickdz.com/v3/internet/check-id/{id} \
--header 'X-Access-Token: <api-key>'import requests
url = "https://api.oneclickdz.com/v3/internet/check-id/{id}"
headers = {"X-Access-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Access-Token': '<api-key>'}};
fetch('https://api.oneclickdz.com/v3/internet/check-id/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oneclickdz.com/v3/internet/check-id/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Access-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oneclickdz.com/v3/internet/check-id/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Access-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.oneclickdz.com/v3/internet/check-id/{id}")
.header("X-Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oneclickdz.com/v3/internet/check-id/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"card_code": "<string>",
"num_trans": "<string>",
"date_traitement": "<string>"
}Overview
Track internet top-up status and retrieve card details when fulfilled.Path Parameters
string
required
Internal top-up ID from
/internet/send responseResponse Fields
string
- HANDLING: Processing (3-45s) - FULFILLED: Complete with card code ✅
- REFUNDED: Failed and refunded ❌ - QUEUED: Scheduled (12-48h) ⏰
string
Activated card code (available when FULFILLED)
string
Algérie Télécom transaction number
string
Processing date
Examples
curl https://api.oneclickdz.com/v3/internet/check-id/6901616fe9e88196b4eb64b2 \
-H "X-Access-Token: YOUR_API_KEY"
const id = "6901616fe9e88196b4eb64b2";
const response = await fetch(
`https://api.oneclickdz.com/v3/internet/check-id/${id}`,
{ headers: { "X-Access-Token": "YOUR_API_KEY" } }
);
const { data } = await response.json();
response = requests.get(
f'https://api.oneclickdz.com/v3/internet/check-id/{topup_id}',
headers={'X-Access-Token': 'YOUR_API_KEY'}
)
data = response.json()['data']
<?php
$topupId = '6901616fe9e88196b4eb64b2';
$ch = curl_init("https://api.oneclickdz.com/v3/internet/check-id/{$topupId}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-Access-Token: YOUR_API_KEY']);
$response = curl_exec($ch);
$data = json_decode($response, true)['data'];
?>
Fulfilled Response
{
"success": true,
"data": {
"_id": "6901616fe9e88196b4eb64b2",
"ref": "internet-order-001",
"status": "FULFILLED",
"type": "ADSL",
"number": "036362608",
"topup_amount": 1000,
"card_code": "123456789012",
"num_trans": "AT-2025-12345",
"date_traitement": "2025-10-29T01:05:30.000Z",
"created_at": "2025-10-29T01:00:00.000Z"
}
}
Polling Example
async function pollInternetStatus(topupId) {
const maxAttempts = 60;
for (let i = 0; i < maxAttempts; i++) {
const response = await fetch(
`https://api.oneclickdz.com/v3/internet/check-id/${topupId}`,
{ headers: { "X-Access-Token": process.env.API_KEY } }
);
const { data } = await response.json();
if (["FULFILLED", "REFUNDED", "QUEUED"].includes(data.status)) {
return data;
}
await new Promise((resolve) => setTimeout(resolve, 5000));
}
throw new Error("Timeout");
}
Handling QUEUED Status
QUEUED means the top-up is scheduled for later (12-48 hours). Do not treat as
failure.
if (status === "QUEUED") {
// Save for later verification
await db.orders.update({
id: orderId,
status: "SCHEDULED",
message: "Card will be delivered within 48 hours",
});
// Check again after 24h
scheduleRecheck(orderId, 24 * 60 * 60 * 1000);
}
Related
Check by Reference
Track with custom ref
Send Top-Up
Create new order
⌘I

