Mua Social (API)
Mua social combo bằng API (variant_id + qty).
variant_id
buy
stock
Document API
Hướng dẫn tích hợp mua Email / lấy OTP / mua Social.
1. Tổng quan
Mua social combo dựa theo variant_id (ID gói social) và qty.
Tham chiếu: Dashboard của bạn đang gọi
/social/_api/buy_social.php.2. Endpoint mua Social
POST
/social/_api/buy_social.phpPOST https://minisoftwares.net/social/_api/buy_social.php
Header: X-API-KEY: YOUR_API_KEY
Body (form-data hoặc JSON tùy server):
{
"variant_id": 101,
"qty": 1
}3. Tham số
| Tên | Kiểu | Mô tả |
|---|---|---|
variant_id required | int | ID gói social (variant). |
qty required | int | Số lượng mua. |
4. Response
Thành công
{
"ok": true,
"message": "Mua thành công",
"new_balance": 888000,
"remain_stock": 25
}Thất bại
{
"ok": false,
"message": "Hết hàng",
"remain_stock": 0
}Copyright © 2026 Minisoftwares.Net. Design with
by Nguyen Van Sinh All rights reserved.