CHUNGSUCLIQI.COMCHUNGSUCLIQI.COM
API v1 · REST / JSON

API đặt đơn Chung Sức

Đặt đơn, đặt lẻ, Mở Rương, mua acc clone, Up Level, vẽ & mua bùa, mua rương tự động và theo dõi tiến độ ngay từ phần mềm của bạn. Cùng giá, cùng hàng đợi như đặt trên web — kết quả trả về dạng JSON.

Địa chỉ gốc
https://chungsucliqi.com/api/v1.php
Xác thực
Header X-API-Key
Giới hạn
30 lệnh/phút/key
24lệnh API
6nhóm chức năng
4ví dụ code (cURL · PHP · Python · Node)
30/phútgiới hạn mỗi key
Có gì mới

Dịch vụ tự động qua API

Bắt đầu nhanh

  1. Tạo tài khoản & nạp Xu.Đăng ký rồi nạp Xu qua QR ngân hàng. Giá bạn thấy phụ thuộc vai trò của tài khoản (thành viên, CTV hoặc Seller).
  2. Tạo API key.Vào Hồ sơ → bấm nút API key (hoặc tab Bảo mật → mục API đặt đơn tự động) → Tạo API key. Key dạng csk_… chỉ hiện đúng 1 lần, mỗi tài khoản tối đa 3 key.
  3. Gọi thử lệnh đầu tiên.Gửi key ở header X-API-Key. Nếu nhận được số dư Xu của bạn là key đã hoạt động.
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=me" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=me');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'me'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=me', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
Bạn chưa đăng nhập.Đăng nhập để tạo API key và xem số dư, key đang dùng ngay tại đây.
Đăng nhập

Xác thực & giới hạn

Gửi API key trong mọi lệnh bằng một trong các cách sau (ưu tiên header):

X-API-Key: csk_…Khuyên dùng
Authorization: Bearer csk_…Tương đương
api_key=csk_…Trường trong body POST dạng form
30/phútsố lệnh tối đa mỗi API key. Số lệnh còn lại nằm ở header X-RateLimit-Remaining
429khi vượt giới hạn — chờ theo header Retry-After (giây) rồi gửi lại
3 keytối đa mỗi tài khoản; thu hồi hoặc tạo lại bất cứ lúc nào
  • Gọi API từ máy chủ của bạn. Đừng để key trong mã chạy ở trình duyệt khách hoặc đưa lên kho mã công khai.
  • Gửi sai key quá 20 lần mỗi phút từ cùng một địa chỉ IP sẽ bị chặn tạm 1 phút (429 rate_limited).
  • Nghi ngờ lộ key: vào Hồ sơ → API đặt đơn tự động → Thu hồi, rồi tạo key mới. Key bị thu hồi dừng hoạt động ngay.
  • Tài khoản bị khoá sẽ nhận 403 forbidden.

Quy ước chung

Gọi lệnh

Mọi lệnh đi qua một địa chỉ duy nhất, chọn lệnh bằng tham số action. GET để đọc, POST để tạo đơn. Tham số gửi qua query string, JSON (Content-Type: application/json) hoặc form.

Định dạng trả về

JSON UTF-8. Thành công có "ok": true và dữ liệu ở data (lệnh trừ Xu có thêm balance = số dư còn lại). Thất bại có "ok": false kèm error.code, error.message và mã HTTP tương ứng.

Thành công · 200
{
  "ok": true,
  "data": {
    "…": "…"
  },
  "balance": 110000
}
Thất bại · 402
{
  "ok": false,
  "error": {
    "code": "insufficient_balance",
    "message": "Không đủ Xu.",
    "required": 40000,
    "balance": 12000
  }
}

Chống trừ Xu hai lần: client_ref

Khi tạo đơn, hãy luôn gửi client_ref — mã đơn bên bạn (≤ 64 ký tự, gồm chữ, số và . _ : -). Nếu mạng lỗi và bạn gửi lại cùng giá trị, hệ thống không tạo đơn trùng, không trừ Xu lần hai mà trả lại đơn cũ kèm "duplicate_request": true.

Trạng thái đơn status

pendingĐang chờ tới lượt chạy.
runningĐang chạy (xem progress).
doneHoàn thành.
cancelledĐã huỷ, Xu tự hoàn (lý do ở message).

Loại đơn type

orderĐơn Chung Sức theo sản phẩm.
retailĐặt lẻ (vé lẻ).
moruongĐơn Mở Rương.

Đơn mua clone có mã dạng CL… và nằm ở nhóm clone_*.

Giá: giá trả về ở products, retail, clone_products là giá áp dụng cho vai trò tài khoản của key. Số Xu thực trừ nằm ở price trong kết quả (đã gồm giảm giá theo hạng nếu có).

Tài khoản & hệ thống

Kiểm tra key, số dư, tình trạng dịch vụ và thông tin nạp Xu.

GET?action=me

Thông tin tài khoản

Trả tài khoản gắn với API key: ID, email, tên, vai trò (user, ctv, sale hoặc admin) và số dư Xu. Dùng để kiểm tra key đã chạy chưa. Lệnh balance cho kết quả giống hệt.

Lệnh này không cần tham số.

  • role quyết định bảng giá bạn được hưởng (thành viên, CTV hoặc Seller).
Lỗi thường gặpunauthorizedrate_limited
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=me" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=me');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'me'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=me', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "id": 12,
    "email": "[email protected]",
    "name": "An",
    "role": "ctv",
    "balance": 150000
  }
}
GET?action=status

Tình trạng dịch vụ

Xem các dịch vụ đang bật hay tắt, hệ thống có tự chạy đơn không, thời gian dự kiến và giờ máy chủ. Nên gọi trước khi đặt đơn hàng loạt.

Lệnh này không cần tham số.

  • eta_seconds là thời gian chờ dự kiến (giây) trước khi đơn bắt đầu chạy, chỉ mang tính tham khảo.
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=status" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=status');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'status'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=status', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "order_enabled": true,
    "retail_enabled": true,
    "moruong_enabled": true,
    "clone_enabled": true,
    "auto_run": true,
    "eta_seconds": 30,
    "min_deposit": 2000,
    "role": "ctv",
    "balance": 150000,
    "server_time": "2026-11-13 14:30:00"
  }
}
GET?action=deposit_info

