/orders/split

This API splits the order into multiple orders. All the "siReferenceCode" of the package has to be provided in the request. Can split only one package at a time.
siReferenceCode : This is associated with item(suborder) level. This value can be fetched from "/orders/new/{packageReferenceCode}" api under packages -> items -> siReferenceCode

After getting response as "split successfully", "orders/new" api has to be called to get the new splitted packages.

Example: If an package contains 4 items (4 suborders) and we want to split it into 3 packages containing (1,2,1) items, then request will be like in below mentioned example.

👍

Note

Sub orders belonging to Dropship, Oneship.
Allowed status: PFF, PRNT
If order is in PRNT state and seller is on Bulk invoice mode or Manual invoice mode, then invoiceCodes field in the request is needed for successful splitting.

Request allowed values:
fulfillmentType - DROPSHIP, ONESHIP, OCPLUS

Request

ParameterNameDataTypeParameterTypeRequirementDescription
subOrderIdsList<List >BodyMandatoryList of list of siReferenceCode
fulfillmentTypeStringBodyMandatoryFulfillment model
invoiceCodesLinkedHashSetBodyOptionalInvoice codes

Response

metadata :

FieldNameDataTypeDescription
requestIdStringUnique ID for the request
clientIdStringPartner Id
responseTimeLongResponse Time
requestedURIStringRequested URI
messageStringError message

payload :

FieldNameDataTypeDescription
operationSuccessfulbooleanDescribes whether operation Successful or not
errorMessageStringError message will be given if operationSuccessful is false otherwise it will be null.
Language
Authorization