SetStatusToPackedByMarketplace
Definition
Use this call to mark an order item as being packed.
Request URI: https://api.sellercenter.lazada.sg?Action=SetStatusToPackedByMarketplace
Parameters
Field | Type | Description |
---|---|---|
Action | string | SetStatusToPackedByMarketplace Name of the API that is to be called. Mandatory. |
Format | string | The response format, with XML as the default. Can be XML or JSON. Optional. |
Timestamp | datetime | The current time in ISO8601 format (e.g., Timestamp=2016-04-01T10:00:00+02:00 for Berlin). Mandatory. |
UserID | string | The ID of the user making the call. Mandatory. |
Version | string | The API version against which this call is to be executed. The current version is "1.0". Mandatory. |
Signature | string | The 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. |
OrderItemIds | array of long | List of oder items to be marked ready to ship. Comma separated list in square brackets. Mandatory |
DeliveryType | string | One 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). |
ShippingProvider | string | Valid 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 UserID=maintenance@sellercenter.net
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
Name | Type | Description |
---|---|---|
OrderItemId | long | Seller Center order item ID |
PurchaseOrderId | long | OMS order ID |
PurchaseOrderNumber | string | OMS order number |
PackageId | string | Shipping package ID |
TrackingNumber | string | Package 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 code | Message |
---|---|
20 | E020: "%s" Invalid Order Item ID |
21 | E021: OMS Api Error Occurred |
23 | E023: "%s" Invalid Order Item IDs |
24 | E024: "%s" Invalid Delivery Type |
25 | E025: "%s" Invalid Shipping Provider |
29 | E029: Order items must be from the same order |
73 | E073: All order items must have status Pending or Ready To Ship. (%s) |
91 | E091: You are not allowed to set the shipment provider and tracking number and the delivery type is wrong. Please use sent_to_warehous |
Updated almost 7 years ago