Chuyển tới nội dung chính

v2.first_mile.get_transit_warehouse_list

GET /api/v2/first_mile/get_transit_warehouse_list

Dùng API này để lấy danh sách kho trung chuyển dùng để tạo số theo dõi chặng đầu cho phương thức giao hàng qua đơn vị vận chuyển.

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/first_mile/get_transit_warehouse_list

Tham số chung

TênKiểuMẫuMô tả
partner_idint1ID đối tác được cấp sau khi đăng ký thành công. Bắt buộc cho tất cả các yêu cầu.
timestamptimestamp1610000000Dùng để xác định thời điểm của yêu cầu. Bắt buộc cho tất cả các yêu cầu. Hết hạn sau 5 phút.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1Token dùng để truy cập API, xác định quyền của bạn đối với API. Có thể dùng nhiều lần và hết hạn sau 4 giờ.
shop_idint600000Mã định danh duy nhất của Shopee cho một gian hàng. Tham số bắt buộc cho hầu hết các API.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature generated by partner_id, api path, timestamp, access_token, shop_id and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2

Tham số Request

TênKiểuBắt buộcMẫuMô tả
regionstringFalseCNUse this field to specify the region you want to ship parcel. Available value: CN.
shipment_methodstringFalsepickupUse this field to specify the shipment method you want to ship parcel. Available value: pickup, dropoff, self_deliver, courier_delivery. Note: Only when shipment_method = dropoff, the API response will include warehouses where warehouse_type = 1 (vendor warehouse).

Tham số Response

TênKiểuMẫuMô tả
errorstringCho biết loại lỗi nếu xảy ra lỗi. Rỗng nếu không có lỗi.
messagestringCho biết loại lỗi nếu xảy ra lỗi. Rỗng nếu không có lỗi.
request_idstringMã định danh cho yêu cầu API, dùng để theo dõi lỗi.
responseobject
transit_warehouse_listobject[]
warehouse_idstringECP03The identity of transit warehouse.
warehouse_name_enstringShopee Quanzhou Transit WarehouseThe name of transit warehouse in English.
warehouse_name_cnstringShopee泉州仓The name of transit warehouse in Chinese.
warehouse_typeint320Warehouse type: 0 = normal warehouse 1 = vendor warehouse Note: Only when shipment_method = dropoff, the API response will include warehouses where warehouse_type = 1 (vendor warehouse).