Flipkart Hold Order Flow
Create Order Flow
if Flipkart hold status is true:
create the order with orders.onHold = 1 and "orderStatus" : "onhold",
set order_items.lineItemOrderStatus= "ONHOLD" and order_items.status= "ONHOLD"
if Flipkart hold status is false:
if dispatch after date is greater than the current date, create orders on hold.
create the order with orders.onHold = 1 and "orderStatus" : "onhold",
set order_items.lineItemOrderStatus= "CREATED" and order_items.status= "ONHOLD"
Hold Orders Cron
Get channels on the basis of integration type(6)
Get onhold orders for these channels
push orders with lineItemOrderStatus = created and lineItemOrderStatus = onhold in two different task queues
For Orders with hold flag true on Flipkart(lineItemOrderStatus = onhold)
if dispatch after date is less than the current date fetch the order status from Flipkart, if Flipkart hold flag is false, then update the order
Call unhold order api
For Orders with dispatch after date greater than the current date and Flipkart hold flag = false(lineItemOrderStatus = created)
If dispatch after date is less than the current date, Call unhold order api.
API URL and request for unhold order in DB and on unicommerce
curl --location --request POST 'https://wms.eshopbox.com/api/orders/unhold' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik1UaERRamxDUlRJelJVUTRRVU0wUVRJNU1FSkVOVGszUVVFeU5qVXdSa1JDTmpBeU16WTROQSJ9.eyJodHRwczovL2FwcERhdGEiOnsiYXBwQ2xpZW50SWQiOiI5ZTdmNGNmMjdmY2E0MGZkYzVlZThmMzcyM2Y5YmU2NyJ9LCJodHRwczovL2FjY291bnRTbHVnIjoidGVhbGFuZHRlcnJhIiwiaHR0cHM6Ly91c2VyRGV0YWlscyI6eyJpZCI6NzM2LCJ1c2VyVHlwZSI6ImRlZmF1bHQiLCJlbWFpbCI6ImFwcHVzZXIxOEBlc2hvcGJveC5jb20ifSwiaHR0cHM6Ly9hY2NvdW50cyI6WyJ0ZWFsYW5kdGVycmEiXSwiaHR0cHM6Ly93YXJlaG91c2VXb3Jrc3BhY2VzIjpbXSwiaHR0cHM6Ly93YXJlaG91c2VzIjpbXSwiaHR0cHM6Ly9wYXJ0bmVycyI6W10sImlzcy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: application/json' \
--header 'Cookie: did=s%3Av0%3A9dc2b090-d88a-11ea-bf8e-2be3282261af.jWAEH5lHazWhjl7WXySnPJJWeqDqaQRv%2B8xBgdMvI1Y; did_compat=s%3Av0%3A9dc2b090-d88a-11ea-bf8e-2be3282261af.jWAEH5lHazWhjl7WXySnPJJWeqDqaQRv%2B8xBgdMvI1Y' \
--data-raw '{
"externalChannelId": "CH0980",
"externalShipmentId": "OD222095964208545000-980-432",
"customerOrderNumber": "test-order-1",
"items": [
{
"itemId": "FNDFT7JKZTDRG55Q",
"quantity": "1",
"lineItemSequenceNumber": "22209596420854500",
"orderItemId": "22209596420854500-19241024"
}
]
}'
Dimensions changes:
https://docs.google.com/spreadsheets/d/1IRogueag0UjMZFsyucyCu_y9HfGRDoy0e1r9YcreUWI/edit?usp=sharing