Skip to main content

v2.order.search_package_list

POST /api/v2/order/search_package_list

Use this API to search the list of packages that have not been SHIPPED to proceed arranging shipment, and it supports various filters and sort fields.

Endpoint URL

URL: https://partner.shopeemobile.com/api/v2/order/search_package_list

Common Request Parameters

NameTypeSampleDescription
partner_idint1Partner ID is assigned upon registration is successful. Required for all requests.
timestamptimestamp1610000000This is to indicate the timestamp of the request. Required for all requests. Expires in 5 minutes.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1The token for API access, using to identify your permission to the api. Valid for multiple use and expires in 4 hours.
shop_idint600000Shopee's unique identifier for a shop. Required param for most APIs.
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

Request Parameters

NameTypeRequiredSampleDescription
filterobjectFalse
package_statusint32False2Use this field to filter the packages of specific status. Applicable values: 0: All 1: Pending 2: ToProcess 3: Processed Default value = 2 (ToProcess)
product_location_idsstring[]False["VN0005EIZ"]List of product_location_id. Use this field to filter the packages under specific warehouses.
logistics_channel_idsint32[]False[50021]List of logistics_channel_id. Use this field to filter the packages under specific logistics channels.
fulfillment_typeint32False2Use this field to filter the packages fulfilled by shopee or seller. Applicable values: 0: None (not apply filter) 1: Shopee 2: Seller Default value = 2 (Seller)
invoice_pendingbooleanFalsefalseUse this field to filter the packages under invoice_pending. Default value = false
sorting_groupint32False1[Only for TW 30029 channel] Use this field to filter the sorting group of parcel. This field is only available for package with package_status = 3 and logistics_channel_id = 30029. Applicable values:  0: All 1: North 2: South
order_typeint32False0Use this field to filter packages by order type. Applicable values: 0: All 1: Regular Order 2: Instant Order Default value = 0 (All) Note: For VN shops, using 2: Instant Order will return both Instant Delivery and Same-day Delivery packages.
is_pre_orderint32False0Use this field to filter packages by pre-order status. Applicable values: 0: All 1: Pre-Order 2: Non Pre-Order Default value = 0 (All)
shipping_priorityint32False0Use this field to filter packages by shipping priority. Applicable values: - For MY/PH/TW/TH shops, and VN Preferred/Preferred Plus/Shopee Mall shops: 0: All 1: Overdue 2: Ship by Today 3: Ship by Tomorrow - For other shops: 0: All 1: Overdue 2: Within 24h 3: Beyond 24h Default value = 0 (All)
paginationobjectTrue
page_sizeint32True5Each result set is returned as a page of entries. Use the "page_size" filters to control the maximum number of entries to retrieve per page (i.e., per call). This integer value is used to specify the maximum number of entries to return in a single "page" of data.The limit of page_size if between 1 and 100.
cursorstringFalse""Specifies the starting entry of data to return in the current call. Default is "". If data is more than one page, the offset can be some entry to start next call.
sortobjectFalse
sort_typeint32False1Use this field to specify which field to use to sort the returned package list. Available values: 1: ShipByDate   2: CreateDate 3: ConfirmedDate Default value = 1 (ShipByDate)
ascendingbooleanFalsefalseUse this field to specify whether the returned package list is sorted in ascending or descending sort_type. Default value = true

Response Parameters

NameTypeSampleDescription
errorstringerror_authIndicate error type if hit error. Empty if no error happened.
mesagestringInvalid access_tokenIndicate error details if hit error. Empty if no error happened.
responseobject
packages_listobject[]
order_snstring"250211UJM7EVM7"Shopee's unique identifier for an order.
package_numberstring"OFG192947720204989"Shopee's unique identifier for the package under an order
logistics_channel_idint3250021The identity of logistic channel.
product_location_idstring"VN0005EIZ"Just use this field to pass the next step of Mass ArrangeShipment
sorting_groupstring"North"[Only for TW 30029 channel] This field indicate the sorting group value of the package. This field is only available for logistics_channel_id = 30029 and after the package has been arranged for shipment.
is_shipment_arrangedbooleanfalseOnly effective when the package's logistics_status/fulfillment_status is LOGISTICS_READY. This parameter further distinguishes between two scenarios: - true: Package shipment has been arranged (Seller has processed shipment, system is generating tracking number, not yet updated to LOGISTICS_REQUEST_CREATED, no duplicate action needed) - false: Package awaiting shipment arrangement (Seller hasn't processed shipment yet, shipping arrangement required)
paginationobject
total_countint64320Total orders can be returned with your query
next_cursorstring"1730437200,184066343203459"if packages is not empty or length of packages <= page_size. You should pass the next_cursor in the next request as page_sentinel.
morebooleantrueTo indicate, it's a the last page or not
sortobjectAs same as request param
sort_typeint321As same as request param
is_ascbooleanfalseAs same as request param
request_idstring69ee3f61ec6f4e3f85836391e5b78dbcThe identifier for an API request for error tracking.