Tài liệu API
Kết nối API
Gửi yêu cầu tới endpoint bên dưới bằng API key của tài khoản.
POST
https://tanglikegiare.net/api/v2Danh sách dịch vụ
action: servicesTham số
| Tên | Mô tả |
|---|---|
key | YOUR_API_KEY |
action | services |
Request JSON
{
"key": "YOUR_API_KEY",
"action": "services"
}
cURL
curl --request POST 'https://tanglikegiare.net/api/v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "YOUR_API_KEY",
"action": "services"
}'
Response mẫu
[
{
"service": 1,
"name": "Facebook views",
"type": "Default",
"category": "Facebook",
"rate": "2.5",
"min": "200",
"max": "10000",
"refill": true
}
]
Các ID và số liệu trong ví dụ chỉ dùng để minh họa.
Tạo đơn hàng
action: addTham số
| Tên | Mô tả |
|---|---|
key | YOUR_API_KEY |
action | add |
service | ID dịch vụ |
link | Link |
quantity | Số lượng cần mua |
Request JSON
{
"key": "YOUR_API_KEY",
"action": "add",
"service": 1,
"link": "https://www.facebook.com/your-post",
"quantity": 100
}
cURL
curl --request POST 'https://tanglikegiare.net/api/v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "YOUR_API_KEY",
"action": "add",
"service": 1,
"link": "https://www.facebook.com/your-post",
"quantity": 100
}'
Response mẫu
{
"order": 99999
}
Các ID và số liệu trong ví dụ chỉ dùng để minh họa.
Trạng thái đơn hàng
action: statusTham số
| Tên | Mô tả |
|---|---|
key | YOUR_API_KEY |
action | status |
order | ID đơn hàng |
Request JSON
{
"key": "YOUR_API_KEY",
"action": "status",
"order": 123
}
cURL
curl --request POST 'https://tanglikegiare.net/api/v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "YOUR_API_KEY",
"action": "status",
"order": 123
}'
Response mẫu
{
"charge": "2.5",
"start_count": "168",
"status": "Completed",
"remains": "-2"
}
Các ID và số liệu trong ví dụ chỉ dùng để minh họa.
Trạng thái nhiều đơn
action: statusTham số
| Tên | Mô tả |
|---|---|
key | YOUR_API_KEY |
action | status |
orders | Comma-separated ID đơn hàngs (max 100) |
Request JSON
{
"key": "YOUR_API_KEY",
"action": "status",
"orders": "123,456"
}
cURL
curl --request POST 'https://tanglikegiare.net/api/v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "YOUR_API_KEY",
"action": "status",
"orders": "123,456"
}'
Response mẫu
{
"123": {
"status": "Partial"
},
"456": {
"error": "Incorrect order ID"
}
}
Các ID và số liệu trong ví dụ chỉ dùng để minh họa.
Kiểm tra số dư
action: balanceTham số
| Tên | Mô tả |
|---|---|
key | YOUR_API_KEY |
action | balance |
Request JSON
{
"key": "YOUR_API_KEY",
"action": "balance"
}
cURL
curl --request POST 'https://tanglikegiare.net/api/v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "YOUR_API_KEY",
"action": "balance"
}'
Response mẫu
{
"balance": "343423",
"currency": "VND"
}
Các ID và số liệu trong ví dụ chỉ dùng để minh họa.
Yêu cầu bảo hành
action: refillTham số
| Tên | Mô tả |
|---|---|
key | YOUR_API_KEY |
action | refill |
order | ID đơn hàng |
Request JSON
{
"key": "YOUR_API_KEY",
"action": "refill",
"order": 123
}
cURL
curl --request POST 'https://tanglikegiare.net/api/v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "YOUR_API_KEY",
"action": "refill",
"order": 123
}'
Response mẫu
{
"refill": "1"
}
Các ID và số liệu trong ví dụ chỉ dùng để minh họa.
Bảo hành nhiều đơn
action: refillTham số
| Tên | Mô tả |
|---|---|
key | YOUR_API_KEY |
action | refill |
orders | Comma-separated ID đơn hàngs (max 100) |
Request JSON
{
"key": "YOUR_API_KEY",
"action": "refill",
"orders": "123,456"
}
cURL
curl --request POST 'https://tanglikegiare.net/api/v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "YOUR_API_KEY",
"action": "refill",
"orders": "123,456"
}'
Response mẫu
{
"refill": "1"
}
Các ID và số liệu trong ví dụ chỉ dùng để minh họa.
Trạng thái bảo hành
action: refill_statusTham số
| Tên | Mô tả |
|---|---|
key | YOUR_API_KEY |
action | refill_status |
refill | ID bảo hành |
Request JSON
{
"key": "YOUR_API_KEY",
"action": "refill_status",
"refill": 1
}
cURL
curl --request POST 'https://tanglikegiare.net/api/v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "YOUR_API_KEY",
"action": "refill_status",
"refill": 1
}'
Response mẫu
{
"status": "Completed"
}
Các ID và số liệu trong ví dụ chỉ dùng để minh họa.
Trạng thái nhiều yêu cầu bảo hành
action: refill_statusTham số
| Tên | Mô tả |
|---|---|
key | YOUR_API_KEY |
action | refill_status |
refills | Comma-separated refill IDs |
Request JSON
{
"key": "YOUR_API_KEY",
"action": "refill_status",
"refills": "1,2"
}
cURL
curl --request POST 'https://tanglikegiare.net/api/v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "YOUR_API_KEY",
"action": "refill_status",
"refills": "1,2"
}'
Response mẫu
[
{
"refill": 1,
"status": "Completed"
},
{
"refill": 2,
"status": "Rejected"
}
]
Các ID và số liệu trong ví dụ chỉ dùng để minh họa.