Thông tin nạp Xu

Tài khoản ngân hàng nhận tiền, nội dung chuyển khoản riêng của bạn, nạp tối thiểu và các khuyến mãi nạp đang chạy.

Lệnh này không cần tham số.

  • Chuyển khoản đúng transfer_content thì Xu được cộng tự động sau khoảng 1 phút.
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=deposit_info" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=deposit_info');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'deposit_info'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=deposit_info', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "transfer_content": "NGUYEN VAN A chuyen tien CS12",
    "payer_name_set": true,
    "min_deposit": 2000,
    "banks": [
      {
        "bank": "MB Bank",
        "account_number": "0123456789",
        "account_name": "TRAN VAN B",
        "bank_code": "MB"
      }
    ],
    "promotions": [
      {
        "min_amount": 100000,
        "type": "percent",
        "bonus": 8
      }
    ],
    "note": "Chuyển đúng nội dung \"HỌ TÊN chuyen tien CS<ID>\" thì Xu được cộng tự động sau khoảng 1 phút."
  }
}
GET?action=deposits

Lịch sử nạp Xu

Các lần nạp thành công gần nhất kèm số dư hiện tại.

Tham số

limitinttuỳ chọn
Số dòng trả về, tối đa 100 (mặc định 20).
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=deposits&limit=20" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=deposits&limit=20');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'deposits', 'limit': 20},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=deposits&limit=20', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "balance": 150000,
    "deposits": [
      {
        "id": 88,
        "amount": 100000,
        "created_at": "2026-11-10 20:15:02"
      }
    ]
  }
}
POST?action=verify

Xác minh kết nối phần mềm

Dùng khi bạn kết nối phần mềm / web riêng: gửi token xác minh của tên miền (tạo ở Hồ sơ → API → Tên miền xác minh). Trả thông tin tài khoản, số dư và thống kê đơn.

Tham số

tokenstringbắt buộc
Token dạng csv_… của tên miền đã thêm.
  • domain_verified cho biết tên miền đã vượt qua bước xác minh (file hoặc TXT) hay chưa. Xem thêm mục Gọi từ trình duyệt.
Lỗi thường gặpbad_requestinvalid_token
curl -s -X POST \
  "https://chungsucliqi.com/api/v1.php?action=verify" \
  -H "X-API-Key: csk_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "csv_xxxxxxxxxxxx"
  }'
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=verify');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode(['token' => 'csv_xxxxxxxxxxxx']),
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.post(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'verify'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    json={'token': 'csv_xxxxxxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=verify', {
  method: 'POST',
  headers: {
    'X-API-Key': 'csk_xxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ token: 'csv_xxxxxxxxxxxx' }),
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "verified": true,
    "domain": "vi-du.com",
    "domain_verified": true,
    "account": {
      "id": 12,
      "email": "[email protected]",
      "name": "An",
      "role": "ctv",
      "balance": 150000,
      "total_deposit": 500000
    },
    "orders": {
      "count": 34,
      "spent": 420000
    }
  }
}

Đơn Chung Sức

Đặt đơn theo sản phẩm (mỗi mã sự kiện tính một suất), tra tiến độ và xem lịch sử.

GET?action=products

Danh sách sản phẩm

Sản phẩm đang bán cùng giá áp dụng cho tài khoản của bạn (theo thành viên / CTV / Seller) và số vé của mỗi gói. Lấy id ở đây để đặt đơn.

Lệnh này không cần tham số.

  • require_code = true nghĩa là phải gửi mã sự kiện khi đặt.
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=products" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=products');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'products'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=products', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "products": [
      {
        "id": 1,
        "name": "1 Rương SS",
        "price": 20000,
        "tickets": 152,
        "require_code": true
      },
      {
        "id": 2,
        "name": "Full 3 rương",
        "price": 45000,
        "tickets": 342,
        "require_code": true
      }
    ],
    "order_enabled": true
  }
}
POST?action=order

Tạo đơn

Tạo đơn và trừ Xu ngay. Mỗi mã sự kiện tính một suất; đơn xếp hàng và chạy tự động như đặt trên web.

Tham số

product_idintbắt buộc
ID sản phẩm, lấy từ products.
codesarray | stringbắt buộc
Mảng mã (hoặc chuỗi, mỗi mã một dòng / cách nhau dấu phẩy). Tối đa 200 mã. Có thể gửi code nếu chỉ một mã.
client_refstringtuỳ chọn
Mã đơn bên bạn, ≤ 64 ký tự (A-Z a-z 0-9 . _ : -). Gửi lại cùng giá trị không tạo đơn trùng, trả đơn cũ.
allow_duplicatebooleantuỳ chọn
true nếu vẫn muốn chạy mã đã có đơn khác.
phonestringtuỳ chọn
Số điện thoại (lưu vào tài khoản).
notestringtuỳ chọn
Ghi chú, tối đa 500 ký tự.
  • Số Xu thực trừ nằm ở data.price (đã gồm giảm giá theo hạng nếu có); số dư còn lại ở balance.
  • Gửi lại cùng client_ref → HTTP 200 với "duplicate_request": true và đơn cũ (không kèm balance), không trừ Xu lần hai.
curl -s -X POST \
  "https://chungsucliqi.com/api/v1.php?action=order" \
  -H "X-API-Key: csk_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": 1,
    "codes": ["ABC123", "XYZ789"],
    "client_ref": "don-0001"
  }'
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=order');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'product_id' => 1,
        'codes' => ['ABC123', 'XYZ789'],
        'client_ref' => 'don-0001',
    ]),
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.post(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'order'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    json={
        'product_id': 1,
        'codes': ['ABC123', 'XYZ789'],
        'client_ref': 'don-0001',
    },
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=order', {
  method: 'POST',
  headers: {
    'X-API-Key': 'csk_xxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    product_id: 1,
    codes: ['ABC123', 'XYZ789'],
    client_ref: 'don-0001',
  }),
});
console.log(await res.json());
201 CreatedPhản hồi mẫu
{
  "ok": true,
  "data": {
    "code": "SS1113ABCDE",
    "type": "order",
    "product": "1 Rương SS x2",
    "codes": ["ABC123", "XYZ789"],
    "price": 40000,
    "status": "running",
    "created_at": "2026-11-13 14:30:00",
    "updated_at": "2026-11-13 14:30:05"
  },
  "balance": 110000
}
GET?action=order

