SetStatusToPackedByMarketplace

Definition

Use this call to mark an order item as being packed.

Request URI: https://api.sellercenter.lazada.sg?Action=SetStatusToPackedByMarketplace

Parameters

FieldTypeDescription
ActionstringSetStatusToPackedByMarketplace
Name of the API that is to be called. Mandatory.
FormatstringThe response format, with XML as the default. Can be XML or JSON. Optional.
TimestampdatetimeThe current time in ISO8601 format (e.g., Timestamp=2016-04-01T10:00:00+02:00 for Berlin). Mandatory.
UserIDstringThe ID of the user making the call. Mandatory.
VersionstringThe API version against which this call is to be executed. The current version is "1.0". Mandatory.
SignaturestringThe cryptographic signature, authenticating the request. You must create this value by computing the SHA256 hash of the request, using the API key of the user specified in the UserID parameter. Mandatory.
OrderItemIdsarray of longList of oder items to be marked ready to ship. Comma separated list in square brackets. Mandatory
DeliveryTypestringOne of the following delivery types:
'dropship' - the seller will send out the package on his own.
'pickup' - shop should pick up the item from the seller (cross-docking).
'send_to_warehouse' - the seller will send the item to the warehouse (cross-docking).
ShippingProviderstringValid shipment provider as looked up via GetShipmentProviders. Mandatory for drop-shipping.

Code sample

# SetStatusToPackedByMarketplace cURL example
# to run, update Timestamp and recompute Signature
#
url = "https://api.sg.ali-lazada.com/"
get
data-urlencode Action=SetStatusToPackedByMarketplace
data-urlencode OrderItemIds=[1]
data-urlencode DeliveryType=dropship
data-urlencode ShippingProvider=Aramax
data-urlencode Timestamp=2015-07-01T11:11+0000
data-urlencode [email protected]
data-urlencode Version=1.0
data-urlencode Signature=d4ff93cccb165295ed8357fe42082208b781a3b576bbb7d3fe7a624270b047b9
//init request with OrderItemIds, DeliverType, ShipmentProvider
//for ShipmentProvider, you can get options by calling GetShipmentProvders
List<Long> ids = Arrays.asList(102433828L, 102367937L);
SetStatusToPackedByMarketplace request = new SetStatusToPackedByMarketplace(ids,                       
                                                                            DeliveryType.Dropship, "LEX");
//fire request and handle result
try {
  PackedByMarketPlaceResponse response = request.execute();
  for(PackageInfo packageInfo: response.getBody()) {
    System.out.println(packageInfo);
  }
} catch (LazadaException e) {
  System.out.println(e.getResponseStr());
}

The API responds by sending purchase order details in the response.

Response

NameTypeDescription
OrderItemIdlongSeller Center order item ID
PurchaseOrderIdlongOMS order ID
PurchaseOrderNumberstringOMS order number
PackageIdstringShipping package ID
TrackingNumberstringPackage tracking number

Result sample

<?xml version="1.0" encoding="UTF-8"?>
<SuccessResponse>
  <Head>
    <RequestId></RequestId>
    <RequestAction>SetStatusToPackedByMarketplace</RequestAction>
    <ResponseType>OrderItems</ResponseType>
    <Timestamp>2013-08-27T14:44:13+0000</Timestamp>
  </Head>
  <Body>
    <OrderItems>
      <OrderItem>
        <OrderItemId>1</OrderItemId>
        <PurchaseOrderId>123456</PurchaseOrderId>
        <PurchaseOrderNumber>ABC-123456</PurchaseOrderNumber>
        <PackageId>MPDS-200131783-9800</PackageId>
        <ShipmentProvider>5</ShipmentProvider>
        <TrackingNumber>TRACK-1126935-4306</TrackingNumber>
      </OrderItem>
    </OrderItems>
  </Body>
</SuccessResponse>

Error messages

Error codeMessage
20E020: "%s" Invalid Order Item ID
21E021: OMS Api Error Occurred
23E023: "%s" Invalid Order Item IDs
24E024: "%s" Invalid Delivery Type
25E025: "%s" Invalid Shipping Provider
29E029: Order items must be from the same order
73E073: All order items must have status Pending or Ready To Ship. (%s)
91E091: You are not allowed to set the shipment provider and tracking number and the delivery type is wrong. Please use sent_to_warehous