Lazada Shipping Labels Explanation
The idea of the flow is to capture how and when to pull down labels from Lazada and what this means for the order logic flow.
Generally there are 3 major steps for working with the Lazada orders
- GetOrders
- GetDocument
- SetStatusToReadyToShip
There should be no difference to how we handle an order besides the information we are to pass in the SetStatusToReadyToShip > "DeliveryType"
- Get the orders from Lazada and store them on "Pending"
- Wait for the appointed time in the Account for Cancellation possibilities and process the orders as on their relevant statuses
- "ReadyForShipping" - if everything is ok with the order
- "Incomplete" - if there are issues with the order or it has an out_of_stock item (out_of_stock is to be moved to the RFS status as well with raising an OOS flag on Order level as well as on Order Item)
- "Cancelled" - if the order has been cancelled in the time frame given
- Get the Shipping Labels from Lazada with GetDocument > "DocumentType: shippingLabel" and store them on "order_item_line" level in Hemisphere for the relevant order/item. The labels are to be stored in a web accessible folder so a URL can be built pointing to the downloaded file
- On "update_shipping" flag = 1 send a SetStatusToReadyToShip with the relevant information for "DeliveryType" and "ShippingProvider" from the Account. (Requirement: Please return an error and store it on order level if "drop-shipping" is the selected method and no "TrackingNumber" is provided)
- Store in a Manifest table in one record all the "orderItemIDs" marked on RTD for the day. Use GetDocument > "DocumentType: carrierManifest" to get a daily Manifest for those IDs (Hint: there is such a table for Myntra - I would suggest / prefer if that one is reworked to have an account field as well and is called "marketplace_manifests"). The manifest is to be stored in a web accessible folder as well so a URL can be built pointing to the downloaded file