Using simple & advanced Webhooks

How to use simple and advanced Webhooks to automate notifications when a Channel is processed

Webhooks are automated messages Plytix sends to a URL of your choice when a Channel is processed. They let your other systems get notified immediately and take action based on that information, without needing to constantly check Plytix for updates. This article covers both Simple Webhooks, available on every plan, and Advanced Webhooks, which let you customize the destination, structure, and headers of the data sent.

The webhooks in this article are outgoing: Plytix sends a notification to another system when a Channel finishes processing. They’re different from Webhook received Automations, which are incoming and let an external system, like your ERP, send product updates into Plytix. To set those up, see Creating & managing Automations.

Setting up a simple Webhook

To set up a webhook:

  1. Log in to your Plytix account.
  2. Go to the settings of the Channel you want to receive external updates about.
  3. Look for the Webhook section and click the option to create a new webhook.
  4. Enter a Request URL, this is where Plytix sends the webhook data.
  5. Save your webhook configuration.

Technical information

  • Request URL: the URL you provide, where Plytix sends the webhook data.
  • Method: Plytix uses the POST method to send webhook data.
  • Request Body: sent in JSON format. Example structure:
{
  "channel_name": "Example channel",
  "channel_processing_status": "success",
  "channel_url": "https://pim.plytix.com/example-channel",
  "feed_url": "https://pim.plytix.com/example-channel/feed",
  "processed_products": 452
}

The webhook payload always includes four pieces of information, plus a fifth conditional one:

  1. channel_name: the name of the processed Channel.
  2. channel_url: the URL of the Channel in Plytix.
  3. channel_processing_status: the status of the Channel processing (e.g. success).
  4. processed_products: the number of products processed in the Channel.
  5. feed_url: the URL of the file containing the products, only included if the Channel generates a feed.

A few things to keep in mind with Simple Webhooks:

  • The webhook method (POST) and the request body structure aren't customizable in the basic setup.
  • Make sure your endpoint URL is secure and capable of handling POST requests from Plytix.
  • Your endpoint should be able to process the JSON payload described above.

Testing your simple Webhook

Plytix provides a Test Webhook feature that sends a test payload to your specified URL, so you can confirm your endpoint is set up correctly before activating it for real Channel processing events.

Use cases for simple Webhooks

  • Trigger email notifications when a Channel is processed.
  • Update external dashboards or reporting tools with real-time Channel processing data.
  • Kick off follow-up processes in other systems based on successful Channel processing.
  • Log Channel processing activity in external databases or monitoring tools.

These use cases are easy to set up by connecting Simple Webhooks with tools like Zapier, Make, ActiveCampaign, HubSpot, or Parabola.

Check our tutorials for connecting Plytix Webhooks with Zapier and Make.

Simple Webhooks don’t support customizing the method or payload structure. If you need that, like modifying headers or changing the payload structure, see Advanced Webhooks below, or contact your Account Manager about your specific use case.

What are advanced Webhooks?

Advanced Webhooks let you customize not just the destination of your webhook notifications, but also the structure of the data sent and the HTTP headers used in the request. This gives you full control over how your product data interacts with the rest of your tech stack.

Setting up an advanced Webhook

  1. Log in to your Plytix account.
  2. Go to the Settings of the Channel you want to create a webhook for.
  3. Look for Webhook Settings.
  4. You'll see a form with several customizable fields.

Customizable fields

1. Webhook URL

Enter the URL where Plytix should send the webhook data. This should be an endpoint capable of receiving POST requests.

Example: https://your-service.com/webhook-endpoint

2. Custom Headers

Add custom HTTP headers to your webhook request, useful for authentication or telling the receiving service how to handle the data.

By default, Plytix includes:

  • Accept: application/json
  • Content-Type: application/json

Add more headers as needed by clicking Add custom header.

3. Request Body

The request body is fully customizable. Structure the JSON payload to match your receiving service's requirements, using variables that Plytix replaces with actual values when the webhook triggers.

Available variables:

  • $channel_name: the name of the processed Channel.
  • $channel_processing: the status of the Channel processing.
  • $channel_url: the URL of the Channel in Plytix.
  • $feed_url: the URL of the generated feed.
  • $products: the number of processed products.

Example custom body:

{
  "channel_name": "$channel_name",
  "channel_processing_status": "$channel_processing",
  "channel_url": "$channel_url",
  "feed_url": "$feed_url",
  "processed_products": "$products"
}

Testing your advanced Webhook

After setting up your advanced webhook, click Test Webhook to send a test payload. Check your receiving endpoint to confirm it's receiving and processing the data correctly, then make any necessary adjustments to your configuration or endpoint.

Use cases for advanced Webhooks

The flexibility of Advanced Webhooks supports direct integration with tools that require specific call configurations. A few examples:

  • Task management tools: automatically create or update tasks in Asana, Trello, or Monday.com when products are processed or ready. For example, create a new Trello card every time a Channel processes successfully, with details on the number of products processed.
  • Database synchronization with ERPs or CRMs: trigger a sync in your ERP whenever a Channel is processed, keeping inventory levels current.
  • Instant notifications in communication platforms: post real-time alerts to Slack or Microsoft Teams, or send an email, whenever a feed is updated, including the feed URL and product count.
  • Automated quality control: automatically create a high-priority support ticket if the number of processed products falls below a threshold.
  • Marketing automation: notify your email marketing tool when new products are added, triggering a showcase campaign.
  • Custom analytics and reporting: feed processing data into a custom dashboard tracking product readiness across sales Channels.
  • Inventory management: update stock levels in your warehouse management system based on successful Channel processing.

Frequently Asked Questions

Simple Webhooks send a fixed JSON payload by POST to a URL you provide. Advanced Webhooks let you customize the destination, headers, and payload structure using dynamic variables.

Webhooks are available on Pro and Enterprise plans. Contact your Account Manager for access.

No. The feed_url field is only included if the Channel generates a feed. The other four fields (channel_name, channel_url, channel_processing_status, and processed_products) are always included.

Yes. Both Simple and Advanced Webhooks include a Test Webhook option that sends a test payload to your endpoint.