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

v2.first_mile.bind_courier_delivery_first_mile_tracking_number

POST /api/v2/first_mile/bind_courier_delivery_first_mile_tracking_number

Dùng API này để liên kết 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/bind_courier_delivery_first_mile_tracking_number

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ả
shipment_methodstringTruecourier_deliveryThe shipment method for generate and bind orders. Available value: courier_delivery.
binding_idstringTrueDCN247547439397PUIf using courier_delivery as the shipment method, the "binding_id" field should pass the value generated from v2.first_mile.generate_and_bind_first_mile_tracking_number.
order_listobject[]TrueThe list of order_sn. You can specify up to 50 order_sns in this call. One fm_tn maximum number of total bind orders is 10000.
order_snstringTrue2410106R7DE3BXShopee's unique identifier for an order.
package_numberstringFalseShopee's unique identifier for the package under an order. You should't fill the field with empty string when there isn't a package number.

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 chi tiết 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
binding_idstringDCN249601021852HUBinding ID
success_listobject[]
order_snstring2410106R7DE3BXShopee's unique identifier for an order.
package_numberstringShopee's unique identifier for the package under an order.
fail_listobject[]
order_snstring2004239MRBBFPJShopee's unique identifier for an order.
package_numberstringShopee's unique identifier for the package under an order.
fail_errorstringfirstmile.invalid_order_statusCho biết loại lỗi nếu một phần tử gặp lỗi.
fail_messagestringThe status of order(order_sn: 2004239MRBBFPJ) is invalid.Cho biết chi tiết lỗi nếu một phần tử gặp lỗi.