SetStatusToReadyToShip

Definition

Use this call to mark an order item as being ready to ship.

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

❗️

Prerequisite:

Call the SetStatusToPackedByMarketPlace API before calling SetStatusToReadyToShip.

Parameters

FieldTypeDescription
ActionstringSetStatusToReadyToShip
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.
UserIDlongThe 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). Mandatory.

Now only "dropship" is supported.
ShippingProviderstringValid shipment provider as looked up via GetShipmentProviders. Mandatory for drop-shipping.
TrackingNumberstringPackage tracking number. Mandatory in the case of drop-shipping.
SerialNumbermixedOnly applicable if the serial number feature has been enabled for platform and seller. Unique serial number for tracking order items, which can be specified as comma-separated list of serials or JSON array, in which case there must be exactly as many serials as there are OrderItemIds. Can also be specified as a JSON object where keys are order item ids and values are corresponding serial numbers. In this case the order item ID from OMS will be used as serial for items where it has not been explicitly specified. Optional.

Code sample

# SetStatusToReadyToShip cURL example
# to run, update Timestamp and recompute Signature
#
url = "https://api.sg.ali-lazada.com/"
get
data-urlencode Action=SetStatusToReadyToShip
data-urlencode OrderItemIds=[1]
data-urlencode DeliveryType=dropship
data-urlencode ShippingProvider=Aramax
data-urlencode TrackingNumber=123456789
data-urlencode Timestamp=2015-07-01T11:11+0000
data-urlencode [email protected]
data-urlencode Version=1.0
data-urlencode Signature=d4ff93cccb165295ed8357fe42082208b781a3b576bbb7d3fe7a624270b047b9
//init request with OrderItemId list, DeliveryType, ShippingProvider, TrackingNumber 
List<Long> orderItemIds = Arrays.asList(102612420L, 102612419L);
SetStatusToReadyToShip request = new SetStatusToReadyToShip(orderItemIds, DeliveryType.Dropship, "SkyNet - DS", "23873905618");
try {
  UpdateResponse response = request.execute();
  System.out.println("Update status succeed?" + response.getBody());
} catch (LazadaException e) {
  System.out.println(e.getResponseStr());
}

Response

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

NameTypeDescription
PurchaseOrderIdlongSeller Center identification.

Optional, please ignore it if your business scenario does not cover it.
PurchaseOrderNumberstringOrder number in the Seller Center.

Optional, please ignore it if your business scenario does not cover it.

Result sample

<?xml version="1.0" encoding="UTF-8"?>
<SuccessResponse>
  <Head>
    <RequestId></RequestId>
    <RequestAction>SetStatusToReadyToShip</RequestAction>
    <ResponseType>OrderItems</ResponseType>
    <Timestamp>2013-08-27T14:44:13+0000</Timestamp>
  </Head>
  <Body>
    <OrderItems>
      <OrderItem>
        <PurchaseOrderId>123456</PurchaseOrderId>
        <PurchaseOrderNumber>ABC-123456</PurchaseOrderNumber>
      </OrderItem>
    </OrderItems>
  </Body>
</SuccessResponse>

Error messages

Error codeMessageExplanation
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
26E026: "%s" Invalid Tracking Number
29E029: Order items must be from the same order
31E031: Tracking ID incorrect. Example tracking ID: "%s"
63E063: The tracking code %s has already been used
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
94E094: Serial numbers specified incorrectlySerial numbers were not specified according to one of the accepted formats for the SerialNumber parameter.
95E095: Invalid serial number format (%s)Serial numbers must be 1 to 26 characters; only latin letters and digits are allowed.
96E096: Duplicate serial number among order items (%s)Two or more items in the order would share a serial number.