SAP B1 ↔ 3PL/WMS (Order Out, Ship-Confirm → Delivery Note)

Outbound sales order (or pick list) exported to the WMS; on WMS ship-confirm, post a SAP B1 Delivery Note based on the source order via BaseEntry/BaseLine/BaseType=17, carrying batch/serial numbers on the lines and supporting partial shipments. Idempotent per WMS shipment id.

Steps in this flow

  1. Order Released (SAP B1)
  2. SL Login (B1SESSION)
  3. GET /Orders (lines + LineNum)
  4. Export Order → WMS
  5. WMS Ship-Confirm Webhook
  6. Guard: WMS Shipment
  7. Map → BaseType=17 lines (+Batch/Serial)
  8. POST /DeliveryNotes (base=Order)
  9. Retry on 401 (re-login)
  10. Notify: Delivery Posted

All templates