Tra một đơn

Trạng thái và tiến độ vé của một đơn thuộc tài khoản của bạn.

Tham số

codestringbắt buộc
Mã đơn (vd SS1113ABCDE).
  • progress và message chỉ có khi đơn đã vào hàng chạy.
Lỗi thường gặpbad_requestnot_found
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=order&code=SS1113ABCDE" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=order&code=SS1113ABCDE');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'order', 'code': 'SS1113ABCDE'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=order&code=SS1113ABCDE', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "code": "SS1113ABCDE",
    "type": "order",
    "product": "1 Rương SS x2",
    "codes": ["ABC123", "XYZ789"],
    "price": 40000,
    "status": "running",
    "created_at": "2026-11-13 14:30:00",
    "updated_at": "2026-11-13 14:30:05",
    "progress": {
      "percent": 64,
      "tickets_done": 97,
      "tickets_total": 152
    },
    "message": "Mã ABC123 đang chạy"
  }
}
GET?action=orders

Đơn gần nhất

Các đơn gần nhất, gồm cả đơn thường, đặt lẻ và Mở Rương (xem type).

Tham số

limitinttuỳ chọn
Số đơn, tối đa 50 (mặc định 20).
statusstringtuỳ chọn
Lọc theo trạng thái. Giá trị: pending running done cancelled
  • Đơn đã vào hàng chạy còn có thêm progress và message (như lệnh order); đơn Mở Rương có thêm mode, progress, summary.
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=orders&limit=20&status=done" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=orders&limit=20&status=done');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={
        'action': 'orders',
        'limit': 20,
        'status': 'done',
    },
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=orders&limit=20&status=done', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "orders": [
      {
        "code": "SS1113ABCDE",
        "type": "order",
        "product": "1 Rương SS x2",
        "codes": ["ABC123", "XYZ789"],
        "price": 40000,
        "status": "done",
        "created_at": "2026-11-13 14:30:00",
        "updated_at": "2026-11-13 14:41:12"
      }
    ]
  }
}
GET?action=orders_status

Tra nhiều đơn một lần

Tra tối đa 50 đơn trong một lệnh. Mã không thuộc tài khoản của bạn nằm ở not_found.

Tham số

codesstring | arraybắt buộc
Mã đơn, cách nhau dấu phẩy (hoặc POST mảng codes). Tối đa 50.
  • Mỗi đơn có cùng cấu trúc như lệnh orders (kèm progress, message nếu đã vào hàng chạy).
Lỗi thường gặpbad_request
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=orders_status&codes=SS1113ABCDE,BL1113XXXXX" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=orders_status&codes=SS1113ABCDE,BL1113XXXXX');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'orders_status', 'codes': 'SS1113ABCDE,BL1113XXXXX'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=orders_status&codes=SS1113ABCDE,BL1113XXXXX', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "orders": [
      {
        "code": "SS1113ABCDE",
        "type": "order",
        "product": "1 Rương SS x2",
        "codes": ["ABC123", "XYZ789"],
        "price": 40000,
        "status": "done",
        "created_at": "2026-11-13 14:30:00",
        "updated_at": "2026-11-13 14:41:12"
      }
    ],
    "not_found": ["BL1113XXXXX"]
  }
}
GET?action=history

Lịch sử có phân trang

Lịch sử đơn có phân trang và bộ lọc, kèm tổng số đơn, tổng Xu đã chi và số dư.

Tham số

pageinttuỳ chọn
Trang, bắt đầu từ 1.
limitinttuỳ chọn
Số đơn mỗi trang, tối đa 100 (mặc định 20).
statusstringtuỳ chọn
Lọc theo trạng thái. Giá trị: pending running done cancelled
typestringtuỳ chọn
Lọc theo loại đơn. Giá trị: order retail moruong
fromdatetuỳ chọn
Từ ngày, dạng 2026-11-01.
todatetuỳ chọn
Đến hết ngày, dạng 2026-11-13.
  • spent không tính các đơn đã huỷ (đã hoàn Xu).
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=history&page=1&limit=20&type=order&from=2026-11-01" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=history&page=1&limit=20&type=order&from=2026-11-01');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={
        'action': 'history',
        'page': 1,
        'limit': 20,
        'type': 'order',
        'from': '2026-11-01',
    },
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=history&page=1&limit=20&type=order&from=2026-11-01', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "page": 1,
    "limit": 20,
    "total": 57,
    "spent": 812000,
    "balance": 150000,
    "orders": [
      {
        "code": "SS1113ABCDE",
        "type": "order",
        "product": "1 Rương SS x2",
        "codes": ["ABC123", "XYZ789"],
        "price": 40000,
        "status": "done",
        "created_at": "2026-11-13 14:30:00",
        "updated_at": "2026-11-13 14:41:12"
      }
    ]
  }
}

Đặt lẻ (vé lẻ)

Mua vé lẻ theo lượt hoặc theo gói cho đúng một mã sự kiện.

GET?action=retail

Bảng giá đặt lẻ

Bảng giá đặt lẻ áp dụng cho tài khoản của bạn: giá một lượt, số vé mỗi lượt, giới hạn số lượng và các gói vé đang bán.

Lệnh này không cần tham số.

  • Mua theo gói: gửi pack = key của gói. Không gửi pack = mua theo lượt (unit_price mỗi lượt).
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=retail" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=retail');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'retail'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=retail', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "enabled": true,
    "unit_name": "bi",
    "per_unit": 25,
    "unit_price": 4000,
    "min": 1,
    "max": 999,
    "packs": [
      {
        "key": "pk4",
        "name": "114 vé",
        "tickets": 114,
        "price": 20000
      },
      {
        "key": "pk5",
        "name": "500 vé",
        "tickets": 500,
        "price": 50000
      }
    ]
  }
}
POST?action=retail_order

Đặt lẻ

Đặt lẻ một mã cho mỗi đơn, trừ Xu ngay. Muốn nhiều mã thì gọi nhiều lần (mỗi lần một client_ref riêng).

Tham số

