{
  "info": {
    "name": "Like360 API",
    "description": "Reseller API cho Like360 (chuẩn SMM /api/v2). Đặt biến `api_key` ở tab Variables rồi gửi các request. Tài liệu: https://like360.net/api",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "base_url", "value": "https://api.like360.net/api/v2" },
    { "key": "api_key", "value": "YOUR_API_KEY" }
  ],
  "item": [
    {
      "name": "Danh sách dịch vụ (services)",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            { "key": "key", "value": "{{api_key}}" },
            { "key": "action", "value": "services" }
          ]
        },
        "url": { "raw": "{{base_url}}", "host": ["{{base_url}}"] },
        "description": "Trả về tất cả dịch vụ đang bán, kèm đơn giá (rate, theo đơn vị) và min/max."
      }
    },
    {
      "name": "Số dư (balance)",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            { "key": "key", "value": "{{api_key}}" },
            { "key": "action", "value": "balance" }
          ]
        },
        "url": { "raw": "{{base_url}}", "host": ["{{base_url}}"] },
        "description": "Số dư hiện tại của tài khoản."
      }
    },
    {
      "name": "Tạo đơn (add)",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            { "key": "key", "value": "{{api_key}}" },
            { "key": "action", "value": "add" },
            { "key": "service", "value": "SERVICE_ID" },
            { "key": "link", "value": "https://www.tiktok.com/@user/video/123" },
            { "key": "quantity", "value": "1000" },
            { "key": "idempotency_key", "value": "", "disabled": true }
          ]
        },
        "url": { "raw": "{{base_url}}", "host": ["{{base_url}}"] },
        "description": "Tạo đơn và tự động xử lý. Thay SERVICE_ID bằng id lấy từ action services. `idempotency_key` là tuỳ chọn (bật để chống tạo đơn trùng khi gửi lại)."
      }
    },
    {
      "name": "Trạng thái đơn (status)",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            { "key": "key", "value": "{{api_key}}" },
            { "key": "action", "value": "status" },
            { "key": "order", "value": "LK-AB12CD" }
          ]
        },
        "url": { "raw": "{{base_url}}", "host": ["{{base_url}}"] },
        "description": "Tra cứu một đơn qua `order`. Tra nhiều đơn cùng lúc: thay `order` bằng `orders` với các id cách nhau bằng dấu phẩy."
      }
    }
  ]
}
