{
  "info": {
    "_postman_id": "dns-locketzenit-master-v4",
    "name": "LocketZenit DNS - Quản Lý, Cấp Phát & Thu Hồi Multi-VIP (Spotify, Duolingo MAX, YouTube, Combo)",
    "description": "Bộ sưu tập Postman Collection chuẩn RESTful hoàn chỉnh nhất dành cho Quản Trị Viên & Cộng Tác Viên (CTV) quản lý, cấp phát, gia hạn, thu hồi tức thì và khóa thiết bị cho Spotify VIP (Dịch lời Việt), Duolingo MAX (Gọi Lily AI), YouTube Premium (Chặn sạch QC, PiP, Nghe nền) và Combo Master All-in-One 50-in-1.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://dns.locketzenit.site",
      "type": "string"
    },
    {
      "key": "token",
      "value": "",
      "type": "string"
    },
    {
      "key": "ctvToken",
      "value": "",
      "type": "string"
    },
    {
      "key": "subId",
      "value": "",
      "type": "string"
    },
    {
      "key": "subToken",
      "value": "",
      "type": "string"
    },
    {
      "key": "ctvId",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "01. Xác Thực & Đăng Nhập (Admin & CTV Login)",
      "item": [
        {
          "name": "1. Đăng nhập Quản Trị Viên (Admin Login - Lấy JWT Token)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/auth/login",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "auth",
                "login"
              ]
            },
            "description": "Đăng nhập tài khoản quản trị viên tối cao. Script Test tự động lưu token vào biến {{token}} của Postman Collection.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"username\": \"admin\",\n  \"password\": \"vanhung\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.token) {",
                  "    pm.collectionVariables.set(\"token\", res.token);",
                  "    console.log(\"✅ Đã lưu Admin Token: \" + res.token);",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "2. Đăng nhập Cộng Tác Viên (CTV Login - Lấy JWT Token)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/auth/login",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "auth",
                "login"
              ]
            },
            "description": "Đăng nhập bằng tài khoản Cộng Tác Viên (CTV). Script Test tự động gán token vào biến {{token}} để thực thi các API dành riêng cho CTV.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"username\": \"ctv\",\n  \"password\": \"vanhung\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.token) {",
                  "    pm.collectionVariables.set(\"token\", res.token);",
                  "    pm.collectionVariables.set(\"ctvToken\", res.token);",
                  "    console.log(\"✅ Đã lưu CTV Token: \" + res.token);",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "3. Đổi Mật Khẩu Tài Khoản Đang Đăng Nhập",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/auth/change-password",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "auth",
                "change-password"
              ]
            },
            "description": "Đổi mật khẩu cho tài khoản hiện đang mang Bearer token.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"current\": \"vanhung\",\n  \"next\": \"matkhaumoi_123\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "⭐ 02. Cấp & Quản Lý Profile Spotify VIP (Auto Lyrics VI)",
      "item": [
        {
          "name": "1. Cấp Spotify VIP - Gói TRIAL (1 Ngày Dùng Thử)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp profile Spotify VIP dùng thử 1 ngày (24 giờ). Tự động lưu subId và subToken vào biến môi trường.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 15 Pro - Khách Test Spotify\",\n  \"contact\": \"0912345678 (Zalo/Tele)\",\n  \"packageId\": \"trial\",\n  \"targetApps\": [\n    \"spotify\"\n  ],\n  \"note\": \"Khách test thử nghiệm Spotify VIP + Lời dịch tiếng Việt 24h\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "2. Cấp Spotify VIP - Gói 1 Tháng (30 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Spotify VIP 1 tháng (30 ngày). Chặn 100% audio/banner ads, bật chất lượng Very High 320kbps, tự động dịch lời Việt.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 14 Pro Max - Khách Hoàng Tuấn\",\n  \"contact\": \"tuanspotify@zalo\",\n  \"packageId\": \"1month\",\n  \"targetApps\": [\n    \"spotify\"\n  ],\n  \"note\": \"Gói Spotify VIP 1 Tháng: Bỏ ép shuffle, chuyển bài vô hạn, 320kbps, lời dịch tiếng Việt\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "3. Cấp Spotify VIP - Gói 3 Tháng (90 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Spotify VIP 3 tháng (90 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 13 - Khách Mai Hương\",\n  \"contact\": \"0988776655\",\n  \"packageId\": \"3month\",\n  \"targetApps\": [\n    \"spotify\"\n  ],\n  \"note\": \"Gói Spotify VIP 3 tháng\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "4. Cấp Spotify VIP - Gói 6 Tháng (180 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Spotify VIP 6 tháng (180 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 15 - Khách Minh Quân\",\n  \"contact\": \"quan@telegram\",\n  \"packageId\": \"6month\",\n  \"targetApps\": [\n    \"spotify\"\n  ],\n  \"note\": \"Gói Spotify VIP 6 tháng\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "5. Cấp Spotify VIP - Gói 1 Năm (365 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Spotify VIP 1 năm (365 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 16 Pro - Khách Thảo Vy\",\n  \"contact\": \"vy@gmail.com\",\n  \"packageId\": \"1year\",\n  \"targetApps\": [\n    \"spotify\"\n  ],\n  \"note\": \"Gói Spotify VIP 1 năm đầy đủ bản quyền và lời dịch\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "6. Cấp Spotify VIP - Gói Vĩnh Viễn (Ultimate Lifetime)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Spotify VIP vĩnh viễn (không thời hạn, isLifetime = true).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPad Pro M4 - Khách VIP Trọn Đời\",\n  \"contact\": \"vip@domain.com\",\n  \"packageId\": \"ultimate\",\n  \"targetApps\": [\n    \"spotify\"\n  ],\n  \"note\": \"Gói Spotify VIP Vĩnh Viễn Không Thời Hạn\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "7. Cấp Spotify VIP - Tùy Chỉnh Số Ngày (Custom Days)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Spotify VIP với số ngày tùy chọn linh hoạt (ví dụ: 45 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 12 - Khách Event 45 Ngày\",\n  \"contact\": \"0909123456\",\n  \"packageId\": \"custom\",\n  \"customDays\": 45,\n  \"targetApps\": [\n    \"spotify\"\n  ],\n  \"note\": \"Gói tùy chỉnh 45 ngày\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "8. THU HỒI SPOTIFY VIP TỨC THÌ (Revoke - Ngắt kết nối ngay)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}",
                "revoke"
              ]
            },
            "description": "Thu hồi profile khách ngay lập tức: Chuyển DNS sang Pass-through IP gốc và MITM Proxy đóng kết nối TLS ngay tại SNI. Không làm rớt mạng iOS nhưng triệt tiêu 100% quyền lợi VIP.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "9. Gia Hạn DNS Spotify VIP (Renew)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}/renew",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}",
                "renew"
              ]
            },
            "description": "Gia hạn thêm thời gian sử dụng cho profile khách (cộng dồn vào ngày hết hạn hiện tại).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"packageId\": \"1month\"\n}"
            }
          }
        },
        {
          "name": "10. Tạm Khóa Kết Nối (Disable Profile)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Tạm khóa profile (ngắt tạm thời tính năng VIP, khách vẫn có internet bình thường nhờ Pass-through).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"disabled\"\n}"
            }
          }
        },
        {
          "name": "11. Mở Khóa Kết Nối (Unlock / Active Profile)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Mở khóa lại cho profile tiếp tục hưởng quyền lợi VIP.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"active\"\n}"
            }
          }
        },
        {
          "name": "12. Xem Chi Tiết DNS Spotify Của Khách",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Lấy chi tiết profile: Hạn sử dụng, UUID thiết bị đã khóa, số lượng truy vấn, IP truy cập gần nhất.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "13. Reset Khóa Thiết Bị (Cho Khách Đổi Điện Thoại Mới)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/reset-device",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "reset-device"
              ]
            },
            "description": "Gỡ bỏ liên kết UUID của điện thoại cũ. Thiết bị mới khi cài profile sẽ tự động khóa vào UUID mới.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "14. Bật / Tắt Khóa 1 Thiết Bị Duy Nhất (Toggle Device Lock)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/toggle-device-lock",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "toggle-device-lock"
              ]
            },
            "description": "Bật/Tắt cơ chế Anti-Share khóa chặt vào 1 máy duy nhất.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"locked\": true\n}"
            }
          }
        },
        {
          "name": "15. Xóa Vĩnh Viễn Khỏi Database",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Xóa hoàn toàn profile khỏi hệ thống cơ sở dữ liệu.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "16. Khách Tự Tra Cứu Hạn Dùng (Public Check API)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/check/{{subToken}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "check",
                "{{subToken}}"
              ]
            },
            "description": "Endpoint công khai không cần đăng nhập: Khách hàng tự nhập token để tra cứu ngày hết hạn, số ngày còn lại và trạng thái."
          }
        },
        {
          "name": "17. Link Tải File .mobileconfig Cho Khách",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/sub/{{subToken}}.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "sub",
                "{{subToken}}.mobileconfig"
              ]
            },
            "description": "Tải trực tiếp file cấu hình DoH Apple Configuration Profile đã ký/chưa ký gắn token khách hàng."
          }
        },
        {
          "name": "18. Link Safari Cài Đặt 1 Chạm Cho Khách (/p/{{subToken}})",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/p/{{subToken}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "p",
                "{{subToken}}"
              ]
            },
            "description": "Trang web cài đặt 1-chạm tối ưu riêng cho trình duyệt Safari iOS."
          }
        }
      ]
    },
    {
      "name": "⭐ 03. Cấp & Quản Lý Profile Duolingo MAX (Gọi Lily AI & Super VIP)",
      "item": [
        {
          "name": "1. Cấp Duolingo MAX - Gói TRIAL (1 Ngày Dùng Thử)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp profile Duolingo MAX dùng thử 24 giờ. Trải nghiệm đầy đủ tính năng Gọi Lily AI (Video Call with Lily), Trái tim vô hạn và Giải thích đáp án AI.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 15 - Khách Test Duolingo MAX\",\n  \"contact\": \"0911223344 (Zalo/Tele)\",\n  \"packageId\": \"trial\",\n  \"targetApps\": [\n    \"duolingo\"\n  ],\n  \"note\": \"Khách test tính năng Gọi Lily AI, Giải thích đáp án AI & Super Duolingo 24h\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "2. Cấp Duolingo MAX - Gói 1 Tháng (30 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Duolingo MAX 1 tháng (30 ngày). Tự động tiêm Synthetic 200 cho Video Call Lily, 2.000 kim cương, vô hạn tim và năng lượng.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 14 Pro - Khách Học Tiếng Anh\",\n  \"contact\": \"duo_hocvien@zalo\",\n  \"packageId\": \"1month\",\n  \"targetApps\": [\n    \"duolingo\"\n  ],\n  \"note\": \"Mở khóa Duolingo MAX 1 Tháng: Video Call with Lily, Giải thích đáp án AI, Nhập vai Roleplay, Vô hạn tim, 2.000 KC\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "3. Cấp Duolingo MAX - Gói 3 Tháng (90 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Duolingo MAX 3 tháng (90 ngày) kèm 6.000 kim cương và năng lượng nạp sẵn.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPad Air - Khách Luyện Thi IELTS\",\n  \"contact\": \"ielts_student@tele\",\n  \"packageId\": \"3month\",\n  \"targetApps\": [\n    \"duolingo\"\n  ],\n  \"note\": \"Duolingo MAX 3 Tháng: Đàm thoại Lily AI, Nhập vai AI, Vô hạn tim, 6.000 KC\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "4. Cấp Duolingo MAX - Gói 6 Tháng (180 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Duolingo MAX 6 tháng (180 ngày) kèm 12.000 kim cương.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 13 Pro Max - Khách Khóa Học 6 Tháng\",\n  \"contact\": \"0977889900\",\n  \"packageId\": \"6month\",\n  \"targetApps\": [\n    \"duolingo\"\n  ],\n  \"note\": \"Duolingo MAX 6 Tháng: Full tính năng AI + 12.000 KC\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "5. Cấp Duolingo MAX - Gói 1 Năm (365 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Duolingo MAX 1 năm (365 ngày) kèm 50.000 kim cương.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 16 Pro Max - Khách Đăng Ký 1 Năm\",\n  \"contact\": \"duo_year@vip.com\",\n  \"packageId\": \"1year\",\n  \"targetApps\": [\n    \"duolingo\"\n  ],\n  \"note\": \"Duolingo MAX 1 Năm (365 Ngày): Full AI Tutor, Lily Call, Vô hạn năng lượng + 50.000 KC\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "6. Cấp Duolingo MAX - Gói Vĩnh Viễn (Ultimate Lifetime)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Duolingo MAX vĩnh viễn trọn đời kèm 999.999 kim cương và vô hạn năng lượng.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPad Pro M4 - Khách VIP Duolingo Vĩnh Viễn\",\n  \"contact\": \"duolife@vip.com\",\n  \"packageId\": \"ultimate\",\n  \"targetApps\": [\n    \"duolingo\"\n  ],\n  \"note\": \"Duolingo MAX Vĩnh Viễn: Trọn đời Gọi Lily AI, Vô hạn tim/năng lượng, 999.999 KC\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "7. Cấp Duolingo MAX - Tùy Chỉnh Số Ngày (Custom Days)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Duolingo MAX với số ngày linh hoạt (ví dụ: 60 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 15 Plus - Khách Ôn Thi 60 Ngày\",\n  \"contact\": \"0933221100\",\n  \"packageId\": \"custom\",\n  \"customDays\": 60,\n  \"targetApps\": [\n    \"duolingo\"\n  ],\n  \"note\": \"Gói Duolingo MAX 60 ngày ôn thi cấp tốc\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "8. THU HỒI DUOLINGO MAX TỨC THÌ (Revoke)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}",
                "revoke"
              ]
            },
            "description": "Thu hồi profile Duolingo MAX: Ngay lập tức ngắt phân giải VIP, chuyển sang pass-through upstream IP gốc của Duolingo (CloudFront) mà không làm rớt mạng thiết bị.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "9. Gia Hạn Profile Duolingo MAX (Renew)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}/renew",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}",
                "renew"
              ]
            },
            "description": "Gia hạn thêm thời gian sử dụng gói Duolingo MAX cho khách.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"packageId\": \"1month\"\n}"
            }
          }
        },
        {
          "name": "10. Tạm Khóa Kết Nối Duolingo (Disable Profile)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Tạm khóa profile Duolingo MAX.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"disabled\"\n}"
            }
          }
        },
        {
          "name": "11. Mở Khóa Kết Nối Duolingo (Active Profile)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Mở khóa cho profile Duolingo MAX tiếp tục hoạt động.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"active\"\n}"
            }
          }
        },
        {
          "name": "12. Xem Chi Tiết Profile Duolingo Của Khách",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Xem chi tiết profile Duolingo MAX của khách hàng.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "13. Reset Khóa Thiết Bị (Cho Khách Đổi Điện Thoại Mới)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/reset-device",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "reset-device"
              ]
            },
            "description": "Reset liên kết UUID thiết bị để khách cài Duolingo MAX sang điện thoại mới.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "14. Bật / Tắt Khóa 1 Thiết Bị Duy Nhất (Toggle Device Lock)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/toggle-device-lock",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "toggle-device-lock"
              ]
            },
            "description": "Bật/Tắt chế độ khóa 1 thiết bị duy nhất cho Duolingo MAX.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"locked\": true\n}"
            }
          }
        },
        {
          "name": "15. Xóa Vĩnh Viễn Khỏi Database",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Xóa vĩnh viễn profile Duolingo MAX khỏi hệ thống.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "16. Khách Tự Tra Cứu Hạn Duolingo (Public Check API)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/check/{{subToken}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "check",
                "{{subToken}}"
              ]
            },
            "description": "Khách tự kiểm tra hạn sử dụng của gói Duolingo MAX."
          }
        },
        {
          "name": "17. Link Tải File .mobileconfig Duolingo MAX",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/sub/{{subToken}}.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "sub",
                "{{subToken}}.mobileconfig"
              ]
            },
            "description": "Tải file .mobileconfig cài đặt DNS Duolingo MAX."
          }
        },
        {
          "name": "18. Link Safari Cài Đặt 1 Chạm Duolingo MAX (/p/{{subToken}})",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/p/{{subToken}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "p",
                "{{subToken}}"
              ]
            },
            "description": "Link gửi khách mở bằng Safari để cài đặt Duolingo MAX 1-chạm."
          }
        }
      ]
    },
    {
      "name": "⭐ 04. Cấp & Quản Lý Profile YouTube Premium (Chặn 100% Ads, PiP, Nghe Nền)",
      "item": [
        {
          "name": "1. Cấp YouTube Premium - Gói TRIAL (1 Ngày Dùng Thử)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp profile YouTube Premium dùng thử 24h. Trải nghiệm chặn 100% quảng cáo video, phát nền khi tắt màn hình và PiP.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPad Mini 6 - Khách Test YouTube\",\n  \"contact\": \"0988112233\",\n  \"packageId\": \"trial\",\n  \"targetApps\": [\n    \"youtube\"\n  ],\n  \"note\": \"Khách test chặn quảng cáo video YouTube & phát nền 24h\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "2. Cấp YouTube Premium - Gói 1 Tháng (30 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS YouTube Premium 1 tháng (30 ngày). Chặn hoàn toàn quảng cáo video, không đứng hình (Onesie streaming an toàn), bật PiP và Background Play.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 15 Pro Max - Khách Xem Phim\",\n  \"contact\": \"yt_khachhang@zalo\",\n  \"packageId\": \"1month\",\n  \"targetApps\": [\n    \"youtube\"\n  ],\n  \"note\": \"YouTube Premium 1 Tháng: Chặn sạch QC đầu/giữa video, Shorts, Feed; PiP; Phát nền tắt màn hình; Không đơ media\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "3. Cấp YouTube Premium - Gói 3 Tháng (90 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS YouTube Premium 3 tháng (90 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPad Pro 11 - Khách Nghe Nhạc Youtube\",\n  \"contact\": \"0912998877\",\n  \"packageId\": \"3month\",\n  \"targetApps\": [\n    \"youtube\"\n  ],\n  \"note\": \"YouTube Premium 3 Tháng: Không quảng cáo + PiP + Background Play\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "4. Cấp YouTube Premium - Gói 6 Tháng (180 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS YouTube Premium 6 tháng (180 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Apple TV 4K / iPhone - Khách Gia Đình\",\n  \"contact\": \"yt_family@tele\",\n  \"packageId\": \"6month\",\n  \"targetApps\": [\n    \"youtube\"\n  ],\n  \"note\": \"YouTube Premium 6 Tháng gia đình\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "5. Cấp YouTube Premium - Gói 1 Năm (365 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS YouTube Premium 1 năm (365 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 16 Pro - Khách Gói Năm\",\n  \"contact\": \"yt_year@vip.com\",\n  \"packageId\": \"1year\",\n  \"targetApps\": [\n    \"youtube\"\n  ],\n  \"note\": \"YouTube Premium 1 Năm: Không quảng cáo toàn diện, phát mượt mà không gián đoạn\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "6. Cấp YouTube Premium - Gói Vĩnh Viễn (Ultimate Lifetime)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS YouTube Premium vĩnh viễn trọn đời không thời hạn.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPad Pro M4 - Khách VIP YouTube Vĩnh Viễn\",\n  \"contact\": \"yt_lifetime@vip.com\",\n  \"packageId\": \"ultimate\",\n  \"targetApps\": [\n    \"youtube\"\n  ],\n  \"note\": \"YouTube Premium Vĩnh Viễn Không Thời Hạn: PiP, Nghe nền, Chặn 100% Ads\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "7. Cấp YouTube Premium - Tùy Chỉnh Số Ngày (Custom Days)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS YouTube Premium với số ngày tùy chọn.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 14 - Khách Xem Bóng Đá 45 Ngày\",\n  \"contact\": \"0966554433\",\n  \"packageId\": \"custom\",\n  \"customDays\": 45,\n  \"targetApps\": [\n    \"youtube\"\n  ],\n  \"note\": \"Gói YouTube Premium 45 ngày xem mùa giải thể thao\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "8. THU HỒI YOUTUBE PREMIUM TỨC THÌ (Revoke)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}",
                "revoke"
              ]
            },
            "description": "Thu hồi profile YouTube Premium: Ngay lập tức pass-through DNS về máy chủ gốc của Google, ngắt chặn quảng cáo mà không làm mất internet.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "9. Gia Hạn Profile YouTube Premium (Renew)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}/renew",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}",
                "renew"
              ]
            },
            "description": "Gia hạn thêm thời gian sử dụng YouTube Premium cho khách.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"packageId\": \"1month\"\n}"
            }
          }
        },
        {
          "name": "10. Tạm Khóa Kết Nối YouTube (Disable Profile)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Tạm khóa profile YouTube Premium.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"disabled\"\n}"
            }
          }
        },
        {
          "name": "11. Mở Khóa Kết Nối YouTube (Active Profile)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Mở khóa lại cho profile YouTube Premium tiếp tục hoạt động.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"active\"\n}"
            }
          }
        },
        {
          "name": "12. Xem Chi Tiết Profile YouTube Của Khách",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Xem thông tin chi tiết profile YouTube Premium.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "13. Reset Khóa Thiết Bị (Cho Khách Đổi Điện Thoại Mới)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/reset-device",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "reset-device"
              ]
            },
            "description": "Reset khóa UUID máy cũ cho profile YouTube Premium.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "14. Bật / Tắt Khóa 1 Thiết Bị Duy Nhất (Toggle Device Lock)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/toggle-device-lock",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "toggle-device-lock"
              ]
            },
            "description": "Bật/Tắt tính năng khóa 1 thiết bị duy nhất cho profile YouTube.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"locked\": true\n}"
            }
          }
        },
        {
          "name": "15. Xóa Vĩnh Viễn Khỏi Database",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Xóa hoàn toàn profile YouTube Premium khỏi database.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "16. Khách Tự Tra Cứu Hạn YouTube (Public Check API)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/check/{{subToken}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "check",
                "{{subToken}}"
              ]
            },
            "description": "Khách tự kiểm tra hạn sử dụng của gói YouTube Premium."
          }
        },
        {
          "name": "17. Link Tải File .mobileconfig YouTube Premium",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/sub/{{subToken}}.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "sub",
                "{{subToken}}.mobileconfig"
              ]
            },
            "description": "Tải file cấu hình .mobileconfig YouTube Premium."
          }
        },
        {
          "name": "18. Link Safari Cài Đặt 1 Chạm YouTube (/p/{{subToken}})",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/p/{{subToken}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "p",
                "{{subToken}}"
              ]
            },
            "description": "Link gửi khách mở bằng Safari để cài đặt YouTube Premium 1-chạm."
          }
        }
      ]
    },
    {
      "name": "⭐ 05. Cấp & Quản Lý Profile Combo Master All-in-One (50-in-1 Toàn Diện)",
      "item": [
        {
          "name": "1. Cấp Combo Master - Gói TRIAL (1 Ngày Dùng Thử)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp profile dùng thử toàn bộ các ứng dụng VIP: Spotify, Duolingo MAX, YouTube Premium, Netflix, Bilibili, Locket Gold...",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 15 Pro Max - Khách Test Combo Master\",\n  \"contact\": \"0999888777 (Tele/Zalo)\",\n  \"packageId\": \"trial\",\n  \"targetApps\": [\n    \"all\"\n  ],\n  \"note\": \"Khách test toàn bộ 50+ ứng dụng VIP trong 24h\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "2. Cấp Combo Master - Gói 1 Tháng (30 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp cấu hình Combo Master 1 tháng mở khóa đồng thời toàn bộ hệ thống dịch vụ.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 15 Pro - Khách All-in-One VIP\",\n  \"contact\": \"combo_khach@zalo\",\n  \"packageId\": \"1month\",\n  \"targetApps\": [\n    \"all\"\n  ],\n  \"note\": \"Cấp gói Combo All-in-One: Spotify VIP, Duolingo MAX (Gọi Lily), YouTube Premium, Netflix Song Ngữ, Locket Gold...\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "3. Cấp Combo Master - Gói 3 Tháng (90 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Combo Master VIP 3 tháng (90 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 14 Pro Max - Khách Combo 3 Tháng\",\n  \"contact\": \"0912883344\",\n  \"packageId\": \"3month\",\n  \"targetApps\": [\n    \"all\"\n  ],\n  \"note\": \"Combo Master VIP 3 Tháng: 50+ Apps mở khóa toàn bộ\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "4. Cấp Combo Master - Gói 6 Tháng (180 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Combo Master VIP 6 tháng (180 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 16 Pro - Khách Combo 6 Tháng\",\n  \"contact\": \"combo6m@tele\",\n  \"packageId\": \"6month\",\n  \"targetApps\": [\n    \"all\"\n  ],\n  \"note\": \"Combo Master VIP 6 Tháng\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "5. Cấp Combo Master - Gói 1 Năm (365 Ngày)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Combo Master VIP 1 năm (365 ngày).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 16 Pro Max - Khách VIP 1 Năm\",\n  \"contact\": \"vip_combo@domain.com\",\n  \"packageId\": \"1year\",\n  \"targetApps\": [\n    \"all\"\n  ],\n  \"note\": \"Combo Master VIP 1 Năm (365 Ngày)\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "6. Cấp Combo Master - Gói Vĩnh Viễn (Ultimate Lifetime)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Combo Master VIP trọn đời vĩnh viễn.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPad Pro M4 & iPhone - Khách Trọn Đời\",\n  \"contact\": \"forever@domain.com\",\n  \"packageId\": \"ultimate\",\n  \"targetApps\": [\n    \"all\"\n  ],\n  \"note\": \"Combo Master VIP Vĩnh Viễn Không Thời Hạn (Trọn đời)\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "7. Cấp Combo Master - Tùy Chỉnh Số Ngày (Custom Days)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ]
            },
            "description": "Cấp DNS Combo Master với số ngày tự chọn linh hoạt.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"iPhone 13 - Khách Dự Án 90 Ngày\",\n  \"contact\": \"0908889999\",\n  \"packageId\": \"custom\",\n  \"customDays\": 90,\n  \"targetApps\": [\n    \"all\"\n  ],\n  \"note\": \"Combo Master VIP 90 ngày tùy chỉnh\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "8. Lấy Danh Sách Toàn Bộ Khách Hàng (Tất Cả Gói / Bộ Lọc)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions?ctv=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions"
              ],
              "query": [
                {
                  "key": "ctv",
                  "value": "",
                  "description": "Lọc theo username của CTV (để trống để lấy tất cả)"
                }
              ]
            },
            "description": "Quản trị viên lấy danh sách toàn bộ profile khách hàng trong hệ thống (có thể lọc theo CTV).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "9. THU HỒI COMBO MASTER TỨC THÌ (Revoke)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}",
                "revoke"
              ]
            },
            "description": "Thu hồi profile Combo: Ngắt toàn bộ phân giải VIP và cắt kết nối TLS ngay lập tức mà không làm mất mạng.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "10. Gia Hạn Profile Combo Master (Renew)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}/renew",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}",
                "renew"
              ]
            },
            "description": "Gia hạn profile Combo Master.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"packageId\": \"1month\"\n}"
            }
          }
        },
        {
          "name": "11. Tạm Khóa Kết Nối Combo (Disable Profile)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Tạm khóa profile Combo.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"disabled\"\n}"
            }
          }
        },
        {
          "name": "12. Mở Khóa Kết Nối Combo (Active Profile)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Mở khóa lại cho profile Combo.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"active\"\n}"
            }
          }
        },
        {
          "name": "13. Xem Chi Tiết Profile Combo Của Khách",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Xem chi tiết profile Combo Master.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "14. Reset Khóa Thiết Bị Đổi Máy (Cho Khách Đổi Điện Thoại Mới)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/reset-device",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "reset-device"
              ]
            },
            "description": "Reset khóa UUID máy cũ cho profile Combo Master.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "15. Bật / Tắt Khóa 1 Thiết Bị Duy Nhất (Toggle Device Lock)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/toggle-device-lock",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "toggle-device-lock"
              ]
            },
            "description": "Bật/Tắt tính năng khóa 1 thiết bị duy nhất cho profile Combo.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"locked\": true\n}"
            }
          }
        },
        {
          "name": "16. Xóa Vĩnh Viễn Khỏi Database",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "Xóa vĩnh viễn profile Combo khỏi hệ thống.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "17. Khách Tự Tra Cứu Hạn Dùng (Public Check API)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/subscriptions/check/{{subToken}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "subscriptions",
                "check",
                "{{subToken}}"
              ]
            },
            "description": "Khách tự kiểm tra hạn sử dụng gói Combo Master."
          }
        },
        {
          "name": "18. Link Tải File .mobileconfig Combo Master",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/sub/{{subToken}}.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "sub",
                "{{subToken}}.mobileconfig"
              ]
            },
            "description": "Tải file .mobileconfig cài đặt DNS Combo Master."
          }
        },
        {
          "name": "19. Link Safari Cài Đặt 1 Chạm Combo Master (/p/{{subToken}})",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/p/{{subToken}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "p",
                "{{subToken}}"
              ]
            },
            "description": "Link gửi khách mở bằng Safari để cài đặt Combo Master 1-chạm."
          }
        }
      ]
    },
    {
      "name": "⭐ 06. API Cấp Phát & Quản Lý Dành Cho CTV (Tự Trừ Lượt / Trừ Số Dư)",
      "item": [
        {
          "name": "1. Xem Thông Tin CTV Hiện Tại (Số Dư, Lượt, Mã Nạp, Quyền)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "me"
              ]
            },
            "description": "Lấy thông tin tài khoản CTV: Số dư VNĐ, số lượt tồn kho (Spotify, Duolingo, YouTube, All), cú pháp nạp AutoBank MB Bank, trạng thái Full Quyền.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "2. Bảng Giá Lượt & Gói Dịch Vụ Công Khai",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/pricing",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "pricing"
              ]
            },
            "description": "Bảng giá lượt chuẩn: Spotify (10.000đ), Duolingo (6.000đ), YouTube (5.000đ), All-in-One (20.000đ)."
          }
        },
        {
          "name": "3. Ước Tính Chi Phí Cấp Profile (Cost Estimate)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/cost-estimate?app=duolingo&packageId=1month",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "cost-estimate"
              ],
              "query": [
                {
                  "key": "app",
                  "value": "duolingo",
                  "description": "Ứng dụng: spotify | duolingo | youtube | all"
                },
                {
                  "key": "packageId",
                  "value": "1month",
                  "description": "Gói cước: trial | 1month | 3month | 6month | 1year | ultimate"
                }
              ]
            },
            "description": "Tính toán trước số lượt hoặc số tiền VNĐ cần thanh toán khi cấp hoặc gia hạn profile.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "4. CTV Cấp Profile Spotify VIP (Trừ Lượt / Số Dư Tự Động)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions"
              ]
            },
            "description": "Cộng Tác Viên tạo profile Spotify VIP cho khách hàng. Hệ thống tự động kiểm tra và trừ 1 lượt Spotify (hoặc trừ số dư VNĐ nếu hết lượt).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Khách CTV - Spotify VIP 1 Tháng\",\n  \"contact\": \"0912345678 (Zalo)\",\n  \"packageId\": \"1month\",\n  \"app\": \"spotify\",\n  \"note\": \"Cấp qua cổng CTV - Tự trừ 1 lượt Spotify (10.000đ) hoặc trừ tiền ví\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "5. CTV Cấp Profile Duolingo MAX (Trừ Lượt / Số Dư Tự Động)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions"
              ]
            },
            "description": "Cộng Tác Viên tạo profile Duolingo MAX cho khách hàng. Tự trừ 1 lượt Duolingo (6.000đ).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Khách CTV - Duolingo MAX 1 Tháng\",\n  \"contact\": \"0987654321 (Zalo)\",\n  \"packageId\": \"1month\",\n  \"app\": \"duolingo\",\n  \"note\": \"Cấp qua cổng CTV - Tự trừ 1 lượt Duolingo (6.000đ) hoặc trừ tiền ví\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "6. CTV Cấp Profile YouTube Premium (Trừ Lượt / Số Dư Tự Động)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions"
              ]
            },
            "description": "Cộng Tác Viên tạo profile YouTube Premium cho khách hàng. Tự trừ 1 lượt YouTube (5.000đ).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Khách CTV - YouTube Premium 1 Tháng\",\n  \"contact\": \"0933445566 (Tele)\",\n  \"packageId\": \"1month\",\n  \"app\": \"youtube\",\n  \"note\": \"Cấp qua cổng CTV - Tự trừ 1 lượt YouTube (5.000đ) hoặc trừ tiền ví\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "7. CTV Cấp Profile Combo Master All-in-One (Trừ Lượt / Số Dư Tự Động)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions"
              ]
            },
            "description": "Cộng Tác Viên tạo profile Combo Master All-in-One 50-in-1 cho khách hàng. Tự trừ 1 lượt All (20.000đ).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Khách CTV - Combo Master 1 Tháng\",\n  \"contact\": \"0977112233 (Zalo)\",\n  \"packageId\": \"1month\",\n  \"app\": \"all\",\n  \"note\": \"Cấp qua cổng CTV - Tự trừ 1 lượt All-in-One (20.000đ) hoặc trừ tiền ví\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "if (res.id) {",
                  "    pm.collectionVariables.set(\"subId\", res.id);",
                  "    pm.collectionVariables.set(\"subToken\", res.token);",
                  "    console.log(\"✅ Cấp Profile thành công! ID: \" + res.id + \" | Token: \" + res.token);",
                  "    console.log(\"🔗 Link Safari 1-Chạm: \" + (res.links ? res.links.safariQuickInstall : \"\"));",
                  "    console.log(\"📡 DoH URL: \" + (res.links ? res.links.dohUrl : \"\"));",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "8. Lấy Danh Sách Profile Do Chính CTV Này Tạo",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions"
              ]
            },
            "description": "Chỉ lấy danh sách các profile do chính tài khoản CTV này tạo, phân lập bảo mật 100% không bị gộp chung với CTV khác.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "9. CTV Gia Hạn Profile Khách (Renew)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/renew",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "renew"
              ]
            },
            "description": "CTV gia hạn profile cho khách của mình (hệ thống tự động trừ lượt hoặc trừ số dư VNĐ tương ứng).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"packageId\": \"1month\"\n}"
            }
          }
        },
        {
          "name": "10. CTV Thu Hồi Profile Khách Tức Thì (Revoke)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "revoke"
              ]
            },
            "description": "CTV thu hồi quyền lợi VIP của khách ngay lập tức (khi khách hủy mua hoặc hết tiền).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "11. CTV Reset Thiết Bị Cũ Cho Khách Đổi Máy Mới (Reset Device)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/reset-device",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "reset-device"
              ]
            },
            "description": "CTV gỡ khóa UUID thiết bị cũ để khách hàng có thể cài profile sang máy iPhone/iPad mới.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "12. CTV Bật / Tắt Khóa 1 Thiết Bị Duy Nhất (Toggle Device Lock)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}/toggle-device-lock",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}",
                "toggle-device-lock"
              ]
            },
            "description": "CTV bật hoặc tắt tính năng khóa 1 thiết bị duy nhất cho khách hàng.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"locked\": true\n}"
            }
          }
        },
        {
          "name": "13. CTV Xóa Profile Khách Khỏi Danh Sách",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/subscriptions/{{subId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "subscriptions",
                "{{subId}}"
              ]
            },
            "description": "CTV xóa profile của khách đã tạo.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "14. CTV Mua Thêm Lượt Dịch Vụ Bằng Số Dư VNĐ",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/buy-turns",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "buy-turns"
              ]
            },
            "description": "CTV dùng số dư ví tiền nạp để mua số lượng lớn lượt dịch vụ (Spotify, Duolingo, YouTube, All).",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"turnType\": \"spotify\",\n  \"quantity\": 5\n}"
            }
          }
        },
        {
          "name": "15. Lấy Thông Tin & Mã QR VietQR MB Bank Nạp Tiền Tự Động",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/topup/info?amount=50000",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "topup",
                "info"
              ],
              "query": [
                {
                  "key": "amount",
                  "value": "50000",
                  "description": "Số tiền nạp (tối thiểu 15.000đ)"
                }
              ]
            },
            "description": "Lấy thông tin tài khoản MB Bank (8848222333), cú pháp chuyển khoản và link mã VietQR để nạp tiền tự động.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "16. Quét & Kiểm Tra Giao Dịch Chuyển Khoản MB Bank Tức Thì",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/topup/check",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "topup",
                "check"
              ]
            },
            "description": "Quét lịch sử MB Bank và tự động cộng tiền ngay lập tức nếu tiền đã về tài khoản.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "17. Lịch Sử Giao Dịch Nạp Tiền, Mua Lượt & Cấp Profile Của CTV",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/history?limit=50",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "history"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "Số lượng giao dịch tối đa"
                }
              ]
            },
            "description": "Lịch sử biến động số dư và lượt của CTV.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "07. Profile VIP Mặc Định (Tải Trực Tiếp Dùng Chung)",
      "item": [
        {
          "name": "1. Tải Profile Spotify Premium VIP (Kèm Dịch Lời Việt)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/spotify.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "spotify.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "2. Tải Profile YouTube Premium VIP",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/youtube.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "youtube.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "3. Tải Profile Netflix Song Ngữ & Rating",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/netflix.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "netflix.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "4. Tải Profile Bilibili Chặn QC & 4K",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/bilibili.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "bilibili.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "5. Tải Profile Locket Gold VIP (Khung & Video 30s)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/locket.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "locket.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "6. Tải Profile Super Duolingo & Duolingo MAX VIP",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/duolingo.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "duolingo.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "7. Tải Profile Wink VIP Pro",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/wink.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "wink.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "8. Tải Profile Hypic VIP Pro (醒图 Global)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/hypic.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "hypic.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "9. Tải Profile 50 In 1 VIP Apps",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/50in1.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "50in1.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "10. Tải Profile All In One Master VIP",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/all.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "all.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "11. Tải Profile Chỉ Cài Root CA (Bật Tin Cậy)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/ca.mobileconfig",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "ca.mobileconfig"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "12. Tải Chứng Chỉ CA dạng .cer",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/profiles/ca.cer",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "profiles",
                "ca.cer"
              ]
            },
            "description": ""
          }
        }
      ]
    },
    {
      "name": "08. Quản Lý Admin & Hệ Thống (Thống Kê, CTV, SePay Webhook)",
      "item": [
        {
          "name": "1. Thống Kê Tổng Hợp Toàn Hệ Thống Cho Dashboard Admin",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/admin-stats",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "admin-stats"
              ]
            },
            "description": "Thống kê tổng quan: Doanh thu nạp SePay, số dư ví CTV, tổng profile đang active/hết hạn, tồn kho lượt toàn hệ thống.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "2. Biểu Đồ Doanh Thu & Kích Hoạt 14 Ngày",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/chart-stats?days=14",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "chart-stats"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "14",
                  "description": "Số ngày thống kê (7 đến 60)"
                }
              ]
            },
            "description": "Dữ liệu vẽ đồ thị biến động nạp tiền và kích hoạt theo ngày.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "3. Lấy Danh Sách Toàn Bộ Tài Khoản CTV",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/users",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "users"
              ]
            },
            "description": "Danh sách CTV kèm số lượng profile đã tạo và đang active của từng người.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "4. Tạo Tài Khoản CTV Mới (Admin Only)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/users",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "users"
              ]
            },
            "description": "Admin tạo tài khoản CTV mới, tùy chọn cấp Full Quyền hoặc giới hạn số lượng profile.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"username\": \"ctv_moitao\",\n  \"password\": \"changeme123\",\n  \"name\": \"Nguyễn Văn A (CTV)\",\n  \"contact\": \"0912345678 (Tele: @ctva)\",\n  \"fullAccess\": true,\n  \"maxProfiles\": 0,\n  \"note\": \"CTV khu vực Hà Nội\"\n}"
            }
          }
        },
        {
          "name": "5. Chỉnh Sửa CTV (Cấp Full Quyền, Đổi Mật Khẩu, Khóa/Mở)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/users/{{ctvId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "users",
                "{{ctvId}}"
              ]
            },
            "description": "Chỉnh sửa thông tin, quyền hạn hoặc reset mật khẩu cho CTV.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Nguyễn Văn A (VIP)\",\n  \"fullAccess\": true,\n  \"status\": \"active\",\n  \"newPassword\": \"matkhaumoi_ctv\"\n}"
            }
          }
        },
        {
          "name": "6. Điều Chỉnh Số Dư / Lượt Cho CTV (Admin Only)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/users/{{ctvId}}/adjust",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "users",
                "{{ctvId}}",
                "adjust"
              ]
            },
            "description": "Admin cộng hoặc trừ tiền số dư và lượt cho CTV.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"addBalance\": 100000,\n  \"addTurnsSpotify\": 10,\n  \"addTurnsDuolingo\": 10,\n  \"addTurnsYoutube\": 10,\n  \"addTurnsAll\": 5,\n  \"note\": \"Admin tặng quà thưởng doanh số tháng\"\n}"
            }
          }
        },
        {
          "name": "7. Cập Nhật Bảng Giá Bán Lượt CTV (Admin Only)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/pricing",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "pricing"
              ]
            },
            "description": "Admin cập nhật giá bán lượt CTV cho từng dịch vụ.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"pricing\": {\n    \"spotify\": {\n      \"turnPrice\": 10000,\n      \"name\": \"Spotify VIP (Dịch Lời Việt)\",\n      \"enabled\": true\n    },\n    \"duolingo\": {\n      \"turnPrice\": 6000,\n      \"name\": \"Duolingo MAX (Gọi Lily AI)\",\n      \"enabled\": true\n    },\n    \"youtube\": {\n      \"turnPrice\": 5000,\n      \"name\": \"YouTube Premium\",\n      \"enabled\": true\n    },\n    \"all\": {\n      \"turnPrice\": 20000,\n      \"name\": \"All-in-One Master VIP\",\n      \"enabled\": true\n    }\n  }\n}"
            }
          }
        },
        {
          "name": "8. Lấy Cấu Hình AutoBank SePay (Admin Only)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/sepay-config",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "sepay-config"
              ]
            },
            "description": "Lấy thông tin tài khoản ngân hàng và Webhook URL SePay.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "9. Lưu Cấu Hình AutoBank SePay (Admin Only)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/sepay-config",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "sepay-config"
              ]
            },
            "description": "Lưu thông tin ngân hàng và API Key SePay.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"apiKey\": \"nvhz\",\n  \"accountNumber\": \"8848222333\",\n  \"bankName\": \"MB Bank\",\n  \"bankCode\": \"MB\",\n  \"accountName\": \"NGO VAN HUNG\",\n  \"minAmount\": 15000,\n  \"adminTelegramContact\": \"nvhzxz\"\n}"
            }
          }
        },
        {
          "name": "10. Giả Lập Nạp Tiền Thử Nghiệm SePay (Admin Only)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/sepay-test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "sepay-test"
              ]
            },
            "description": "Admin giả lập một giao dịch nạp tiền thành công để kiểm thử luồng cộng tiền tự động.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"username\": \"ctv_demo\",\n  \"amount\": 50000,\n  \"content\": \"VH CTV_DEMO NAP TEST\"\n}"
            }
          }
        },
        {
          "name": "11. SePay Webhook (Nhận Webhook Tự Động Từ SePay.vn)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/ctv/sepay-webhook",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "ctv",
                "sepay-webhook"
              ]
            },
            "description": "Webhook nhận tín hiệu tự động từ hệ thống SePay.vn khi có giao dịch tiền vào MB Bank.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": 12345678,\n  \"gateway\": \"MBBank\",\n  \"transactionDate\": \"2026-11-23 00:00:00\",\n  \"accountNumber\": \"8848222333\",\n  \"transferType\": \"in\",\n  \"transferAmount\": 50000,\n  \"content\": \"VH CTV_DEMO chuyen khoan\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "09. Live Logs & Giám Sát Real-Time",
      "item": [
        {
          "name": "1. Xem Nhật Ký Hoạt Động (JSON Logs)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/logs?type=ALL&limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "logs"
              ],
              "query": [
                {
                  "key": "type",
                  "value": "ALL",
                  "description": "ALL | PROXY | DNS | AUTH | TOPUP | REVOKE | ERROR"
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Số lượng log trả về"
                }
              ]
            },
            "description": "Xem nhật ký sự kiện real-time của hệ thống.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "2. Xóa Bộ Nhớ Cache Logs",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/logs/clear",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "logs",
                "clear"
              ]
            },
            "description": "Xóa toàn bộ log trong bộ nhớ RAM.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "3. Thống Kê Tổng Quan Hệ Thống",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/stats",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "stats"
              ]
            },
            "description": "Lấy số liệu truy vấn DNS, MITM Proxy hits và trạng thái tài nguyên.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "10. Locket Studio (Đổi Khung & Caption VIP)",
      "item": [
        {
          "name": "1. Đổi Khung & Caption Cho User",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/locket/profile",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "locket",
                "profile"
              ]
            },
            "description": "Tùy biến khung ảnh photobooth và caption cho tài khoản Locket.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"username\": \"nvhzxz\",\n  \"frame\": \"gold_vip\",\n  \"caption\": \"✨ Locket Gold VIP 2026\"\n}"
            }
          }
        },
        {
          "name": "2. Đổi Khung Nhanh Qua GET (iOS Shortcut)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/locket/set?user=nvhzxz&frame=gold_vip",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "locket",
                "set"
              ],
              "query": [
                {
                  "key": "user",
                  "value": "nvhzxz",
                  "description": "Username Locket"
                },
                {
                  "key": "frame",
                  "value": "gold_vip",
                  "description": "Mã khung ảnh"
                }
              ]
            },
            "description": "Tích hợp phím tắt iOS Shortcut 1 chạm đổi khung ảnh.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "3. Lấy Danh Sách Khung Photobooth Có Sẵn",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/locket/frames",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "locket",
                "frames"
              ]
            },
            "description": "Lấy danh mục các khung ảnh độc quyền.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            }
          }
        }
      ]
    }
  ]
}