codestringbắt buộc
Mã sự kiện, đúng 1 mã (5–40 ký tự).
qtyintbắt buộc
Số lượt (hoặc số gói nếu có pack), trong khoảng min–max của retail.
packstringtuỳ chọn
Key gói vé, vd pk4. Bỏ trống = mua theo lượt.
client_refstringtuỳ chọn
Mã đơn bên bạn, gửi lại không tạo đơn trùng.
phonestringtuỳ chọn
Số điện thoại.
notestringtuỳ chọn
Ghi chú.
curl -s -X POST \
  "https://chungsucliqi.com/api/v1.php?action=retail_order" \
  -H "X-API-Key: csk_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "ABC123",
    "pack": "pk4",
    "qty": 1,
    "client_ref": "le-0001"
  }'
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=retail_order');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'code' => 'ABC123',
        'pack' => 'pk4',
        'qty' => 1,
        'client_ref' => 'le-0001',
    ]),
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.post(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'retail_order'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    json={
        'code': 'ABC123',
        'pack': 'pk4',
        'qty': 1,
        'client_ref': 'le-0001',
    },
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=retail_order', {
  method: 'POST',
  headers: {
    'X-API-Key': 'csk_xxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    code: 'ABC123',
    pack: 'pk4',
    qty: 1,
    client_ref: 'le-0001',
  }),
});
console.log(await res.json());
201 CreatedPhản hồi mẫu
{
  "ok": true,
  "data": {
    "code": "BL1113ABCDE",
    "type": "retail",
    "product": "Đặt lẻ x1 (114 vé)",
    "codes": ["ABC123"],
    "price": 20000,
    "status": "running",
    "created_at": "2026-11-13 14:30:00",
    "updated_at": "2026-11-13 14:30:00"
  },
  "balance": 130000
}

Mở Rương

Gửi danh sách acc (tk|mk), đơn xếp hàng chạy lần lượt; acc lỗi được hoàn Xu khi đơn xong.

GET?action=moruong

Thông tin Mở Rương

Mở Rương đang bật hay bảo trì, giá đồng nhất mỗi acc, số acc tối đa mỗi đơn, danh sách chế độ (key) và tình trạng hàng chờ.

Lệnh này không cần tham số.

  • Dùng modes[].key làm tham số mode khi đặt đơn.
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=moruong" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=moruong');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'moruong'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=moruong', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "enabled": true,
    "price_per_acc": 40,
    "max_per_order": 1000,
    "modes": [
      {
        "key": "mua_giay_s_ve_bua",
        "name": "Mua 66 Cuộn giấy S & Vẽ bùa bậc S",
        "description": "Dùng 400 QH mua 66 Cuộn giấy S & Vẽ bùa bậc S.",
        "price_per_acc": 40
      }
    ],
    "format": "tk|mk, mỗi dòng một acc",
    "queue": "chưa có đơn chạy · tổng 0 đơn mở (0 acc)"
  }
}
POST?action=moruong_order

Đặt đơn Mở Rương

Đặt đơn Mở Rương, trừ Xu ngay (giá × số acc). Đơn xếp hàng và chạy lần lượt.

Tham số

modestringbắt buộc
Key chế độ, lấy từ moruong.
accountsarray | stringbắt buộc
Mảng hoặc chuỗi, mỗi dòng một acc đúng dạng tk|mk. Sai dòng nào, API trả bad_accounts kèm số dòng và đơn không được tạo.
client_refstringtuỳ chọn
Mã đơn bên bạn, gửi lại không tạo đơn trùng.
notestringtuỳ chọn
Ghi chú.
  • Acc đang nằm trong một đơn Mở Rương chưa xong sẽ bị từ chối (bad_accounts).
  • Đặt liên tiếp quá nhanh có thể nhận rate_limited — chờ vài giây rồi gửi lại.
  • Đổi mật khẩu các acc sau khi đơn xong để an toàn.
curl -s -X POST \
  "https://chungsucliqi.com/api/v1.php?action=moruong_order" \
  -H "X-API-Key: csk_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "mua_giay_s_ve_bua",
    "accounts": ["acc_01|matkhau1", "acc_02|matkhau2"],
    "client_ref": "mr-0001"
  }'
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=moruong_order');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'mode' => 'mua_giay_s_ve_bua',
        'accounts' => ['acc_01|matkhau1', 'acc_02|matkhau2'],
        'client_ref' => 'mr-0001',
    ]),
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.post(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'moruong_order'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    json={
        'mode': 'mua_giay_s_ve_bua',
        'accounts': ['acc_01|matkhau1', 'acc_02|matkhau2'],
        'client_ref': 'mr-0001',
    },
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=moruong_order', {
  method: 'POST',
  headers: {
    'X-API-Key': 'csk_xxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    mode: 'mua_giay_s_ve_bua',
    accounts: ['acc_01|matkhau1', 'acc_02|matkhau2'],
    client_ref: 'mr-0001',
  }),
});
console.log(await res.json());
201 CreatedPhản hồi mẫu
{
  "ok": true,
  "data": {
    "code": "MR1113ABCDE",
    "type": "moruong",
    "product": "Mở Rương · 66 Cuộn giấy S & Vẽ bùa bậc S x2",
    "codes": ["acc_01", "acc_02"],
    "price": 80,
    "status": "pending",
    "created_at": "2026-11-13 14:30:00",
    "updated_at": "2026-11-13 14:30:00",
    "mode": "mua_giay_s_ve_bua",
    "progress": {
      "percent": 0,
      "total": 2
    },
    "summary": {
      "ok": 0,
      "failed": 0,
      "running": 0,
      "waiting": 2,
      "refunded": 0
    }
  },
  "balance": 96000
}
GET?action=moruong_result

Kết quả từng acc

Kết quả từng acc: dòng, trạng thái (ok, failed, running, waiting), quà nhận được (prize, skin, jackpot) hoặc lý do lỗi. Tổng hợp và số Xu hoàn nằm ở summary.

Tham số

codestringbắt buộc
Mã đơn Mở Rương (vd MR1113ABCDE).
  • prize, skin, jackpot chỉ có ở acc ok; error chỉ có ở acc failed. Acc waiting / running mới chỉ có line, account, status.
  • Acc lỗi được hoàn Xu khi đơn kết thúc (summary.refunded).
