From 8ff5e198efef852db493d606c43bd447abf3638f Mon Sep 17 00:00:00 2001 From: Micha Hobert Date: Wed, 18 Oct 2023 11:18:04 +0200 Subject: [PATCH] Add info on flow skipping --- .../integrations-api/general-concepts/request-headers.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/guides/integrations-api/general-concepts/request-headers.md b/guides/integrations-api/general-concepts/request-headers.md index b2ba38066..23021f80e 100644 --- a/guides/integrations-api/general-concepts/request-headers.md +++ b/guides/integrations-api/general-concepts/request-headers.md @@ -30,3 +30,12 @@ Shopware 6 allows developers to define inheritance \(parent-child\) relationship POST /api/search/product --header 'sw-inheritance: 1' ``` + +## sw-skip-trigger-flow + +Flows are an essential part of Shopware and are triggered by events like the creation of a customer. When migrating from another ecommerce platform to shopware, you might import hundreds of thousands of customers via the sync API. In that case, you don't want to trigger the `send email on customer creation` flow. To avoid this behavior, you can pass the `sw-skip-trigger-flow` header. + +```bash +POST /api/_action/sync +--header 'sw-skip-trigger-flow: 1' +```