Chào mừng trở lại

Đăng nhập để nạp ví và nâng cấp tự động trong 3 giây

hoặc tiếp tục với
Google Đăng nhập bằng Google
VILOCKET Developer API v1

Tài liệu kết nối API Nâng cấp

Kết nối tự động Locket Gold, Spotify Premium & YouTube Premium 24/7. Toàn bộ trả về chuẩn JSON UTF-8, tự động hoàn tiền 100% khi lỗi.

Quản lý API Key →

1. Xác thực & API Key của bạn

Truyền API Key qua Header x-api-key: <API_KEY> (khuyên dùng) hoặc tham số ?api_key=<API_KEY>. Hệ thống cũng hỗ trợ tương thích username + password.

Base URL: https://www.vilocket.shop
GET /api/upgrade/balance

Kiểm tra số dư ví hiện tại và mức chiết khấu đại lý (%).

curl -X GET "https://www.vilocket.shop/api/upgrade/balance" \
  -H "x-api-key: VLK_YOUR_API_KEY_HERE"
GET /api/upgrade/services

Lấy danh sách tất cả gói dịch vụ đang hoạt động kèm giá gốc và giá sau chiết khấu (tùy chọn lọc ?service_type=locket|spotify|youtube).

curl -X GET "https://www.vilocket.shop/api/upgrade/services?service_type=locket" \
  -H "x-api-key: VLK_YOUR_API_KEY_HERE"
GET /api/upgrade/service?id=1

Lấy thông tin chi tiết 1 gói dịch vụ theo id.

curl -X GET "https://www.vilocket.shop/api/upgrade/service?id=1" \
  -H "x-api-key: VLK_YOUR_API_KEY_HERE"
GET / POST /api/upgrade/lookup

Kiểm tra đúng tài khoản đích (trả về UID, tên hiển thị, avatar, trạng thái đã nâng cấp chưa) trước khi đặt mua.

Tham sốBắt buộcMô tả
service_typeCólocket, spotify hoặc youtube
targetCóUsername/UID Locket, Link/UID Spotify, hoặc Gmail/@Handle/Link kênh YouTube
curl -X POST "https://www.vilocket.shop/api/upgrade/lookup" \
  -H "x-api-key: VLK_YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"service_type":"locket","target":"vietpx"}'
POST / GET /api/upgrade/buy

Đặt mua và kích hoạt tự động 24/7. Lỗi từ kênh nguồn sẽ tự động hoàn tiền 100% về ví.

Tham sốBắt buộcMô tả
service_idCó*ID gói lấy từ /api/upgrade/services (hoặc thay bằng service_type + package_code)
targetCóTài khoản đích cần nâng cấp
uidTùy chọnUID 28 ký tự đã tra trước từ /lookup (nếu bỏ trống hệ thống tự tra)
couponTùy chọnMã giảm giá (nếu có)
curl -X POST "https://www.vilocket.shop/api/upgrade/buy" \
  -H "x-api-key: VLK_YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"service_id":2,"target":"vietpx"}'
GET /api/upgrade/orders  |  /api/upgrade/order?trans_id=UPG...

Xem danh sách lịch sử đơn nâng cấp (hỗ trợ limit, page, status=completed|failed) hoặc tra cứu chi tiết 1 đơn theo trans_id.

curl -X GET "https://www.vilocket.shop/api/upgrade/orders?limit=20&page=1" \
  -H "x-api-key: VLK_YOUR_API_KEY_HERE"