Shopify → SAP B1 Orders + Stock/Price Sync

Bidirectional e-commerce integration. Inbound: Shopify orders/create webhook → resolve/create Business Partner by email → post SAP B1 Sales Order with DocumentLines (ItemCode, Quantity, UnitPrice, WarehouseCode). Outbound: after posting, push item stock availability back to the store. Idempotency via U_WebOrderId UDF prevents duplicate orders on webhook retries.

Steps in this flow

  1. Shopify: orders/create Webhook
  2. Guard: U_WebOrderId
  3. SL Login (B1SESSION)
  4. SL: Lookup BP by Email
  5. BP Found?
  6. SL: Create BP (or generic B2C fallback)
  7. SL: POST /Orders
  8. SL: Read Item Stock
  9. Shopify: Push quantity_available

All templates