API Document
以下为api代码,欢迎使用我们的api链接您的网站
Base Api Url | https://api.fans199.com/api/v1 |
HTTP Method | POST |
Headers | X-API-KEY |
Response format | JSON |
Product List
API /product
Example response
{
"status": "success",
"data": [
{
"afterSalesDays": 0, //售后天数
"category": "Instagram", //分类
"maxBuyNum": 1000000, //最大购买量
"minBuyNum": 10, //最小购买量
"name": "Instagram Fans ", //商品名称
"num": 1000, //数量
"price": 66, //价格(unit price=price / num,单价=价格/数量)
"productId": 196, //商品id
"typeCode": "F1F1" //类型编码
},
{
"afterSalesDays": 30,
"category": "TikTok",
"maxBuyNum": 500000,
"minBuyNum": 100,
"name": "TikTok Comments",
"num": 100,
"price": 9,
"productId": 252,
"typeCode": "F1F4"
}
]
}
Add Order
API /addOrder
typeCode | Parameters |
F1F1 Default |
|
F1F2 Invites from Groups 群采集 |
|
F1F3 Package 套餐 |
|
F1F4 Custom Comments 自定义评论 |
|
F1F5 Poll 投票 |
|
F1F6 Comment Likes 评论点赞 |
|
Example response
{
"status": "success",
"data": "1651817858671448064" //orderId订单号
}
Order Status
API /orderStatusParameters
{
"orderIds": "1650706924804640768,1650684049326477312,1111"
}
Example response
{
"status": "success",
"data": {
"1650706924804640768": {
"orderQuantity": 1000, //订单数量
"initialQuantity": 243, //开始数量
"currentQuantity": 1243, //当前数量
"completedQuantity": 1000, //完成数量
"status": "Completed", //订单状态
"totalAmount": 5 //订单金额
},
"1650684049326477312": {
"orderQuantity": 10000,
"completedQuantity": 0,
"status": "Canceled",
"totalAmount": 50,
"refundAmount": 50 //退款金额
},
"1111": {}
}
}
Balance
API /balance
Example response
{
"status": "success",
"data": 11.45408 //balance余额
}