VI | EN
Message us on Messenger
Developer resources

Thông tin cơ bản sản phẩm — Shopee API

v2.product.get_item_base_info · call it through Quantri360 with one API key for your own accounts / assets that you connected and authorized — 360 handles request signing and refreshing the authorization you granted.

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

NameInTypeSampleDescription
AuthorizationheaderheaderBearer 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_idquerystring100001Gian 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

NameInTypeRequiredSampleDescription
item_id_listqueryint[]Yes10000000081,10000000059Mã sản phẩm, 1–50, cách nhau dấu phẩy. Lấy bằng get_item_list / search_item.
need_tax_infoqueryboolNofalsetrue = trả thêm thông tin thuế (chỉ có nghĩa ở thị trường khác VN).
need_complaint_policyqueryboolNofalsetrue = 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)

NameTypeSampleDescription
request_idstringd52ca43b277a4f9292fb8be658bfd33dMã request của Shopee để tra lỗi.
errorstringMã lỗi Shopee; rỗng = thành công.
messagestringMô tả lỗi.
warningstringCảnh báo — thường là "fail to get channel estimated_shipping_fee for channel […]", không ảnh hưởng dữ liệu.
responseobject
item_listobject[]Mỗi phần tử một sản phẩm.
item_idint10000000081Mã sản phẩm.
category_idint100102Ngành hàng (lá).
item_namestringSản phẩm mẫuTên sản phẩm.
item_skustringSản phẩm mẫuSKU cha (người bán tự đặt).
item_statusstringNORMALNORMAL · UNLIST · BANNED · REVIEWING · SELLER_DELETE · SHOPEE_DELETE.
create_timetimestamp1720759705Thời điểm tạo.
update_timetimestamp1793242278Lần cập nhật cuối.
has_modelbooltrue`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_listobject[]Thuộc tính đã điền.
attribute_idint100134Mã thuộc tính.
original_attribute_namestringMaterialTên thuộc tính (tiếng Anh kể cả gian hàng VN).
is_mandatoryboolfalseBắt buộc.
attribute_value_listobject[]
value_idint0Mã giá trị; 0 = người bán tự gõ.
original_value_namestringTuytsiGiá trị.
value_unitstringĐơn vị (thuộc tính định lượng).
imageobjectẢnh sản phẩm.
image_id_liststring[]["vn-10000000092-7r98o-lxm45esiq5zt3b"]Mã ảnh (dùng lại được trong update_item).
image_url_liststring[]Link ảnh, cùng thứ tự.
image_ratiostring1:1Tỷ lệ ảnh: `1:1` hoặc `3:4`.
weightstring0.5Cân nặng (kg) — chuỗi số.
dimensionobjectKích thước gói (cm).
package_lengthint25
package_widthint20
package_heightint10
logistic_infoobject[]Kênh vận chuyển của sản phẩm.
logistic_idint5001Mã kênh.
logistic_namestringNhanhTên kênh.
enabledbooltrueĐang bật cho sản phẩm.
is_freeboolfalseNgười bán trả phí ship.
size_idint0
pre_orderobject
is_pre_orderboolfalseHàng đặt trước.
days_to_shipint2Số ngày chuẩn bị hàng.
conditionstringNEWNEW · USED.
brandobject
brand_idint1069303Mã thương hiệu; 0 = không thương hiệu.
original_brand_namestringThương hiệu mẫu
description_typestringextended`normal` → mô tả ở `description` (chữ) · `extended` → mô tả ở `description_info.extended_description.field_list` (xen kẽ đoạn chữ `text` và ảnh `image_info`).
descriptionstringMô tả dạng chữ (khi description_type = normal).
description_infoobjectMô tả dạng mở rộng (khi description_type = extended).
promotion_idint10000000101Chương trình khuyến mãi đang áp dụng.
has_promotionbooltrue
size_chartstringẢnh bảng size (link); `size_chart_id` > 0 = dùng bảng size dạng mới.
size_chart_idint0
debooststringFALSE"TRUE" = sản phẩm bị giảm hiển thị (chuỗi, không phải bool).
is_fulfillment_by_shopeeboolfalseHàng gửi kho Shopee.
purchase_limit_infoobjectGiới hạn mua mỗi đơn.
min_purchase_limitint1

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
CodeMeaning
error_dataDữ 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_paramTham số sai / thiếu / sai kiểu — xem `message` để biết tham số nào.
error_serverLỗi hệ thống Shopee — thử lại sau ít phút.
error_shopGian hàng không hợp lệ — kiểm tra platform_shop_id.
error_item_not_foundKhông tìm thấy item_id.
error_param_shop_id_not_foundShop_id is not found.
error_invalid_languageNgôn ngữ không hợp lệ.
error_get_shop_failKhông lấy được gian hàng; thử lại sau.
error_innerLỗ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.paramCan not update item with stock less than reserved stock
error_system_busyHệ thống đang bận; thử lại sau.
error_slash_price_loadFailed to load slash price.
error_query_over_itemid_sizeInteral error, please contact openapi team.
error_query_condition_list_limitInteral error, please contact openapi team.
error_query_query_limit_too_largeInteral error, please contact openapi team.
error_limitChạ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_limitGọ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_bannedGian hàng đang bị Shopee khóa — mọi API tạm ngưng tới khi gỡ khóa.
error_kyc_authGian hàng chưa hoàn tất đăng ký người bán trên Kênh Người Bán.

Get started

  1. Sign up for Partner
  2. Enable a data type of the Sản phẩm group on the platform page
  3. Create an API key (tick the Shopee channel)
  4. Call it as in the examples above