Lỗi thường gặpbad_requestnot_found
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=moruong_result&code=MR1113ABCDE" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=moruong_result&code=MR1113ABCDE');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'moruong_result', 'code': 'MR1113ABCDE'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=moruong_result&code=MR1113ABCDE', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "code": "MR1113ABCDE",
    "type": "moruong",
    "product": "Mở Rương · 66 Cuộn giấy S & Vẽ bùa bậc S x2",
    "codes": ["acc_01", "acc_02"],
    "price": 80,
    "status": "done",
    "created_at": "2026-11-13 14:30:00",
    "updated_at": "2026-11-13 14:30:00",
    "mode": "mua_giay_s_ve_bua",
    "progress": {
      "percent": 0,
      "total": 2
    },
    "summary": {
      "ok": 1,
      "failed": 1,
      "running": 0,
      "waiting": 0,
      "refunded": 40
    },
    "results": [
      {
        "line": 1,
        "account": "acc_01",
        "status": "ok",
        "prize": "2 Vé quay",
        "skin": "Tên skin nhận được",
        "jackpot": false
      },
      {
        "line": 2,
        "account": "acc_02",
        "status": "failed",
        "error": "Sai mật khẩu"
      }
    ]
  }
}

Dịch vụ tự động

Up Level, Mua & Vẽ bùa bậc S, Mua rương: gửi danh sách acc `tk|mk`, đơn chạy tự động, acc không thành công được hoàn Xu theo tỉ lệ khi đơn xong.

GET?action=services

Bảng giá & quy tắc dịch vụ

Dịch vụ nào đang bật, giá hiện tại và giới hạn của từng dịch vụ. Up Level tính theo từng trận (không tính theo cụm), có sẵn gói 3 trận lên Lv 12 và 7 trận lên Lv 15.

Lệnh này không cần tham số.

  • option: Up Level có old (acc cũ, chỉ chạy 5v5) và new (acc CTNV mới: làm nhiệm vụ tân thủ + 1v1 rồi 5v5; acc CTNV vẫn có level, tìm được bằng tên trong game nhưng chỉ dùng cho Chung Sức, không đăng nhập được).
  • Acc Mua & Vẽ bùa có 400 Quân Huy hữu hạn mua được 66 vé bùa (66 vé = 396 Quân Huy).
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=services" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=services');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'services'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=services', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "enabled": true,
    "format": "tk|mk — mỗi dòng một acc",
    "services": [
      {
        "key": "level",
        "name": "Up Level",
        "maintenance": false,
        "price_per_acc_per_match": 60,
        "min_matches": 1,
        "max_matches": 10,
        "cluster_size": 5,
        "options": ["old", "new"],
        "plans": [
          {
            "matches": 3,
            "target_level": 12
          },
          {
            "matches": 7,
            "target_level": 15
          }
        ],
        "rule": "Số acc phải chia hết cho 5 (1 cụm = 5 acc). Tiền = số acc × số trận × giá 1 trận."
      },
      {
        "key": "spaper",
        "name": "Mua & Vẽ bùa bậc S",
        "maintenance": false,
        "price_per_account": 30,
        "price_per_ticket": 30,
        "min_qty": 1,
        "max_qty": 100
      },
      {
        "key": "chest",
        "name": "Mua rương",
        "maintenance": false,
        "min_qty": 1,
        "max_qty": 100,
        "chests": [
          {
            "key": "bachve",
            "name": "Rương Bạch Vệ",
            "price_per_account": 80
          }
        ]
      }
    ]
  }
}
POST?action=service_order

Tạo đơn dịch vụ

Tạo đơn và trừ Xu ngay (số acc × số lượng × đơn giá). Đơn chạy tự động; acc không thành công được hoàn Xu khi đơn kết thúc.

Tham số

servicestringbắt buộc
Dịch vụ cần chạy. Giá trị: level spaper chest
accountsarray | stringbắt buộc
Mảng hoặc chuỗi, mỗi dòng một acc dạng tk|mk. Up Level: số acc chia hết cho 5.
qtyintbắt buộc
Up Level: số trận mỗi acc (1–10, vd 3 hoặc 7). Bùa / rương: số lượng mỗi acc (1–100).
optionstringtuỳ chọn
Up Level: old (mặc định) hoặc new. Mua rương: key rương lấy từ services.
client_refstringtuỳ chọn
Mã chống đặt trùng (tối đa 64 ký tự). Gửi lại cùng giá trị → trả đơn cũ, không trừ Xu lần nữa.
  • Mã đơn theo dịch vụ: Up Level UPLV…, Mua & Vẽ bùa VB…, Mở rương MR….
  • Một dòng sai định dạng, acc trùng hoặc số acc Up Level không chia hết cho 5 → từ chối, chưa trừ Xu.
  • Hết luồng chạy tạm thời → HTTP 422 kèm lời nhắn thử lại sau.
curl -s -X POST \
  "https://chungsucliqi.com/api/v1.php?action=service_order" \
  -H "X-API-Key: csk_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "service": "level",
    "accounts": ["acc_01|matkhau1", "acc_02|matkhau2", "acc_03|matkhau3", "acc_04|matkhau4", "acc_05|matkhau5"],
    "qty": 3,
    "option": "old",
    "client_ref": "dv-0001"
  }'
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=service_order');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'service' => 'level',
        'accounts' => ['acc_01|matkhau1', 'acc_02|matkhau2', 'acc_03|matkhau3', 'acc_04|matkhau4', 'acc_05|matkhau5'],
        'qty' => 3,
        'option' => 'old',
        'client_ref' => 'dv-0001',
    ]),
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.post(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'service_order'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    json={
        'service': 'level',
        'accounts': ['acc_01|matkhau1', 'acc_02|matkhau2', 'acc_03|matkhau3', 'acc_04|matkhau4', 'acc_05|matkhau5'],
        'qty': 3,
        'option': 'old',
        'client_ref': 'dv-0001',
    },
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=service_order', {
  method: 'POST',
  headers: {
    'X-API-Key': 'csk_xxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    service: 'level',
    accounts: ['acc_01|matkhau1', 'acc_02|matkhau2', 'acc_03|matkhau3', 'acc_04|matkhau4', 'acc_05|matkhau5'],
    qty: 3,
    option: 'old',
    client_ref: 'dv-0001',
  }),
});
console.log(await res.json());
201 CreatedPhản hồi mẫu
{
  "ok": true,
  "data": {
    "code": "UPLVTOQHXSEC8",
    "type": "service",
    "service": "level",
    "name": "Up Level",
    "option": "old",
    "accounts": 5,
    "qty": 3,
    "price": 900,
    "refunded": 0,
    "status": "running",
    "progress": {
      "percent": 0,
      "success": 0,
      "failed": 0,
      "running": 5,
      "waiting": 0,
      "clusters": {
        "total": 1,
        "done": 0,
        "run": 1,
        "wait": 0,
        "fail": 0
      }
    },
    "note": "",
    "created_at": "2026-11-19 12:43:10",
    "finished_at": null
  },
  "balance": 33759
}
GET?action=service_status

