API
Tích hợp dịch vụ Smmvn.io.vn trực tiếp vào ứng dụng của bạn thông qua REST API.
Tài liệu API
| HTTP Method | POST |
| API URL | https://smmvn.io.vn/api/v2 |
| API Key | Get an API key on the Account page |
| Định dạng phản hồi | JSON |
Danh sách dịch vụ
| Tham số | Mô tả |
|---|---|
| key | Khóa API của bạn |
| action | services |
Phản hồi mẫu
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "First Category",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "Second Category",
"rate": "8",
"min": "10",
"max": "1500",
"refill": false,
"cancel": true
}
]
Thêm đơn hàng
Loại đơn:
Phản hồi mẫu
{
"order": 23501
}
Trạng thái đơn hàng
| Tham số | Mô tả |
|---|---|
| key | Khóa API của bạn |
| action | status |
| order | Order ID |
Phản hồi mẫu
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
Trạng thái nhiều đơn
| Tham số | Mô tả |
|---|---|
| key | Khóa API của bạn |
| action | status |
| orders | Order IDs (separated by a comma, up to 100 IDs) |
Phản hồi mẫu
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
},
"100": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10",
"currency": "USD"
}
}
Tạo refill
| Tham số | Mô tả |
|---|---|
| key | Khóa API của bạn |
| action | refill |
| order | Order ID |
Phản hồi mẫu
{
"refill": "1"
}
Tạo nhiều refill
| Tham số | Mô tả |
|---|---|
| key | Khóa API của bạn |
| action | refill |
| orders | Order IDs (separated by a comma, up to 100 IDs) |
Phản hồi mẫu
[
{
"order": 1,
"refill": 1
},
{
"order": 2,
"refill": 2
},
{
"order": 3,
"refill": {
"error": "Incorrect order ID"
}
}
]
Trạng thái refill
| Tham số | Mô tả |
|---|---|
| key | Khóa API của bạn |
| action | refill_status |
| refill | Refill ID |
Phản hồi mẫu
{
"status": "Completed"
}
Trạng thái nhiều refill
| Tham số | Mô tả |
|---|---|
| key | Khóa API của bạn |
| action | refill_status |
| refills | Refill IDs (separated by a comma, up to 100 IDs) |
Phản hồi mẫu
[
{
"refill": 1,
"status": "Completed"
},
{
"refill": 2,
"status": "Rejected"
},
{
"refill": 3,
"status": {
"error": "Refill not found"
}
}
]
Tạo hủy đơn
| Tham số | Mô tả |
|---|---|
| key | Khóa API của bạn |
| action | cancel |
| orders | Order IDs (separated by a comma, up to 100 IDs) |
Phản hồi mẫu
[
{
"order": 9,
"cancel": {
"error": "Incorrect order ID"
}
},
{
"order": 2,
"cancel": 1
}
]
Số dư người dùng
| Tham số | Mô tả |
|---|---|
| key | Khóa API của bạn |
| action | balance |
Phản hồi mẫu
{
"balance": "100.84292",
"currency": "USD"
}