Skip to content

Commit 68d7758

Browse files
authored
Update create-webhooks.md
1 parent e89acf7 commit 68d7758

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/pages/webhooks/create-webhooks.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Click **Add New Webhook** from the grid page to display the form for creating a
4141

4242
![New webhook](../_images/webhooks/new-hook-settings.png)
4343

44-
Developers creating apps for PaaS systems can create a `webhooks.xml` file in the `etc` directory of their custom module. The XML file has the following structure:
44+
On PaaS systems, you can create a `webhooks.xml` file in the `etc` directory of a custom module or in the Commerce `app/etc/webhooks.xml` file. The XML file has the following structure:
4545

4646
```tree
4747
|__ config
@@ -120,15 +120,15 @@ Admin field | XML attribute | Description
120120
--- | --- | ---
121121
| **Name** | `header.name` | The header name, in the same form as it will be sent. For example, `Authorization`.
122122
**Value** | - | The value of the header, such as `Bearer: <token>`.
123-
**Active** | - |Set to **No** to remove the header from the request.
123+
**Active** | header.remove | Set to **No** (SaaS) or `true` (PaaS) to remove the header from the request.
124124

125125
The `x-adobe-commerce-request-id` is added automatically to each request and is used to track the request in the system. You can filter logs by this ID to find all logs related to a specific request.
126126

127127
<InlineAlert variant="info" slots="text"/>
128128

129129
Secrets and other sensitive data should not be stored in the `webhooks.xml` file. Instead, use environment or configuration variables to relay this information.
130130

131-
### Dynamic header resolvers
131+
#### Dynamic header resolvers
132132

133133
<Edition name="paas" />
134134

@@ -180,9 +180,9 @@ Point to the `AddProductToCartResolver` class in the `header.resolver` attribute
180180

181181
The **Hook Rules** configuration panel or `rules` element allows you to define rules that trigger a webhook when certain conditions are met. [Create conditional webhooks](./conditional-webhooks.md) describes how to configure hook rules.
182182

183-
Field | Description
184-
--- | ---
185-
**Field** | The event field to be evaluated. For nested fields, use the dot-separated format, such as `data.order.product.id`.
186-
**Value** | The value to be compared.
187-
**Operator** | Defines which comparison operator to use. Examples include `equal`, `notEqual`, and `regex`.
188-
**Active** | Set to **No** to remove the rule from the request.
183+
Admin field | XML attribute | Description
184+
--- | --- | ---
185+
**Field** | `rule.field` | The event field to be evaluated. For nested fields, use the dot-separated format, such as `data.order.product.id`.
186+
**Value** | `rule.value` | The value to be compared.
187+
**Operator** | `rule.operator` | Defines which comparison operator to use. Examples include `equal`, `notEqual`, and `regex`.
188+
**Active** | `rule.remove` | Set to **No** (SaaS) or `true` (PaaS) to remove the rule from the request.

0 commit comments

Comments
 (0)