GET
https://www.bestiestudio.com/api/v1/products/list?search=openart-ai
Response chứa:
id - ID sản phẩm
name - Tên sản phẩm
plans[] - Danh sách gói: id, name, price, sale_price, fields[]
Thông tin sản phẩm này:
Product ID:
73
Slug:
openart-ai
Plans:
ID: 502 - OpenArt AI 4K Credit - Bảo hành : 24h
ID: 503 - OpenArt AI ( 29$ ) 12K Credit - Bảo hành : 5 Ngày
ID: 509 - OpenArt AI ( 240$ ) 106K Credit - Bảo hành : 3 Ngày | Hàng Cấp Mới
Code mẫu:
curl "https://www.bestiestudio.com/api/v1/products/list" \
-H "X-API-Key: sk_live_your_api_key_here" \
-H "X-API-Secret: sk_secret_your_api_secret_here"
POST
https://www.bestiestudio.com/api/v1/orders/create
Request Body:
{
"items": [
{
"plan_id": 502,
"quantity": 1,
"fields": {
"field_key": "field_value"
}
}
],
"coupon_code": ""
}
Các gói có thể mua:
ID: 502
OpenArt AI 4K Credit - Bảo hành : 24h
240.000đ
ID: 503
OpenArt AI ( 29$ ) 12K Credit - Bảo hành : 5 Ngày
550.000đ
ID: 509
OpenArt AI ( 240$ ) 106K Credit - Bảo hành : 3 Ngày | Hàng Cấp Mới
2.500.000đ
Code mẫu:
curl -X POST "https://www.bestiestudio.com/api/v1/orders/create" \
-H "Content-Type: application/json" \
-H "X-API-Key: sk_live_your_api_key_here" \
-H "X-API-Secret: sk_secret_your_api_secret_here" \
-d '{"items":[{"plan_id":502,"quantity":1}]}'
GET
https://www.bestiestudio.com/api/v1/orders/status?trans_id={trans_id}
Parameters:
trans_id - Mã giao dịch từ kết quả tạo đơn
Response chứa:
order - Thông tin đơn hàng
delivery.items - Nội dung giao hàng
status - pending, processing, completed, cancelled
Code mẫu:
curl "https://www.bestiestudio.com/api/v1/orders/status?trans_id=ORD123456" \
-H "X-API-Key: sk_live_your_api_key_here" \
-H "X-API-Secret: sk_secret_your_api_secret_here"