Shopify → SAP Business One
Apps Required
The workflow's first flow triggers automatically every three minutes, polling Shopify for newly created return requests. Each detected return—including the order ID, customer ID, line item SKUs, quantities, and unit prices—is forwarded so a matching return request can be created in SAP Business One.
The Shopify order ID is used to look up the original sales order in SAP Business One, retrieving tax codes and other document details needed for the return request. A second search checks if a return request with the same Shopify order reference already exists. A decision node then ensures the return request is only created when no duplicate is found.
When no existing return request is found, a new return request is created in SAP Business One. It includes the Shopify customer ID as the card code, the Shopify order ID as the external reference number, the return date, and all line items with their item codes, quantities, unit prices, and tax codes from the original sales order.
The workflow's second flow triggers every three minutes, polling SAP Business One for newly created credit notes. Once the back-office team verifies returned items in the warehouse and generates a credit memo in SAP, this trigger picks it up and initiates the refund process in Shopify.
Using the Shopify order reference from the credit note, the workflow retrieves the full Shopify order—including transaction IDs, payment gateway, and line item details. A refund is then created on the Shopify order with the correct transaction amount, gateway, line item quantities, and a REFUND transaction type, completing the return cycle for the customer.
| 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. |
Shopify returns are automatically converted into SAP return requests, and once the credit note is issued, the refund flows back to Shopify—closing the loop without manual intervention.
1
2
A search-and-decision gate checks SAP for an existing return request before creating a new one, ensuring each Shopify return is processed exactly once.
Refunds are only triggered after the back-office team confirms item receipt and creates a credit memo in SAP, preventing premature refunds on unverified returns.
3
4
By automating both the return request creation and the refund issuance, customers receive their refunds as soon as the warehouse confirms receipt—reducing resolution time and support inquiries.
1
Shopify returns are automatically converted into SAP return requests, and once the credit note is issued, the refund flows back to Shopify—closing the loop without manual intervention.
2
A search-and-decision gate checks SAP for an existing return request before creating a new one, ensuring each Shopify return is processed exactly once.
3
Refunds are only triggered after the back-office team confirms item receipt and creates a credit memo in SAP, preventing premature refunds on unverified returns.
4
By automating both the return request creation and the refund issuance, customers receive their refunds as soon as the warehouse confirms receipt—reducing resolution time and support inquiries.
Common questions about this automation template.
Automate smarter with an AI-native platform designed for the way mid-market businesses really work.