Skip to main content

v2.order.split_order

POST /api/v2/order/split_order

Use this api to split an order into multiple packages. Orders that include installation services cannot be split by quantity.

Endpoint URL

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

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
order_snstringTrue2012300NQJVTYNShopee's unique identifier for an order.
package_listobject[]TrueThe list of packages that you want to split. Note: - Orders that include installation services cannot be split by quantity. - When splitting the order, must contain all items in the order in one request. - You can split the order into 30 parcels at most in TW and 5 parcels at most in other regions.
item_listobject[]TrueThe list of items under the same package.
item_idint64True3600140554Shopee's unique identifier for an item.
model_idint64True10000605797Shopee's unique identifier for a model of an item. For single item without variation, you can set model_id as 0.
order_item_idintFalseThe identify of order item. For items in one same bundle deal promotion, the order_item_id should share the same id, such as 1,2. For items not in bundle deal promotion, the order_item_id should be the same as item_id.
promotion_group_idintFalseThe identify of product promotion.It's required for add on deal and bundle deal items. For items in one same add on deal or bundle deal promotion, the promotion_group_id should share the same id. For items not in add on deal or bundle deal promotion, the promotion_group_id should be 0. And the data is from promotion_group_id of v2,order.get_order_detail.
model_quantityint32False2The number of identical items put in the package, the quantity sum of the same item from each parcel must be the full item quantity of the whole order. This field is only eligible for the shop whitelisted to the unit-level split in SG/TH/TW/MY markets.

Response Parameters

NameTypeSampleDescription
errorstringcommon.error_authIndicate error type if hit error. Empty if no error happened.
messagestringInvalid access_token.Indicate error details if hit error. Empty if no error happened.
responseobjectDetail informations you are querying.
order_snstring2012300NQJVTYNShopee's unique identifier for an order.
package_listobject[]The list of package under this order you have split.
package_numberstring2521728636547073446Shopee's unique identifier for the package under an order.
item_listobject[]The list of items under this package.
item_idint643600140567Shopee's unique identifier for an item.
model_idint642000502199Shopee's unique identifier for a model.
order_item_idintThe identify of order item. For items in one same bundle deal promotion, the order_item_id should share the same id, such as 1,2. For items not in bundle deal promotion, the order_item_id should be the same as item_id.
promotion_group_idintThe identify of product promotion. For items in one same add on deal promotion, the promotion_group_id should share the same id. For items not in add on deal promotion, the promotion_group_id should be 0. And the data is from group_id of shopee.orders.GetOrderDetails.
model_quantityintThe number of identical items put in the package.
request_idstring02a3a65749ea47d2b4bba11e1ea30056The identifier of the API request for error tracking.