Tài liệu API
Tài liệu API
| API URL | https://smm.baostar.net/api/v2 |
| API Key (TOKEN) | Lấy tại đây |
| HTTP Method | POST |
| Content-Type | application/json |
| Timeout | 0 - Lưu ý: Cài timeout = 0. Sẽ ít lỗi tạo đơn tại code của bạn |
| Response | JSON |
Get services
| Parameters | Description |
|---|---|
key |
Lấy API Key tại đây |
action |
services |
Example response
[{ "service": 1, "name": "Facebook views", "type": "Default", "category": "Facebook", "rate": "2.5", "min": "200", "max": "10000", "refill": true }]
Add order
| Parameters | Description |
|---|---|
key |
Lấy API Key tại đây |
action |
add |
service |
Service ID |
link |
Link |
quantity |
Needed quantity |
Example response
{ "order": 99999 }
Order status
| Parameters | Description |
|---|---|
key |
Lấy API Key tại đây |
action |
status |
order |
Order ID |
Example response
{ "charge": "2.5", "start_count": "168", "status": "Completed", "remains": "-2" }
Multiple order status
| Parameters | Description |
|---|---|
key |
Lấy API Key tại đây |
action |
status |
orders |
Comma-separated Order IDs (max 100) |
Example response
{ "123": { "status": "Partial" }, "456": { "error": "Incorrect order ID" } }
Check balance
| Parameters | Description |
|---|---|
key |
Lấy API Key tại đây |
action |
balance |
Example response
{ "balance": "343423", "currency": "VND" }
Refill order
| Parameters | Description |
|---|---|
key |
Lấy API Key tại đây |
action |
refill |
order |
Order ID |
Example response
{ "refill": "1" }
Refill multiple
| Parameters | Description |
|---|---|
key |
Lấy API Key tại đây |
action |
refill |
orders |
Comma-separated Order IDs (max 100) |
Example response
{ "refill": "1" }
Refill status
| Parameters | Description |
|---|---|
key |
Lấy API Key tại đây |
action |
refill_status |
refill |
Refill ID |
Example response
{ "status": "Completed" }
Multiple refill status
| Parameters | Description |
|---|---|
key |
Lấy API Key tại đây |
action |
refill_status |
refills |
Comma-separated refill IDs |
Example response
[{ "refill": 1, "status": "Completed" }, { "refill": 2, "status": "Rejected" }]