Tài liệu API

Tài liệu API

API URLhttps://smm.baostar.net/api/v2
API Key (TOKEN)Lấy tại đây
HTTP MethodPOST
Content-Typeapplication/json
Timeout0 - Lưu ý: Cài timeout = 0. Sẽ ít lỗi tạo đơn tại code của bạn
ResponseJSON
Get services
ParametersDescription
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
ParametersDescription
key Lấy API Key tại đây
action add
service Service ID
link Link
quantity Needed quantity
Example response
{ "order": 99999 }
Order status
ParametersDescription
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
ParametersDescription
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
ParametersDescription
key Lấy API Key tại đây
action balance
Example response
{ "balance": "343423", "currency": "VND" }
Refill order
ParametersDescription
key Lấy API Key tại đây
action refill
order Order ID
Example response
{ "refill": "1" }
Refill multiple
ParametersDescription
key Lấy API Key tại đây
action refill
orders Comma-separated Order IDs (max 100)
Example response
{ "refill": "1" }
Refill status
ParametersDescription
key Lấy API Key tại đây
action refill_status
refill Refill ID
Example response
{ "status": "Completed" }
Multiple refill status
ParametersDescription
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" }]
© smm.baostar.net.
Design & Develop by smm.baostar.net