POST Batch Ship Packages
Giao hàng loạt nhiều kiện hàng Shop Required scope: seller.fulfillment.basic Sử dụng API này để giao hàng loạt nhiều kiện hàng bằng cách cung cấp nhiều package ID. API này áp dụng cho cả đơn hàng vận chuyển qua TikTok lẫn đơn hàng do người bán tự vận chuyển.
- TikTok Shipping: Lên lịch thời gian bàn giao kiện hàng để đơn vị vận chuyển của TikTok Shipping đến lấy hàng từ người bán.
- Seller Shipping: Người bán tự sắp xếp vận chuyển và tải lên tracking_number cùng shipping_provider_id. Package ID có thể lấy từ Get Order Detail
. Version 202309
POST/fulfillment/202309/packages/ship
Request
Header
| Properties | Type | Description |
|---|---|---|
| content-type Required | string | Loại được phép: application/json |
| x-tts-access-token Required | string | Giá trị access_token của người bán lấy từ Get Access Token, khi user_type = 0. Làm theo hướng dẫn này để lấy access_token của người bán. |
Query
| Properties | Type | Description |
|---|---|---|
| app_key Required | string | Mỗi app sẽ có một key duy nhất. Vui lòng dùng đúng key được cấp cho app của bạn. |
| sign Required | string | Chữ ký được tạo bởi thuật toán gen. Khi gửi yêu cầu API đến TTS, bạn phải ký chúng để TTS có thể nhận diện người gửi. |
| timestamp Required | int | Unix timestamp GMT (UTC+00:00). Timestamp này được dùng cho tất cả các yêu cầu API. Nhà phát triển có thể dùng để chuyển đổi sang giờ địa phương. |
| shop_cipher Required | string | Dùng thuộc tính này để truyền thông tin shop khi gọi API. Việc không truyền đúng giá trị khi gọi API cho các shop xuyên biên giới sẽ trả về phản hồi không chính xác. Lấy bằng API Get Authorization Shop |
Body
| Properties | Type | Description |
|---|---|---|
| packages Required | []object | Danh sách các kiện hàng bạn muốn giao theo lô. |
Example
CurlGoNode.jsJavaEnable word wrap
Response Parameters
| Properties | Type | Description |
|---|---|---|
| code | int | Mã trạng thái thành công hoặc thất bại được trả về trong phản hồi API. |
| message | string | Thông báo thành công hoặc thất bại được trả về trong phản hồi API. Lý do thất bại sẽ được mô tả trong thông báo. |
| request_id | string | Nhật ký yêu cầu |
| data | object | Thông tin trả về cụ thể |
Example
JSONEnable word wrap
Error Code
Xem các mã lỗi thường gặp
| Code | Message | | --- | --- | | 36009003 | Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support. | | 11006013 | Failed to ship package. Products under the Phones & Tablets category cannot be shipped together with other items in the same package. Please split the order. | | 11006014 | Failed to ship package. If you are shipping multiple products under the Phones & Tablets category, they must be shipped in individual packages. Please split the order to continue. | | 11021009 | No available shipping services for this request. Please modify the package weight or check the recipient address. If the error persists, please contact the platform for assistance. | | 11021010 | The shipment failed due to an invalid postal code. Please ask the buyer to edit the address. If the address cannot be changed, you may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021011 | Fail to ship package because the product name is invalid. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021012 | illegal address | | 11021013 | The shipment failed because the delivery address is too long. Please ask the buyer to shorten the address. If the address cannot be changed, you may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021014 | product oversize | | 11021015 | Fail to ship package because the package is overweight. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021016 | Fail to ship package because the weight of the SKU exceeds the allowed limit. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021017 | Fail to ship package because the SKU dimensions exceed the allowed limits. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021018 | Fail to ship package because the number of items in the package exceeds the allowed limit. | | 11021019 | Fail to ship package because the package dimensions exceed the allowed limits. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021020 | Fail to ship package because the package's circumference exceeds the allowed limit. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021021 | Fail to ship package because the SKU name is invalid. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021022 | Fail to ship package because the longest dimension of the package exceeds the allowed limit. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021023 | Fail to ship package because the buyer and/or seller addresses are invalid. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021024 | Fail to ship package because the buyer recipient address is invalid. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11021025 | Fail to ship package because the seller shipping address is invalid. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 11028006 | This tracking number cannot be matched to any carrier, please check the tracking number and upload again. | | 21001003 | System timeout. If the error persists, please contact the platform for assistance. | | 21001011 | System process error, please try again later. | | 21004006 | Failed to ship. Please ensure an invoice is uploaded before shipping. | | 21008044 | Package item has after-sale request, please process the after-sale request first. | | 21011001 | Package not found. If the error persists, please contact the platform for assistance. | | 21011003 | fulfill_unit action not allowed | | 21011007 | Package item has after-sale request, please process the after-sale request first. | | 21011008 | Package is not complete. If the error persists, please contact the platform for assistance. | | 21011020 | These orders are already shipped. | | 21011022 | Invalid tracking number or provider ID. Please double check and try again. | | 21011025 | Duplicate tracking number. | | 21011027 | Package has already been delivered. | | 21011028 | The package does not belong to the current shop. | | 21011040 | Package has already been shipped. | | 21011041 | Cannot complete the operation when order is cancelled. | | 21011053 | Fail to ship package because the shipment time is outside of the pick-up time slot. | | 21011054 | No available shipping services for this request due to missing pick-up time slot. Please contact customer service for assistance. | | 21014009 | Failed to ship. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. | | 21042227 | For pop 4pl(cross-border),the return warehouse for the shipping location has not been configured. |
Nội dung này có hữu ích không?Hữu ích
Không hữu ích
PreviousNext