GET
https://v1.v3vn.eu/api/v1/products/list?search=clip-studio-paint
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:
819
Slug:
clip-studio-paint
Plans:
ID: 2010 - Clip Studio Paint Pro - 1 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
ID: 2011 - Clip Studio Paint Ex - 1 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
ID: 2012 - Clip Studio Paint Pro - 2 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
ID: 2013 - Clip Studio Paint Ex - 2 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
ID: 2014 - Clip Studio Paint Pro - 4 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
ID: 2015 - Clip Studio Paint Ex - 4 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
Code mẫu:
curl "https://v1.v3vn.eu/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://v1.v3vn.eu/api/v1/orders/create
Request Body:
{
"items": [
{
"plan_id": 2010,
"quantity": 1,
"fields": {
"field_key": "field_value"
}
}
],
"coupon_code": ""
}
Các gói có thể mua:
ID: 2010
Clip Studio Paint Pro - 1 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
312.000đ
ID: 2011
Clip Studio Paint Ex - 1 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
780.000đ
ID: 2012
Clip Studio Paint Pro - 2 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
546.000đ
ID: 2013
Clip Studio Paint Ex - 2 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
1.170.000đ
ID: 2014
Clip Studio Paint Pro - 4 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
962.000đ
ID: 2015
Clip Studio Paint Ex - 4 Thiết bị - 1 Năm - [ Bảo hành 12 Tháng ]
1.560.000đ
Code mẫu:
curl -X POST "https://v1.v3vn.eu/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":2010,"quantity":1}]}'
GET
https://v1.v3vn.eu/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://v1.v3vn.eu/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"