Trigger Requests From a Webhook

Kevin Wilde

Last Update 13 gün önce

You can configure a request in APIEase to automatically run when a Shopify webhook event is received. This allows you to connect real-time store events such as order creation, customer profile updates, or cart changes to external APIs or logic-based flows.


You can add a webhook trigger to any request. See the List of Webhook Topics for a description of each webhook.

How to Add a Webhook Trigger

  1. In the APIEase admin, locate the request you want to trigger. If you are not already on the edit screen for that request, click the Edit icon next to it.

  2. In the Trigger column, click the plus icon to add a new trigger.

  3. Select the Webhook radio button.

  4. Use the dropdown to choose the Shopify webhook event that should activate this request. Available events include options like orders/create, customers/update, and carts/update.

Once saved, APIEase will execute the request every time that event is received from Shopify.

Example: Webhook-Triggered Flow Request

Suppose you want to start a Shopify Flow automation every time a cart is updated.


  1. In the APIEase admin, create a new request and select Flow as the request type.

  2. Choose your Shopify Flow template and fill in any required parameters.

  3. Add a webhook trigger by clicking the plus icon in the Trigger column.

  4. Select the Webhook option and choose the carts/update event.

Now, whenever a customer updates their cart, the webhook will trigger the request, and the Flow automation will begin. You can also access data from the webhook in the Flow input if needed.

Body From Webhook Payload

When your request has been triggered from a webhook the request will receive the webhook payload as it's body. 


If you want to extract values from that payload to use in query parameters, headers, or body content, see Mapping Webhook Parameters.


If for example you created an http request triggered by the discounts/create webhook your request would contain a body that looks like this:

If you also add body parameters to your request they will be added to your body. If for example you added a body parameter such as {"additional_body_parameter": "some_value"} to your request triggered by discounts/create your request would contain a body that looks like this:

You can also override webhook payload values if you add a body parameter with the same name as one of the webhook payload key value pairs. For example if you added a body parameter such as {"title": "Title that I prefer"} to your request triggered by discounts/create your request would contain a body that looks like this:

Notice that the "title" value is now "Title that I prefer". The original title value is also sent with the "_0" suffix: "title_0": "Automatic free shipping".

Was this article helpful?

0 out of 0 liked this article