0. Order Process Flow
Basic Order Flow
flowchart LR
A["Seller sends **Picking** status (putUpdatePackage)"]
B["Seller sends **Invoiced** status (optional) (putUpdatePackage)"]
C["Seller makes a request to the **Get Common Label** service and receives the label (getCommonLabel)"]
D["Shipment is completed with existing **shipmentPackageId** and **cargoTrackingNumber**"]
E["Seller can receive package status updates via **getShipmentPackages **service or **Webhook** model. (getShipmentPackages)"]
F{"What is cargo carrier agreement? **Trendyol Pays** or **Seller Pays**?"}
G["Package is created"]
H["Seller retrieves the order from **getShipmentPackages** service or **Webhook** model with the desired parameters. (getShipmentPackages)"]
I["Seller sends **Invoiced** status (optional) (putUpdatePackage)"]
J["Seller sends **Picking** status (putUpdatePackage)"]
K["Seller sends **cargoSenderNumber** and cargo **providerCode** (putUpdateTrackingNumber)"]
L["Seller self- creates the **Common Label **without Trendyol API"]
M["Shipment is completed with **shipmentPackageId** and **cargoSenderNumber**"]
G --> H
F -->|Trendyol Pays| A
H --> F
A --> B
J --> K
F -->|Seller Pays| J
B --> C
K --> I
D --> E
C --> D
M --> E
I --> L
L --> M
classDef style0 fill:#ffe6cc,stroke:#d79b00,stroke-width:2px
classDef style1 fill:#d5e8d4,stroke:#82b366,stroke-width:2px
class A,B,C,D,E,G,H,I,J,K,L,M style0
class F style1
Seller Pays Detailed Order Flow
flowchart LR
A["Seller sends **Picking** status (putUpdatetPackage)"]
B["Seller sends **cargoSenderNumber** and cargo **providerCode** (putUpdateTrackingNumber)"]
C["Seller sends **Invoiced** status (optional) (putUpdatetPackage)"]
D["Seller self- creates the **Common Label **without Trendyol API"]
E["Shipment is completed with **shipmentPackageId** and **cargoSenderNumber**"]
F{"Will it be cancelled due to **unavailability / out of stock**? (**shipmentpackageId**)"}
G["Cancellation request is made for the entire package (putUpdatetPackage)"]
H["Package status becomes **Cancelled**. Seller can see the cancelled order via **getShipmentPackages** service or **Webhook** mdodel (getShipmentPackages)"]
I{"Will the entire order be cancelled? (**shipmentpackageId**)"}
J["Partial cancellation request is made (putUpdatetPackage)"]
K["The current shipment package id gets invalid and its status is updated to **Cancelled**"]
L["New **shipmentPackageId** is generated under the same **ordernumber** (getShipmentPackages)"]
M["Seller sends **cargoSenderNumber** and cargo **providerCode** for the new shipmentPackageIds (putUpdateTrackingNumber)"]
N["New package details are retrieved from **getShipmentPackages** or **Webhook** service (getShipmentPackages)"]
O["Seller can receive package status updates via **getShipmentPackages** service or **Webhook** model. (getShipmentPackages)"]
P["Package is created"]
Q["Seller retrieves the order from **getShipmentPackages** service or **Webhook** model with the desired parameters. (getShipmentPackages)"]
R["Seller updates status to **Picking** (putUpdatetPackage)"]
S["Seller updates status to **Invoiced** (optional) (putUpdatetPackage)"]
T["Shipment is completed with **shipmentPackageId** and **cargoSenderNumber**"]
U{"Will the package be split? (**shipmentpackageId**)"}
V["New package details are retrieved from the **getShipmentPackages** service or **Webhook** model (getShipmentPackages)"]
W["Split request is made (postSplitShipmentPackage)"]
X["Seller sends **cargoSenderNumber** and cargo **providerCode** for the new shipmentPackageIds (putUpdateTrackingNumber)"]
Y["The current shipment package id gets invalid and its status is updated to **UnPacked**"]
Z["New **shipmentPackageId** is generated under the same **orderNumber**"]
F -->|NO| A
F -->|YES| I
J --> K
K --> L
L --> M
G --> H
E --> O
I -->|YES| G
I -->|NO| J
Q --> F
U -->|NO| R
U -->|YES| W
R --> S
W --> Y
T --> O
Y --> Z
Z --> X
V --> U
S --> T
Q --> U
C --> D
D --> E
N --> F
P --> Q
X --> V
M --> N
B --> C
A --> B
classDef style0 fill:#ffe6cc,stroke:#d79b00,stroke-width:2px
classDef style1 fill:#d5e8d4,stroke:#82b366,stroke-width:2px
class A,B,C,D,E,G,H,J,K,L,M,N,O,P,Q,R,S,T,V,W,X,Y,Z style0
class F,I,U style1
Trendyol Pays Detailed Order Flow
flowchart LR
N["Package is created"]
O["Seller retrieves the order from **getShipmentPackage** service or **Webhook** model with the desired parameters. (getShipmentPackages)"]
N --> O
subgraph cancelFlow[" "]
direction TB
E{"Will it be cancelled due to **unavailability / out of stock**? (**shipmentpackageID**)"}
H{"Will the entire order be cancelled? (**shipmentpackageID**)"}
F["Cancellation request is made for the entire package (putUpdatePackage)"]
G["Package status becomes **Cancelled**. Seller can see the cancelled order via **getShipmentpackages** service or **Webhook** model (getShipmentPackages)"]
I["Partial cancellation request is made (putUpdatePackage)"]
J["The current shipmentpackageId gets invalid and its status is updated to **Cancelled**"]
K["New **shipmentPackageId** and **cargoTrackingNumber** are generated under the same **ordernumber** (getShipmentPackages)"]
L["New package details are retrieved from **getShipmentPackages** service or **Webhook** model (getShipmentPackages)"]
E -->|YES| H
H -->|YES| F --> G
H -->|NO| I --> J --> K --> L
L --> E
end
subgraph normalFlow[" "]
direction LR
A["Seller sends **Picking** status (putUpdatetPackage)"]
B["Seller sends **Invoiced** status (optional) (putUpdatetPackage)"]
C["Seller makes a request to the **Get Common Label** service and receives the label (getCommonLabel)"]
D["Shipment is completed with existing **shipmentPackageId** and **cargoTrackingNumber**"]
A --> B --> C --> D
end
subgraph splitFlow[" "]
direction TB
S{"Will the package be split? (**shipmentpackageId**)"}
P["Seller updates status to **Picking** (putUpdatetPackage)"]
Q["Seller updates status to **Invoiced** (optional) (putUpdatetPackage)"]
R["Shipment is completed with existing **shipmentPackageId** and **cargoTrackingNumber**"]
T["Split request is made (postSplitShipmentPackage)"]
V["The current shipmentpackageId gets invalid and its status is updated to **UnPacked**"]
W["New **shipmentPackageId** and **cargoTrackingNumber** are generated under the same **ordernumber**"]
U["New package details are retrieved from the **getShipmentPackages** service or **Webhook** model (getShipmentPackages)"]
S -->|NO| P --> Q --> R
S -->|YES| T --> V --> W --> U --> S
end
M["Seller can receive package status updates via **getShipmentPackages** service or **Webhook** model. (getShipmentPackages)"]
O --> E
E -->|NO| A
O --> S
D --> M
R --> M
style cancelFlow fill:none,stroke:none
style normalFlow fill:none,stroke:none
style splitFlow fill:none,stroke:none
classDef style0 fill:#ffe6cc,stroke:#d79b00,stroke-width:2px
classDef style1 fill:#d5e8d4,stroke:#82b366,stroke-width:2px
class N,O,A,B,C,D,F,G,I,J,K,L,M,P,Q,R,T,U,V,W style0
class E,H,S style1
Updated 5 days ago