Tra một đơn dịch vụ

Tiến độ theo thời gian thực (đang chạy / chưa chạy / thành công / lỗi, số cụm với Up Level). Khi đơn xong có thêm danh sách acc thành công và acc lỗi, kèm kết quả trúng (bùa, rương) nếu có.

Tham số

codestringbắt buộc
Mã đơn dịch vụ.
  • status: pending (đang gửi), running, done, failed, cancelled, review (đang kiểm tra, admin xử lý).
  • Gọi mỗi 5–10 giây là đủ; results chỉ có khi đơn đã done hoặc failed.
  • results.errors là lý do bên chạy trả về cho từng acc lỗi (khoá là tài khoản, chữ thường); results.error là lỗi chung của cả đợt. Khi đơn bị huỷ, note ghi rõ lý do.
Lỗi thường gặpbad_requestnot_found
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=service_status&code=UPLVTOQHXSEC8" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=service_status&code=UPLVTOQHXSEC8');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'service_status', 'code': 'UPLVTOQHXSEC8'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=service_status&code=UPLVTOQHXSEC8', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "code": "UPLVTOQHXSEC8",
    "type": "service",
    "service": "level",
    "name": "Up Level",
    "option": "old",
    "accounts": 5,
    "qty": 3,
    "price": 900,
    "refunded": 180,
    "status": "done",
    "progress": {
      "percent": 100,
      "success": 4,
      "failed": 1,
      "running": 0,
      "waiting": 0,
      "clusters": {
        "total": 1,
        "done": 0,
        "run": 0,
        "wait": 0,
        "fail": 1
      }
    },
    "note": "Đã hoàn 180 Xu cho 1 acc chưa thành công.",
    "created_at": "2026-11-19 12:43:10",
    "finished_at": "2026-11-19 12:55:40",
    "results": {
      "success": ["acc_01|matkhau1", "acc_02|matkhau2"],
      "failed": ["acc_05|matkhau5"],
      "errors": {
        "acc_05": "Sai mật khẩu"
      }
    }
  }
}
GET?action=service_orders

Đơn dịch vụ gần nhất

Các đơn dịch vụ gần nhất của bạn (không kèm results, dùng service_status để lấy kết quả).

Tham số

limitinttuỳ chọn
Số đơn, tối đa 50 (mặc định 20).
statusstringtuỳ chọn
Lọc theo trạng thái. Giá trị: pending running done failed cancelled review
servicestringtuỳ chọn
Lọc theo dịch vụ. Giá trị: level spaper chest
Lỗi thường gặpunauthorized
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=service_orders&limit=20" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=service_orders&limit=20');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'service_orders', 'limit': 20},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=service_orders&limit=20', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "orders": []
  }
}
POST?action=service_retry

Chạy lại acc lỗi

Tạo đơn mới chỉ gồm các acc lỗi của một đơn đã kết thúc. Trừ Xu ngay theo giá hiện tại; acc lỗi lần trước vẫn được hoàn Xu như bình thường.

Tham số

codestringbắt buộc
Mã đơn đã kết thúc có acc lỗi.
  • Up Level chỉ chạy lại số acc chia hết cho 5; acc lẻ còn lại không chạy.
  • Mỗi đơn chỉ chạy lại được một lần (retried_by cho biết đơn đã chạy lại).
curl -s -X POST \
  "https://chungsucliqi.com/api/v1.php?action=service_retry" \
  -H "X-API-Key: csk_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "UPLVTOQHXSEC8"
  }'
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=service_retry');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode(['code' => 'UPLVTOQHXSEC8']),
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.post(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'service_retry'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    json={'code': 'UPLVTOQHXSEC8'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=service_retry', {
  method: 'POST',
  headers: {
    'X-API-Key': 'csk_xxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ code: 'UPLVTOQHXSEC8' }),
});
console.log(await res.json());
201 CreatedPhản hồi mẫu
{
  "ok": true,
  "data": {
    "code": "UPLVTOQHXSEC9",
    "type": "service",
    "service": "level",
    "status": "running",
    "retry_of": "UPLVTOQHXSEC8"
  },
  "balance": 32859
}

Mua acc (clone)

Mua acc clone, trừ Xu ngay và nhận luôn danh sách tài khoản trong phản hồi.

GET?action=clone_products

Danh sách acc clone

Các loại acc đang bán, giá áp dụng cho tài khoản của bạn và số tài khoản còn trong kho.

Lệnh này không cần tham số.

  • stock là số tài khoản còn lại; mua vượt số này nhận lỗi out_of_stock.
Lỗi thường gặpclone_disabled
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=clone_products" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=clone_products');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'clone_products'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=clone_products', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "products": [
      {
        "id": 7,
        "name": "Clone 7 ngày",
        "price": 3000,
        "stock": 120
      }
    ]
  }
}
POST?action=clone_buy

Mua acc clone

Mua acc clone: trừ Xu ngay và trả luôn danh sách tài khoản (accounts, mỗi phần tử dạng tk|mk).

Tham số

product_idintbắt buộc
ID từ clone_products.
amountintbắt buộc
Số tài khoản, từ 1 đến 500 mỗi lệnh.
client_refstringtuỳ chọn
Mã đơn bên bạn. Gửi lại không bị trừ Xu hai lần (trả đơn cũ kèm accounts).
  • Lưu ngay danh sách accounts — bạn vẫn lấy lại được bằng clone_orders&id=….
