SMM API
Tài liệu tích hợp nguồn SMM
Bản tài liệu rút gọn cho đội kỹ thuật và vận hành, bám theo spec nguồn Submeta Vip đang dùng trong hệ thống.
Base URL
trungtammmo.vn
API_DOMAIN / NEXT_PUBLIC_BASE_URL
Method
POST
application/x-www-form-urlencoded
Response
JSON
Dữ liệu raw từ provider
Limit
100 orders
Multiple status mỗi lần gọi
Endpoint
Services
Lấy danh sách dịch vụ đang mở từ provider.
| Parameters | Description |
|---|---|
| key | API Key |
| action | "services" |
Example response
[
{
"service": 1,
"name": "Facebook views",
"type": "Default",
"category": "Facebook",
"rate": "2,5",
"min": "200",
"max": "10000",
"refill": true
},
{
"service": 2,
"name": "Tiktok views",
"type": "Default",
"category": "Tiktok",
"rate": "4",
"min": "10",
"max": "1500",
"refill": false
}
]Endpoint
Add order
Tạo đơn mới trên nguồn SMM.
| Parameters | Description |
|---|---|
| key | API Key |
| action | "add" |
| service | Service ID |
| link | Link |
| quantity | Needed quantity |
Example response
{
"order": 99999
}Endpoint
Order status
Kiểm tra trạng thái 1 đơn.
| Parameters | Description |
|---|---|
| key | API Key |
| action | "status" |
| order | Order ID |
Example response
{
"charge": "2.5",
"start_count": "168",
"status": "Completed",
"remains": "-2"
}Status: Pending, Processing, In progress, Completed, Partial, Canceled
Endpoint
Multiple orders status
Kiểm tra nhiều đơn cùng lúc.
| Parameters | Description |
|---|---|
| key | API Key |
| action | "status" |
| orders | Order IDs separated by comma (E.g: 123,456,789) (Limit 100) |
Example response
{
"123": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157"
},
"456": {
"error": "Incorrect order ID"
},
"789": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10"
}
}Endpoint
Balance
Lấy số dư còn lại trên nguồn API.
| Parameters | Description |
|---|---|
| key | API Key |
| action | "balance" |
Example response
{
"balance": "343423",
"currency": "VND"
}