GET
https://shopkeys.shop/api/v1/products/list?search=h3-bc500-tao-san-500tk-vn-tra-truoc-info-viet-tien-vnd-vat-10-dang-thanh-toan-moi-da-xac-minh-doanh-nhiep-2-buoc-co-cccd
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:
4178
Slug:
h3-bc500-tao-san-500tk-vn-tra-truoc-info-viet-tien-vnd-vat-10-dang-thanh-toan-moi-da-xac-minh-doanh-nhiep-2-buoc-co-cccd
Plans:
ID: 4185 - H3. BC500 | Tạo Sẵn 500TK VN | TRẢ TRƯỚC | info VIỆT | Tiền VND | VAT 10% | Dạng thanh toán mới | ĐÃ XÁC MINH DOANH NHIỆP 2 BƯỚC | CÓ CCCD
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": 4185,
"quantity": 1,
"fields": {
"field_key": "field_value"
}
}
],
"coupon_code": ""
}
Các gói có thể mua:
ID: 4185
H3. BC500 | Tạo Sẵn 500TK VN | TRẢ TRƯỚC | info VIỆT | Tiền VND | VAT 10% | Dạng thanh toán mới | ĐÃ XÁC MINH DOANH NHIỆP 2 BƯỚC | CÓ CCCD
5.600.000đ
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":4185,"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"