curl -s -X POST \
  "https://chungsucliqi.com/api/v1.php?action=clone_buy" \
  -H "X-API-Key: csk_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": 7,
    "amount": 3,
    "client_ref": "clone-0001"
  }'
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=clone_buy');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'product_id' => 7,
        'amount' => 3,
        'client_ref' => 'clone-0001',
    ]),
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.post(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'clone_buy'},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    json={
        'product_id': 7,
        'amount': 3,
        'client_ref': 'clone-0001',
    },
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=clone_buy', {
  method: 'POST',
  headers: {
    'X-API-Key': 'csk_xxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    product_id: 7,
    amount: 3,
    client_ref: 'clone-0001',
  }),
});
console.log(await res.json());
201 CreatedPhản hồi mẫu
{
  "ok": true,
  "data": {
    "id": 55,
    "code": "CL55",
    "product": "Clone 7 ngày",
    "amount": 3,
    "price": 9000,
    "status": "success",
    "created_at": "2026-11-13 14:30:00",
    "accounts": ["user1|pass1", "user2|pass2", "user3|pass3"]
  },
  "balance": 141000
}
GET?action=clone_orders

Lịch sử mua clone

Lịch sử mua clone (tối đa 50). Thêm id để lấy lại một đơn kèm danh sách tài khoản.

Tham số

limitinttuỳ chọn
Số đơn, tối đa 50 (mặc định 20).
idinttuỳ chọn
ID đơn; có id thì trả một đơn kèm accounts.
  • Không có id: trả data.orders (danh sách, không kèm tài khoản).
Lỗi thường gặpnot_found
curl -s \
  "https://chungsucliqi.com/api/v1.php?action=clone_orders&id=55" \
  -H "X-API-Key: csk_xxxxxxxx"
<?php
$ch = curl_init('https://chungsucliqi.com/api/v1.php?action=clone_orders&id=55');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: csk_xxxxxxxx'],
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res);
import requests

r = requests.get(
    'https://chungsucliqi.com/api/v1.php',
    params={'action': 'clone_orders', 'id': 55},
    headers={'X-API-Key': 'csk_xxxxxxxx'},
    timeout=30,
)
print(r.json())
const res = await fetch('https://chungsucliqi.com/api/v1.php?action=clone_orders&id=55', {
  headers: { 'X-API-Key': 'csk_xxxxxxxx' },
});
console.log(await res.json());
200 OKPhản hồi mẫu
{
  "ok": true,
  "data": {
    "id": 55,
    "code": "CL55",
    "product": "Clone 7 ngày",
    "amount": 3,
    "price": 9000,
    "status": "success",
    "created_at": "2026-11-13 14:30:00",
    "accounts": ["user1|pass1", "user2|pass2", "user3|pass3"]
  }
}

Thử nhanh

Chạy thử các lệnh chỉ đọc (GET) bằng API key của bạn ngay trên trang này. Key chỉ nằm trong trình duyệt của bạn và được gửi thẳng tới máy chủ, không lưu lại. Lệnh tạo đơn (POST) không có ở đây để tránh trừ Xu ngoài ý muốn — hãy gọi từ phần mềm của bạn.

Quy trình mẫu: đặt đơn → chờ → nhận kết quả

Đoạn mã đầy đủ: đặt đơn với client_ref, kiểm tra lỗi rồi hỏi tiến độ mỗi 20 giây cho tới khi đơn done hoặc cancelled.

API="https://chungsucliqi.com/api/v1.php"
KEY="csk_xxxxxxxx"

# 1) Kiểm tra số dư
curl -s "$API?action=me" -H "X-API-Key: $KEY"

# 2) Đặt đơn
curl -s -X POST "$API?action=order" \
  -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"product_id":1,"codes":["ABC123"],"client_ref":"don-0001"}'

# 3) Tra tiến độ (thay SS1113ABCDE bằng data.code ở bước 2)
curl -s "$API?action=order&code=SS1113ABCDE" -H "X-API-Key: $KEY"
<?php
const API = 'https://chungsucliqi.com/api/v1.php';
const KEY = 'csk_xxxxxxxx';

function call(string $method, string $action, array $query = [], ?array $body = null): array
{
    $ch = curl_init(API . '?' . http_build_query(['action' => $action] + $query));
    $head = ['X-API-Key: ' . KEY];
    $opt = [CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 30, CURLOPT_CUSTOMREQUEST => $method];
    if ($body !== null) {
        $head[] = 'Content-Type: application/json';
        $opt[CURLOPT_POSTFIELDS] = json_encode($body);
    }
    $opt[CURLOPT_HTTPHEADER] = $head;
    curl_setopt_array($ch, $opt);
    $out = json_decode((string) curl_exec($ch), true);
    curl_close($ch);
    return is_array($out) ? $out : ['ok' => false, 'error' => ['code' => 'bad_response']];
}

// 1) Đặt đơn (client_ref giúp không bị trừ Xu hai lần khi gửi lại)
$res = call('POST', 'order', [], ['product_id' => 1, 'codes' => ['ABC123'], 'client_ref' => 'don-0001']);
if (!$res['ok']) exit('Lỗi: ' . $res['error']['code'] . ' - ' . ($res['error']['message'] ?? ''));
$code = $res['data']['code'];
echo "Đã tạo đơn $code, còn {$res['balance']} Xu\n";

// 2) Chờ đơn chạy xong
do {
    sleep(20);
    $info = call('GET', 'order', ['code' => $code])['data'];
    echo $info['status'], PHP_EOL;
} while (!in_array($info['status'], ['done', 'cancelled'], true));
import time
import requests

API = 'https://chungsucliqi.com/api/v1.php'
HEAD = {'X-API-Key': 'csk_xxxxxxxx'}


def call(method, action, params=None, body=None):
    q = {'action': action, **(params or {})}
    return requests.request(method, API, params=q, json=body, headers=HEAD, timeout=30).json()


# 1) Đặt đơn (client_ref giúp không bị trừ Xu hai lần khi gửi lại)
res = call('POST', 'order', body={'product_id': 1, 'codes': ['ABC123'], 'client_ref': 'don-0001'})
if not res['ok']:
    raise SystemExit(res['error'])
code = res['data']['code']
print('Đã tạo đơn', code, '- còn', res['balance'], 'Xu')

# 2) Chờ đơn chạy xong
while True:
    info = call('GET', 'order', params={'code': code})['data']
    print(info['status'], info.get('progress'))
    if info['status'] in ('done', 'cancelled'):
        break
    time.sleep(20)
