Skip to navigation

Webhooks

Receive real-time notifications when prices change

When you subscribe to price tracking for a product, you can receive webhook notifications whenever the price changes. Use webhooks to alert your users about deals, update your UI, or trigger other actions in real-time.

Setup

Configure your webhook endpoint in the Channel3 dashboard. Once configured, Channel3 will send POST requests to your endpoint whenever a tracked product’s price changes.

Getting started with price tracking

Start tracking a product

import { Channel3 } from "@channel3/sdk";
const client = new Channel3();
await client.priceTracking.start({
canonical_product_id: "prod_abc123",
webhook_url: "https://your-app.com/webhooks/channel3",
});

Stop tracking

await client.priceTracking.stop({
canonical_product_id: "prod_abc123",
});

List active subscriptions

const subscriptions = await client.priceTracking.listSubscriptions();
console.log(subscriptions);

Get price history

const history = await client.priceTracking.getHistory("prod_abc123");
console.log(history);