Trang chủ Đơn hàng Thông tin
Cursor

Cursor

"rong kỷ nguyên của trí tuệ nhân tạo, việc lập trình không còn chỉ dừng lại ở việc gõ từng dòng lệnh thủ công."...

Tài liệu API sản phẩm

GET https://divineshop.net/api/v1/products/list?search=product-f16dba5d
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: 500
Slug: product-f16dba5d
Code mẫu:
curl "https://divineshop.net/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://divineshop.net/api/v1/orders/create
Request Body:
{
  "items": [
    {
      "plan_id": PLAN_ID,
      "quantity": 1,
      "fields": {
        "field_key": "field_value"
      }
    }
  ],
  "coupon_code": ""
}
Các gói có thể mua:
Plan ID Tên gói Giá
Code mẫu:
curl -X POST "https://divineshop.net/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":PLAN_ID,"quantity":1}]}'
GET https://divineshop.net/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://divineshop.net/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"

Sản phẩm này hiện chưa có gói nào

Đánh giá sản phẩm

0 đánh giá
0.0
0 đánh giá
5
0
4
0
3
0
2
0
1
0

Chưa có đánh giá nào cho sản phẩm này

Hãy là người đầu tiên đánh giá sản phẩm!

Không có trường thông tin nào cần điền

Bạn có mã giảm giá?
Tạm tính
Tổng cộng

Thông tin: Cursor