Fleet Route App → SAP B1 Proof-of-Delivery & Route Cash

Driver route outcomes post back to SAP Business One: successful POD (signature/photo, geo-stamp) writes to UDFs on the delivery note and records driver cash collection via IncomingPayments against a cash-route clearing account; failed delivery creates a Return based on the delivery. Idempotent per stop event.

Steps in this flow

  1. Route App: Stop Outcome Webhook
  2. Guard: Stop/POD Event
  3. SL Login (401→relogin, retry once)
  4. SL: PATCH /DeliveryNotes (POD UDFs)
  5. Switch: Stop Outcome
  6. SL: POST /IncomingPayments (route cash)
  7. SL: POST /Returns (failed delivery)
  8. Ack → Route App

All templates