const API = 'https://chungsucliqi.com/api/v1.php';
const KEY = 'csk_xxxxxxxx';

async function call(method, action, { query = {}, body } = {}) {
  const url = API + '?' + new URLSearchParams({ action, ...query });
  const res = await fetch(url, {
    method,
    headers: { 'X-API-Key': KEY, ...(body ? { 'Content-Type': 'application/json' } : {}) },
    body: body ? JSON.stringify(body) : undefined,
  });
  return res.json();
}

// 1) Đặt đơn (client_ref giúp không bị trừ Xu hai lần khi gửi lại)
const created = await call('POST', 'order', { body: { product_id: 1, codes: ['ABC123'], client_ref: 'don-0001' } });
if (!created.ok) throw new Error(created.error.code + ': ' + created.error.message);
const code = created.data.code;
console.log('Đã tạo đơn', code, '- còn', created.balance, 'Xu');

// 2) Chờ đơn chạy xong
let info;
do {
  await new Promise((r) => setTimeout(r, 20000));
  info = (await call('GET', 'order', { query: { code } })).data;
  console.log(info.status, info.progress);
} while (!['done', 'cancelled'].includes(info.status));

Bảng lỗi

Lỗi luôn trả dạng {"ok": false, "error": {"code": "…", "message": "…"}} kèm mã HTTP. Hãy xử lý theo error.code (ổn định), không theo nội dung message.

400
bad_json

Nội dung JSON gửi lên không hợp lệ.

Kiểm tra cú pháp JSON và header Content-Type: application/json.

401
unauthorized

Thiếu, sai hoặc đã thu hồi API key.

Gửi đúng header X-API-Key; tạo key mới nếu key cũ đã bị thu hồi.

402
insufficient_balance

Không đủ Xu (kèm required và balance).

Nạp thêm Xu rồi gửi lại cùng client_ref.

403
forbidden

Tài khoản đang bị khoá.

Liên hệ hỗ trợ.

403
invalid_token

Token xác minh sai hoặc đã được tạo lại.

Lấy token mới ở Hồ sơ → API → Tên miền xác minh.

404
not_found

Không thấy đơn (đơn không thuộc tài khoản của bạn).

Kiểm tra lại mã đơn / id.

404
unknown_action

Giá trị action không tồn tại.

Xem danh sách lệnh ở trên.

409
duplicate_code

Mã đã có đơn trên hệ thống (kèm danh sách codes).

Gửi allow_duplicate=true nếu vẫn muốn chạy.

409
out_of_stock

Kho acc clone không đủ (kèm stock còn lại).

Giảm amount hoặc chọn loại khác.

422
bad_request

Thiếu hoặc sai định dạng tham số (vd client_ref, code, codes, token).

Đọc message để biết tham số nào.

422
bad_productbad_packbad_modebad_service

Sản phẩm, gói vé hoặc chế độ không hợp lệ.

Lấy lại danh sách từ products, retail, moruong, clone_products.

422
missing_codebad_codetoo_many_codes

Mã sự kiện thiếu, sai định dạng hoặc gửi quá nhiều mã.

Mã 5–40 ký tự (chữ, số, _, ;); đặt lẻ chỉ nhận 1 mã mỗi đơn.

422
bad_qtybad_pricebad_phone

Số lượng, giá hoặc số điện thoại không hợp lệ.

Kiểm tra min/max ở retail; amount clone 1–500.

422
bad_accounts

Có dòng acc Mở Rương sai dạng tk|mk hoặc đang nằm trong đơn chưa xong (kèm lines).

Sửa các dòng trong lines rồi gửi lại; đơn chưa được tạo nên chưa bị trừ Xu.

429
rate_limited

Vượt 30 lệnh/phút mỗi key (hoặc gửi sai key quá nhiều), hoặc đặt Mở Rương quá nhanh.

Chờ theo header Retry-After rồi gửi lại.

500
server_error

Lỗi xử lý phía máy chủ — Xu chưa bị trừ.

Tra lại bằng orders / clone_orders trước khi gửi lại.

503
disabled

API đang tạm tắt.

Thử lại sau.

503
order_disabledretail_disabledmoruong_disabledclone_disabledservice_disabled

Dịch vụ tương ứng đang tắt hoặc bảo trì.

Kiểm tra bằng lệnh status.

Gọi từ trình duyệt & tên miền xác minh

Gọi từ máy chủ của bạn thì không bị ảnh hưởng gì. Nếu bạn buộc phải gọi trực tiếp từ trình duyệt (CORS), tên miền của bạn phải được xác minh trước:

  1. Thêm tên miền.Hồ sơ → API đặt đơn tự động → Tên miền xác minh (tối đa 5 tên miền) → hệ thống cấp một token dạng csv_….
  2. Chứng minh quyền sở hữu bằng một trong hai cách:• Tạo file /.well-known/chungsucliqi-verify.txt trên tên miền, nội dung chứa token.
    • Hoặc thêm bản ghi DNS TXT chungsucliqi-verify=<token> ở tên miền (hoặc ở _chungsucliqi.<tên miền>).
  3. Bấm Xác minh.Sau khi xác minh, trình duyệt từ tên miền đó được phép gọi API. Lệnh verify giúp phần mềm của bạn kiểm tra token.

Lưu ý quan trọng

  • Luôn gửi client_ref khi tạo đơn để tránh trừ Xu hai lần khi mạng lỗi.
  • Gặp lỗi mạng giữa chừng? Tra lại bằng orders (hoặc clone_orders) trước khi gửi lại.
  • Đơn thường và đặt lẻ chỉ cần mã chung sức, không gửi mật khẩu game. Riêng Mở Rương cần tk|mk để chạy — hãy đổi mật khẩu các acc sau khi đơn xong.
  • Thời gian xử lý đơn thường vài phút; xem eta_seconds ở lệnh status.
  • Tôn trọng giới hạn 30 lệnh/phút: khi tra nhiều đơn, dùng orders_status (tối đa 50 mã/lệnh) thay vì gọi từng đơn.
Cần hỗ trợ tích hợp?Gửi yêu cầu ở trang hỗ trợ, kèm mã đơn và nội dung lỗi (không gửi API key).
Mở trang hỗ trợ