Skip to content

Commit

Permalink
Add info on flow skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
Isengo1989 committed Oct 18, 2023
1 parent 597a5bd commit 8ff5e19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions guides/integrations-api/general-concepts/request-headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```

0 comments on commit 8ff5e19

Please sign in to comment.