Order Process Flow
flowchart LR
A["Seller makes a create request to the **Common Label Barcode Request** service (createCommonLabel)"]
B["Seller makes a request to the **Retrieve Common Label** service and receives the label (getCommonLabel)"]
C{"Is the courier company **TEX** or **Aras Kargo**?"}
D["Seller sends **Picking** status (putUpdatePackage)"]
E["Seller sends **Invoiced** status (optional) (putUpdatePackage)"]
F["Shipment is completed with existing **shipmentpackageid** and **cargoTrackingNumber**"]
G["Seller retrieves the shipping label from the respective courier company"]
H{"Will it be cancelled due to **unavailability / out of stock**? (**shipmentpackageId**)"}
I["Cancellation request is made for the entire package (putUpdatePackage)"]
J["Package status becomes **Cancelled**. Seller can see the cancelled order via **getShipmentpackage** or **Webhook** service (getShipmentPackages)"]
K{"Will the entire order be cancelled? (**shipmentpackageId**)"}
L["Partial cancellation request is made (putUpdatePackage)"]
M["The current shipment package id gets invalid and its status is updated to **Cancelled**"]
N["New **shipmentpackageid** and **cargoTrackingNumber** are generated under the same **ordernumber** (getShipmentPackages)"]
O["New package details are retrieved from **getShipmentPackage** or **Webhook** service (getShipmentPackages)"]
P["Seller can receive package status updates via **getShipmentPackage** or **Webhook** service. (getShipmentPackages)"]
Q["Package is created"]
R["Seller retrieves the order from **getShipmentPackage** or **Webhook** service with the desired parameters. (getShipmentPackages)"]
S["Seller updates status to **Picking** (putUpdatePackage)"]
T["Seller updates status to **Invoiced** (optional) (putUpdatePackage)"]
U["Shipment is completed with existing **shipmentpackageid** and **cargoTrackingNumber**"]
V{"Will the package be split? (**shipmentpackageId**)"}
W["Split request is made (postSplitShipmentPackage)"]
X["New package details are retrieved from the **getShipmentPackage** service (getShipmentPackages)"]
Y["The current shipment package id gets invalid and its status is updated to **UnPacked**"]
Z["New **shipmentpackageid** and **cargoTrackingNumber** are generated under the same **ordernumber**"]
B --> F
Q --> R
H -->|NO| D
H -->|YES| K
L --> M
M --> N
N --> O
I --> J
D --> E
F --> P
K -->|YES| I
K -->|NO| L
R --> H
V -->|NO| S
V -->|YES| W
S --> T
W --> Y
U --> P
Y --> Z
Z --> X
X --> V
T --> U
R --> V
C -->|YES| A
C -->|NO| G
E --> C
A --> B
G --> F
O --> H
classDef style0 fill:#ffe6cc,stroke:#d79b00,stroke-width:2px
classDef style1 fill:#d5e8d4,stroke:#82b366,stroke-width:2px
class A,B,D,E,F,G,I,J,L,M,N,O,P,Q,R,S,T,U,W,X,Y,Z style0
class C,H,K,V style1
Updated 5 days ago