GET
https://muahangmmo.com/api/v1/products/list?search=san-pham-hma-vpn
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:
858
Slug:
san-pham-hma-vpn
Plans:
ID: 985 - V1.2 | KEY HMA - RANDOM 15-27 NGÀY - DÙNG 5 THIẾT BỊ - GIAO SẴN KEY - VER 29
ID: 986 - HMA 5 THIẾT BỊ MÁY TÍNH- ĐIỆN THOẠI ADROID 28 - 30 NGÀY- VER 93
ID: 954 - KEY HMAVPN 28-32 NGÀY VER 27
Code mẫu:
curl "https://muahangmmo.com/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://muahangmmo.com/api/v1/orders/create
Request Body:
{
"items": [
{
"plan_id": 985,
"quantity": 1,
"fields": {
"field_key": "field_value"
}
}
],
"coupon_code": ""
}
Các gói có thể mua:
| Plan ID |
Tên gói |
Giá |
985 |
V1.2 | KEY HMA - RANDOM 15-27 NGÀY - DÙNG 5 THIẾT BỊ - GIAO SẴN KEY - VER 29 |
8.800đ |
986 |
HMA 5 THIẾT BỊ MÁY TÍNH- ĐIỆN THOẠI ADROID 28 - 30 NGÀY- VER 93 |
15.200đ |
954 |
KEY HMAVPN 28-32 NGÀY VER 27 |
19.400đ |
Code mẫu:
curl -X POST "https://muahangmmo.com/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":985,"quantity":1}]}'
GET
https://muahangmmo.com/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://muahangmmo.com/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"