GET
https://neurotronix.store/api/v1/products/list?search=canva-admin-panel--500-canva-pro-accounts--instant-access-
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:
64
Slug:
canva-admin-panel--500-canva-pro-accounts--instant-access-
Plans:
ID: 360 - Canva Admin Panel | 500 Canva Pro accounts | Instant access
Sample code:
curl "https://neurotronix.store/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://neurotronix.store/api/v1/orders/create
Request Body:
{
"items": [
{
"plan_id": 360,
"quantity": 1,
"fields": {
"field_key": "field_value"
}
}
],
"coupon_code": ""
}
Các gói có thể mua:
ID: 360
Canva Admin Panel | 500 Canva Pro accounts | Instant access
$3.360.00
Sample code:
curl -X POST "https://neurotronix.store/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":360,"quantity":1}]}'
GET
https://neurotronix.store/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 - Order information
delivery.items - Delivery details
status - pending, processing, completed, cancelled
Sample code:
curl "https://neurotronix.store/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"