VI EN

chungchi.store

API Documentation

Call endpoints with Basic Auth or X-API-Token and receive UTF-8 JSON responses.
Account Not logged in
Base URL https://mail.chungchi.store

Log in to save a callback URL.

Endpoint

1. Create order

POST /api/create_order.php

Send: Send the product title and device UDID.

Receive: Receive the order ID, charged amount, and remaining wallet balance.

Request JSON

{
    "title": "Gói Unban60",
    "udid": "00008110-001C0CAE2101801E"
}

Response JSON

{
    "success": true,
    "order_id": 1234,
    "username": "username",
    "title": "Gói Unban60",
    "udid": "00008110-001C0CAE2101801E",
    "amount": 89000,
    "wallet": 822000,
    "payment_code": "AB12CD",
    "auto_cert": {
        "ok": true,
        "ready": true,
        "filename": "00008110-001C0CAE2101801E.zip"
    }
}

cURL with Basic Auth

curl -X POST "https://mail.chungchi.store/api/create_order.php" -H "Content-Type: application/json" -H "Authorization: Basic BASIC_AUTH_SAU_KHI_TAO" -d '{"title":"Gói Unban60","udid":"00008110-001C0CAE2101801E"}'

cURL with X-API-Token

curl -X POST "https://mail.chungchi.store/api/create_order.php" -H "Content-Type: application/json" -H "X-API-Token: X_API_TOKEN_SAU_KHI_TAO" -d '{"title":"Gói Unban60","udid":"00008110-001C0CAE2101801E"}'

2. Check order status

GET /api/order_status.php?udid=...

Send: Send the UDID of the device you want to check.

Receive: See whether the order is ready. If ready, a certificate download link is returned.

Request JSON

{
    "udid": "00008110-001C0CAE2101801E"
}

Response JSON

{
    "success": true,
    "data": {
        "order_id": 1234,
        "username": "username",
        "item": "Gói Unban60 - 89.000đ",
        "udid": "00008110-001C0CAE2101801E",
        "time": "2026-06-17 10:30:00",
        "ready": true,
        "file_url": "00008110-001C0CAE2101801E.zip",
        "download_url": "https://mail.chungchi.store/tracuu/cert/00008110-001C0CAE2101801E.zip",
        "note": "",
        "payment_code": "AB12CD",
        "guarantee": "2026-08-16 10:35:00",
        "auto_status": "Hoàn thành",
        "auto_error": "",
        "auto_requested_at": "2026-06-17 10:30:00",
        "auto_finished_at": "2026-06-17 10:35:00"
    }
}

cURL with Basic Auth

curl -H "Authorization: Basic BASIC_AUTH_SAU_KHI_TAO" "https://mail.chungchi.store/api/order_status.php?udid=00008110-001C0CAE2101801E"

cURL with X-API-Token

curl -H "X-API-Token: X_API_TOKEN_SAU_KHI_TAO" "https://mail.chungchi.store/api/order_status.php?udid=00008110-001C0CAE2101801E"

3. List products

GET /api/products.php

Send: No payload required.

Receive: Receive available products, prices, and warranty information.

Response JSON

{
    "success": true,
    "username": "username",
    "affiliate": 0,
    "data": [
        {
            "id": 23,
            "title": "Gói Unban SALE",
            "price_amount": 49000,
            "receive_time": "Nhận ngay",
            "validity": "Hạn dùng 11 - 12 tháng",
            "warranty": "",
            "note": "[\"Chặn thu hồi đến 90%.\",\"Gỡ blacklist ngay lập tức.\",\"Hỗ trợ thiết bị bypass - ẩn iCloud.\",\"Phù hợp với mọi iOS (iPhone + iPad).\",\"Hỗ trợ app group, thông báo, sign in with Apple, VPN.\",\"Ký và nhân bản app không giới hạn.\"]"
        },
        {
            "id": 20,
            "title": "Gói Unban60",
            "price_amount": 89000,
            "receive_time": "Nhận ngay",
            "validity": "Hạn dùng 11 - 12 tháng",
            "warranty": "Bảo hành 60 ngày",
            "note": "[\"Chặn thu hồi đến 90%.\",\"Gỡ blacklist ngay lập tức.\",\"Hỗ trợ thiết bị bypass - ẩn iCloud.\",\"Phù hợp với mọi iOS (iPhone + iPad).\",\"Hỗ trợ app group, thông báo, sign in with Apple, VPN.\",\"Ký và nhân bản app không giới hạn.\"]"
        },
        {
            "id": 21,
            "title": "Gói Unban150",
            "price_amount": 129000,
            "receive_time": "Nhận ngay",
            "validity": "Hạn dùng 11 - 12 tháng",
            "warranty": "Bảo hành 150 ngày",
            "note": "[\"Chặn thu hồi đến 90%.\",\"Gỡ blacklist ngay lập tức.\",\"Hỗ trợ thiết bị bypass - ẩn iCloud.\",\"Phù hợp với mọi iOS (iPhone + iPad).\",\"Hỗ trợ app group, thông báo, sign in with Apple, VPN.\",\"Ký và nhân bản app không giới hạn.\"]"
        },
        {
            "id": 22,
            "title": "Gói Unban Pro",
            "price_amount": 149000,
            "receive_time": "Nhận ngay",
            "validity": "Hạn dùng 11 - 12 tháng",
            "warranty": "Bảo hành 300 ngày",
            "note": "[\"Chặn thu hồi đến 90%.\",\"Gỡ blacklist ngay lập tức.\",\"Hỗ trợ thiết bị bypass - ẩn iCloud.\",\"Phù hợp với mọi iOS (iPhone + iPad).\",\"Hỗ trợ app group, thông báo, sign in with Apple, VPN.\",\"Ký và nhân bản app không giới hạn.\"]"
        }
    ]
}

