v2.product.get_item_base_info
GET/api/v2/product/get_item_base_infoVia 360: GET https://partner.quantri360.com/v1/shopee/api/v2/product/get_item_base_info
Description
Nội dung đầy đủ của tối đa 50 sản phẩm: tên, SKU cha, ngành hàng, thuộc tính, ảnh, mô tả, cân nặng / kích thước gói, kênh vận chuyển đang bật, thương hiệu, trạng thái, có phân loại hay không. Dùng để đồng bộ danh mục sản phẩm hoặc lấy dữ liệu trước khi sửa (update_item).
- Quá 50 mã trong một lần gọi bị Shopee từ chối — chia nhóm ≤ 50.
- Tên thuộc tính trả bằng tiếng Anh (
original_attribute_name); muốn tên tiếng Việt thì tra mã thuộc tính bằng get_attribute_tree. - Sản phẩm có phân loại không có giá / tồn ở đây — gọi get_model_list cho từng sản phẩm.
- Mã không tồn tại / không thuộc gian hàng bị bỏ qua (không có trong item_list), không báo lỗi.
Request
Endpoint
GET https://partner.quantri360.com/v1/shopee/api/v2/product/get_item_base_info
Authentication & shop
| Name | In | Type | Sample | Description |
|---|---|---|---|---|
| Authorization | header | header | Bearer q360_live_ab12cd34_… | Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand. |
| platform_shop_id | query | string | 100001 | Gian hàng (lấy ở GET /v1/platforms → shops[].platform_shop_id). BẮT BUỘC khi brand có > 1 gian hàng trên nền tảng; 360 bỏ tham số này trước khi chuyển tiếp. |
Request parameters
| Name | In | Type | Required | Sample | Description |
|---|---|---|---|---|---|
| item_id_list | query | int[] | Yes | 10000000081,10000000059 | Mã sản phẩm, 1–50, cách nhau dấu phẩy. Lấy bằng get_item_list / search_item. |
| need_tax_info | query | bool | No | false | true = trả thêm thông tin thuế (chỉ có nghĩa ở thị trường khác VN). |
| need_complaint_policy | query | bool | No | false | true = trả thêm chính sách khiếu nại (chỉ người bán Ba Lan). |
Request examples
curl -s "https://partner.quantri360.com/v1/shopee/api/v2/product/get_item_base_info?item_id_list=10000000081%2C10000000059" \ -H "Authorization: Bearer $KEY"
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.get(
"https://partner.quantri360.com/v1/shopee/api/v2/product/get_item_base_info",
params={
"item_id_list": "10000000081,10000000059"
},
headers={"Authorization": f"Bearer {KEY}"},
timeout=60,
)
print(r.status_code)
print(r.json())Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/shopee/api/v2/product/get_item_base_info');
for (const [k, v] of Object.entries({"item_id_list":"10000000081,10000000059"})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'GET',
headers: { Authorization: `Bearer ${KEY}` },
});
console.log(r.status, await r.json());PHP
<?php $key = 'q360_live_...'; // khóa API của brand $url = 'https://partner.quantri360.com/v1/shopee/api/v2/product/get_item_base_info' . '?' . http_build_query(['item_id_list' => '10000000081,10000000059']); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key]); $res = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo $status, "\n", $res;
Response
Response fields (as returned by Shopee)
| Name | Type | Sample | Description |
|---|---|---|---|
| request_id | string | d52ca43b277a4f9292fb8be658bfd33d | Mã request của Shopee để tra lỗi. |
| error | string | Mã lỗi Shopee; rỗng = thành công. | |
| message | string | Mô tả lỗi. | |
| warning | string | Cảnh báo — thường là "fail to get channel estimated_shipping_fee for channel […]", không ảnh hưởng dữ liệu. | |
| response | object | ||
| item_list | object[] | Mỗi phần tử một sản phẩm. | |
| item_id | int | 10000000081 | Mã sản phẩm. |
| category_id | int | 100102 | Ngành hàng (lá). |
| item_name | string | Sản phẩm mẫu | Tên sản phẩm. |
| item_sku | string | Sản phẩm mẫu | SKU cha (người bán tự đặt). |
| item_status | string | NORMAL | NORMAL · UNLIST · BANNED · REVIEWING · SELLER_DELETE · SHOPEE_DELETE. |
| create_time | timestamp | 1720759705 | Thời điểm tạo. |
| update_time | timestamp | 1793242278 | Lần cập nhật cuối. |
| has_model | bool | true | `true` = có phân loại → giá / tồn theo phân loại ở get_model_list; `false` = giá (`price_info`) và tồn (`stock_info_v2`) nằm ngay ở sản phẩm. |
| attribute_list | object[] | Thuộc tính đã điền. | |
| attribute_id | int | 100134 | Mã thuộc tính. |
| original_attribute_name | string | Material | Tên thuộc tính (tiếng Anh kể cả gian hàng VN). |
| is_mandatory | bool | false | Bắt buộc. |
| attribute_value_list | object[] | ||
| value_id | int | 0 | Mã giá trị; 0 = người bán tự gõ. |
| original_value_name | string | Tuytsi | Giá trị. |
| value_unit | string | Đơn vị (thuộc tính định lượng). | |
| image | object | Ảnh sản phẩm. | |
| image_id_list | string[] | ["vn-10000000092-7r98o-lxm45esiq5zt3b"] | Mã ảnh (dùng lại được trong update_item). |
| image_url_list | string[] | Link ảnh, cùng thứ tự. | |
| image_ratio | string | 1:1 | Tỷ lệ ảnh: `1:1` hoặc `3:4`. |
| weight | string | 0.5 | Cân nặng (kg) — chuỗi số. |
| dimension | object | Kích thước gói (cm). | |
| package_length | int | 25 | |
| package_width | int | 20 | |
| package_height | int | 10 | |
| logistic_info | object[] | Kênh vận chuyển của sản phẩm. | |
| logistic_id | int | 5001 | Mã kênh. |
| logistic_name | string | Nhanh | Tên kênh. |
| enabled | bool | true | Đang bật cho sản phẩm. |
| is_free | bool | false | Người bán trả phí ship. |
| size_id | int | 0 | |
| pre_order | object | ||
| is_pre_order | bool | false | Hàng đặt trước. |
| days_to_ship | int | 2 | Số ngày chuẩn bị hàng. |
| condition | string | NEW | NEW · USED. |
| brand | object | ||
| brand_id | int | 1069303 | Mã thương hiệu; 0 = không thương hiệu. |
| original_brand_name | string | Thương hiệu mẫu | |
| description_type | string | extended | `normal` → mô tả ở `description` (chữ) · `extended` → mô tả ở `description_info.extended_description.field_list` (xen kẽ đoạn chữ `text` và ảnh `image_info`). |
| description | string | Mô tả dạng chữ (khi description_type = normal). | |
| description_info | object | Mô tả dạng mở rộng (khi description_type = extended). | |
| promotion_id | int | 10000000101 | Chương trình khuyến mãi đang áp dụng. |
| has_promotion | bool | true | |
| size_chart | string | Ảnh bảng size (link); `size_chart_id` > 0 = dùng bảng size dạng mới. | |
| size_chart_id | int | 0 | |
| deboost | string | FALSE | "TRUE" = sản phẩm bị giảm hiển thị (chuỗi, không phải bool). |
| is_fulfillment_by_shopee | bool | false | Hàng gửi kho Shopee. |
| purchase_limit_info | object | Giới hạn mua mỗi đơn. | |
| min_purchase_limit | int | 1 |
Response sample
{
"error": "",
"message": "",
"warning": "fail to get channel estimated_shipping_fee for channel [50039];…",
"request_id": "e3e3e7f35ef6c60c…",
"response": {
"item_list": [
{
"item_id": 10000000081,
"category_id": 100102,
"item_name": "Sản phẩm mẫu",
"item_sku": "Sản phẩm mẫu",
"create_time": 1720759705,
"update_time": 1793242278,
"attribute_list": [
{
"attribute_id": 100134,
"original_attribute_name": "Material",
"attribute_value_list": [
{
"value_id": 0,
"original_value_name": "Tuytsi",
"value_unit": ""
}
],
"is_mandatory": false
},
{
"attribute_id": 100152,
"original_attribute_name": "Dress/Skirt Style",
"attribute_value_list": [
{
"value_id": 1367,
"original_value_name": "A-Line",
"value_unit": ""
}
],
"is_mandatory": false
}
],
"image": {
"image_id_list": [
"sg-10000000095-8258g-mtrn1z8ec64mdd",
"vn-10000000092-7r98o-lxm45esiq5zt3b"
],
"image_url_list": [
"https://example.com/anh-mau.jpg",
"https://example.com/anh-mau.jpg"
],
"image_ratio": "1:1"
},
"weight": "0.5",
"dimension": {
"package_length": 25,
"package_width": 20,
"package_height": 10
},
"logistic_info": [
{
"logistic_id": 5001,
"logistic_name": "Nhanh",
"enabled": true,
"size_id": 0,
"is_free": false,
"include_pickup": false
},
{
"logistic_id": 5012,
"logistic_name": "Trong Ngày",
"enabled": false,
"size_id": 0,
"is_free": false,
"include_pickup": false
}
],
"pre_order": {
"is_pre_order": false,
"days_to_ship": 2
},
"condition": "NEW",
"item_status": "NORMAL",
"has_model": true,
"promotion_id": 10000000101,
"has_promotion": true,
"brand": {
"brand_id": 1069303,
"original_brand_name": "Thương hiệu mẫu"
},
"description_type": "extended",
"description_info": {
"extended_description": {
"field_list": [
{
"field_type": "text",
"text": "Chân váy Thương hiệu mẫu dáng A… Chất liệu: Tuytsi…"
},
{
"field_type": "image",
"image_info": {
"image_id": "vn-10000000102-7r98o-lxm48z1tdyorab",
"image_url": "https://example.com/anh-mau.jpg"
}
}
]
}
},
"size_chart_id": 0,
"deboost": "FALSE",
"is_fulfillment_by_shopee": false,
"tag": {
"kit": false
},
"purchase_limit_info": {
"min_purchase_limit": 1
}
}
]
},
"debug_message": ""
}
Shopee error codes (21)
Show
| Code | Meaning |
|---|---|
| error_data | Dữ liệu không tồn tại hoặc không hợp lệ cho thao tác (vd mã không có, loại yêu cầu không cho phép). |
| error_param | Tham số sai / thiếu / sai kiểu — xem `message` để biết tham số nào. |
| error_server | Lỗi hệ thống Shopee — thử lại sau ít phút. |
| error_shop | Gian hàng không hợp lệ — kiểm tra platform_shop_id. |
| error_item_not_found | Không tìm thấy item_id. |
| error_param_shop_id_not_found | Shop_id is not found. |
| error_invalid_language | Ngôn ngữ không hợp lệ. |
| error_get_shop_fail | Không lấy được gian hàng; thử lại sau. |
| error_inner | Lỗi hệ thống Shopee — thử lại sau. |
| error_desc_image_no_pass | Ảnh mô tả chưa được chấp nhận; xem `message`. |
| error_auth | Ủy quyền gian hàng cho 360 đã hết hạn hoặc bị thu hồi (360 đã tự làm mới token một lần) — chủ gian hàng kết nối lại Shopee trong Partner. |
| error.param | Can not update item with stock less than reserved stock |
| error_system_busy | Hệ thống đang bận; thử lại sau. |
| error_slash_price_load | Failed to load slash price. |
| error_query_over_itemid_size | Interal error, please contact openapi team. |
| error_query_condition_list_limit | Interal error, please contact openapi team. |
| error_query_query_limit_too_large | Interal error, please contact openapi team. |
| error_limit | Chạm hạn mức gọi Shopee trong ngày của kết nối — 360 trả kèm thời điểm thử lại; giảm tần suất gọi. |
| error_rate_limit | Gọi quá nhanh — chờ vài giây rồi gọi lại (360 cũng giới hạn theo key: 429 + Retry-After). |
| shop_banned | Gian hàng đang bị Shopee khóa — mọi API tạm ngưng tới khi gỡ khóa. |
| error_kyc_auth | Gian hàng chưa hoàn tất đăng ký người bán trên Kênh Người Bán. |
Get started
- Sign up for Partner
- Enable a data type of the Sản phẩm group on the platform page
- Create an API key (tick the Shopee channel)
- Call it as in the examples above