Webhook Trigger

Node Type

Description

A webhook is a way for applications to provide other applications real-time information, often in real-time. Initiate your automation when WhenThen receives a specific Webhook call; this allows any service in your tech-stack to initiate an automation.

Webhook Trigger

When to Use

Use when you want a system outside of WhenThen to trigger the start of an automation.

How to Use

  1. Copy the pre-populated Webhook URL from the side modal; configure your internal or external systems to call this URL to trigger this automation
  2. Adding Authentication is optional but strongly recommended. Your system sending this webhook will have to provide the correct Username and Password to successfully activate your Webhook Trigger. Username and password are predefined so it’s easier to use, however users can define their own
  3. Optionally, you may define a JSON object in your Webhook Trigger node. When configuring, please provide the JSON structure and include examples in the field for JSON Object
{
        "id": 1,
        "products": [
            {
                "discountPercentage": 8.71,
                "discountedPrice": 55,
                "id": 59,
                "price": 20,
                "quantity": 3,
                "title": "Spring and summershoes",
                "total": 60
            },
            {
                "discountPercentage": 3.19,
                "discountedPrice": 56,
                "id": 88,
                "price": 29,
                "quantity": 2,
                "title": "TC Reusable Silicone Magic Washing Gloves",
                "total": 58
            },
            {
                "discountPercentage": 13.1,
                "discountedPrice": 70,
                "id": 18,
                "price": 40,
                "quantity": 2,
                "title": "Oil Free Moisturizer 100ml",
                "total": 80
            },
            {
                "discountPercentage": 17.67,
                "discountedPrice": 766,
                "id": 95,
                "price": 930,
                "quantity": 1,
                "title": "Wholesale cargo lashing Belt",
                "total": 930
            },
            {
                "discountPercentage": 17.2,
                "discountedPrice": 994,
                "id": 39,
                "price": 600,
                "quantity": 2,
                "title": "Women Sweaters Wool",
                "total": 1200
            }
        ],
        "total": 2328,
        "totalProducts": 5,
        "totalQuantity": 10,
        "userId": 97
    }

Example Use Cases

  • When you cancel an order in your CRM system, you can configure your CRM system to send a webhook to WhenThen to refund the transaction to the user.
  • You take a phone order from a customer, you can configure your order management system to send a webhook to WhenThen to process a transaction associated with the order.