cURL with Basic Auth

curl -H "Authorization: Basic BASIC_AUTH_SAU_KHI_TAO" https://mail.chungchi.store/api/products.php

cURL with X-API-Token

curl -H "X-API-Token: X_API_TOKEN_SAU_KHI_TAO" https://mail.chungchi.store/api/products.php

4. Check wallet balance

GET /api/balance.php

Send: No payload required.

Receive: Receive the remaining wallet balance for the account.

Response JSON

{
    "success": true,
    "username": "username",
    "wallet": 911000
}

cURL with Basic Auth

curl -H "Authorization: Basic BASIC_AUTH_SAU_KHI_TAO" https://mail.chungchi.store/api/balance.php

cURL with X-API-Token

curl -H "X-API-Token: X_API_TOKEN_SAU_KHI_TAO" https://mail.chungchi.store/api/balance.php

5. Set callback URL

POST /api/callback.php

Send: Send your website webhook URL. Send an empty value to remove the callback.

Receive: Save a callback URL so the system can notify you when a certificate is ready.

Request JSON

{
    "callback_url": "https://your-domain.com/callback"
}

Response JSON

{
    "success": true,
    "callback_url": "https://your-domain.com/callback"
}

cURL with Basic Auth

curl -X POST "https://mail.chungchi.store/api/callback.php" -H "Content-Type: application/json" -H "Authorization: Basic BASIC_AUTH_SAU_KHI_TAO" -d '{"callback_url":"https://your-domain.com/callback"}'

cURL with X-API-Token

curl -X POST "https://mail.chungchi.store/api/callback.php" -H "Content-Type: application/json" -H "X-API-Token: X_API_TOKEN_SAU_KHI_TAO" -d '{"callback_url":"https://your-domain.com/callback"}'

6. View order callback data

GET /api/api-callback.php?udid=...

Send: Send the UDID of the device whose callback data you want to inspect.

Receive: Receive webhook-like data for testing before real callbacks arrive.

Request JSON

{
    "udid": "00008110-001C0CAE2101801E"
}

Response JSON

{
    "success": true,
    "event": "certificate.ready",
    "ready": true,
    "order_id": 1234,
    "username": "username",
    "udid": "00008110-001C0CAE2101801E",
    "item": "Gói Unban60 - 89.000đ",
    "file_url": "00008110-001C0CAE2101801E.zip",
    "download_url": "https://mail.chungchi.store/tracuu/cert/00008110-001C0CAE2101801E.zip",
    "status": "Hoàn thành",
    "error": "",
    "note": "",
    "guarantee": "2026-08-16 10:35:00",
    "created_at": "2026-06-17 10:30:00",
    "completed_at": "2026-06-17 10:35:00"
}

cURL with Basic Auth

curl -H "Authorization: Basic BASIC_AUTH_SAU_KHI_TAO" "https://mail.chungchi.store/api/api-callback.php?udid=00008110-001C0CAE2101801E"

cURL with X-API-Token

curl -H "X-API-Token: X_API_TOKEN_SAU_KHI_TAO" "https://mail.chungchi.store/api/api-callback.php?udid=00008110-001C0CAE2101801E"

HTTP & returned errors

200 Success

Valid request, JSON returns success = true.

{
    "success": true,
    "message": "OK"
}
400 Insufficient balance

Wallet balance is not enough to create the order.

{
    "success": false,
    "error": "Insufficient wallet balance"
}
401 Invalid API username or password

Missing token, wrong X-API-Token, or invalid Basic Auth.

{
    "success": false,
    "error": "Invalid username or password"
}
400 / 404 Missing data or not found

Missing udid/title, wrong product title, or no order found.

{
    "success": false,
    "error": "Order not found"
}
405 Wrong request method

The endpoint requires POST but was called with GET.

{
    "success": false,
    "error": "Method not allowed"
}
500 Server error

Database error or internal processing error.

{
    "success": false,
    "error": "Database query failed"
}

If Cloudflare/firewall blocks the request before it reaches the website, the response may be HTML 403/429 instead of JSON.