GET
https://shopkeys.shop/api/v1/products/list?search=h44-bc3-tra-sau-tien-vnd-co-nut-thanh-toan-tong-dang-moi-infor-viet-nam-target-viet-naindothai-lan-han-quoc
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:
5657
Slug:
h44-bc3-tra-sau-tien-vnd-co-nut-thanh-toan-tong-dang-moi-infor-viet-nam-target-viet-naindothai-lan-han-quoc
Plans:
ID: 5665 - H44. BC3 trả sau tiền VNĐ | có nút thanh toán tổng dạng mới | infor Việt Nam | Target: Việt Na,indo,thái lan, hàn quốc...
Code mẫu:
curl "https://shopkeys.shop/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://shopkeys.shop/api/v1/orders/create
Request Body:
{
"items": [
{
"plan_id": 5665,
"quantity": 1,
"fields": {
"field_key": "field_value"
}
}
],
"coupon_code": ""
}
Các gói có thể mua:
ID: 5665
H44. BC3 trả sau tiền VNĐ | có nút thanh toán tổng dạng mới | infor Việt Nam | Target: Việt Na,indo,thái lan, hàn quốc...
67.500đ
Code mẫu:
curl -X POST "https://shopkeys.shop/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":5665,"quantity":1}]}'
GET
https://shopkeys.shop/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://shopkeys.shop/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"