Bitfreighter EDI Events API
### Typical Load lifecycle (Shipper) ```mermaid sequenceDiagram participant S as Shipper participant B as Bitfreighter participant C as Carrier S-)B: EDI 850 B-)C: PurchaseOrder (webhook) S-)B: EDI 204 B-)C: LoadTender (webhook) C-)B: Accept (API call) B-)S: EDI 990 loop C-)B: ShipmentStatusUpdate (API call) B-)S: EDI 214 end opt C-)B: Invoice (API call) B-)S: EDI 210 end ``` ### Typical Load lifecycle (Carrier) ```mermaid sequenceDiagram participant C as Carrier participant B as Bitfreighter participant S as Shipper S-)B: PurchaseOrder (API Call) B-)C: EDI 850 S-)B: LoadTender (API Call) B-)C: EDI 204 C-)B: EDI 990 B-)S: Accept (webhook) loop C-)B: EDI 214 B-)S: ShipmentStatusUpdate (webhook) end opt C-)B: EDI 210 B-)S: Invoice (webhook) end ``` ## Events ### Carrier Events - [`LoadTender`](#tag/EDI-Events/paths/LoadTender/post) - Motor Carrier Load Tender (EDI 204, B2A-01 = 00 or 02) - [`LoadTenderUpdate`](#tag/EDI-Events/paths/LoadTenderUpdate/post) - Motor Carrier Load Tender Update (EDI 204, B2A-01 = 04 or 05) - [`LoadTenderCancel`](#tag/EDI-Events/paths/LoadTenderCancel/post) - Motor Carrier Load Tender Cancellation (EDI 204, B2A-01 = 01 or 03) ### Shipper Events - [`Accept`](#tag/EDI-Events/paths/Accept/post) - Accept Load Tender (EDI 990) - [`Decline`](#tag/EDI-Events/paths/Decline/post) - Decline Load Tender (EDI 990) - [`Invoice`](#tag/EDI-Events/paths/Invoice/post) - Invoice (EDI 210) - [`ShipmentStatusUpdate`](#tag/EDI-Events/paths/ShipmentStatusUpdate/post) - Carrier Shipment Status Message (EDI 214) - [`AppointmentUpdate`](#tag/EDI-Events/paths/AppointmentUpdate/post) - Shipment Appointment Update (EDI 214) ### Supplier Events - [`PurchaseOrder`](#tag/EDI-Events/paths/PurchaseOrder/post) - Purchase Order (EDI 850) ### Typical ShipmentStatusUpdate (214) events sequence ```mermaid sequenceDiagram participant O as Origin participant A as Stop 1 participant B as Stop 2 O ->> A: {"status": "estimate", "stop": {"sequence_number": 1}} opt O ->> A: {"status": "delay", "reason": "AH", "stop": {"sequence_number": 1}} end loop O ->> A: {"status": "enroute", "location": { ... }} end A ->> A: {"status": "arrived", "stop": {"sequence_number": 1}} A ->> A: {"status": "departed", "stop": {"sequence_number": 1}} A ->> B: {"status": "estimate", "stop": {"sequence_number": 2}} opt A ->> B: {"status": "delay", "reason": "AH", "stop": {"sequence_number": 2}} end loop A ->> B: {"status": "enroute", "location": { ... }} end B ->> B: {"status": "arrived", "stop": {"sequence_number": 2}} B ->> B: {"status": "departed", "stop": {"sequence_number": 2}} ```