Shopify → SAP Business One
Apps Required
Detects newly created Shopify orders on a scheduled run every 3 minutes.
Searches SAP sales orders by external reference (NumAtCard) to prevent duplicate order creation.
Continues processing only when no matching SAP sales order is found.
Calls geocoding through HTTP to convert the Shopify billing and shipping address into geo-coordinates.
Retrieves active warehouses and their stored location coordinates from SAP Business One.
Builds destination waypoints from warehouse coordinates for distance and duration calculation.
Uses HTTP route matrix API to calculate distance and travel duration from customer location to each warehouse.
Maps route matrix outputs to corresponding warehouse codes for inventory allocation scoring.
Splits order line items so each SKU can be processed independently for stock allocation.
Queries SAP item warehouse collections for each SKU to retrieve in-stock and committed quantities.
Merges stock availability and warehouse distance data into a unified product-wise allocation input.
Uses OpenAI to allocate order quantities by warehouse based on nearest distance first and available stock constraints.
Parses AI response into structured JSON and aggregates final allocation lines.
Finds SAP Business Partner CardCode using Shopify customer email for sales order creation.
Creates SAP sales order with allocated warehouse lines, quantities, prices, and billing and shipping addresses from Shopify.
| Modules | Trigger |
|---|---|
| Products updated | On products updated in Shopify. |
| New Abandoned Checkout | Triggers when a new abandoned checkout is created in Shopify. |
| New Company Created | Triggers when a new company is created in Shopify. |
| New customers created | On new customers created in Shopify. |
| New products created | On new products created in Shopify. |
| Customers updated | On customers updated in Shopify. |
| New orders created | On new orders created in Shopify. |
| New Company Location Created | Triggers when a new company location is created in Shopify. |
| New Refund Created | Triggers when a new refund is created for a Shopify order. Only fires for orders that have at least one refund with one or more refund line items. |
| Orders Cancelled | Triggers when an order is cancelled in Shopify. Only fires for orders where cancelledAt is not null. |
| New Company Location Created | Triggers when a new company location is created in Shopify. |
| New Return Created | Triggers when a new return is created for a Shopify order. Only fires for orders that have at least one return. |
Automatically allocates stock from the nearest eligible warehouses to reduce shipping distance and improve fulfillment efficiency.
1
2
Uses AI rules to prioritize nearest warehouses, handle split allocations, and maximize available stock usage.
Prevents duplicate SAP order creation by validating existing sales references before processing.
3
1
Automatically allocates stock from the nearest eligible warehouses to reduce shipping distance and improve fulfillment efficiency.
2
Uses AI rules to prioritize nearest warehouses, handle split allocations, and maximize available stock usage.
3
Prevents duplicate SAP order creation by validating existing sales references before processing.
Common questions about this automation template.
Automate smarter with an AI-native platform designed for the way mid-market businesses really work.