Skip to content
Help

Custom integration: your own website through the API

Last updated

The Custom Integration channel lets your own website, or any platform your developer builds on, read your stock through the WatchTraderHub REST API, hear about changes through webhooks, and send orders back as sales. It needs the Business plan (€249 a month, or €199 a month billed yearly) and a developer to build your side. Everything technical is in the API documentation.

Before you start

  • The Business plan.
  • Owner or admin rights in your WatchTraderHub account. Sales reps cannot open the channel.
  • A developer who will build the website side, and an HTTPS address on your site for webhooks.

Set it up

  1. Open Channels, Custom integration. Under Set up Custom Integration, press Generate API key. The key is shown once: copy it and give it to your developer.
  2. Add your webhook URL if you have one, or press Skip this step and add it later. When you save a URL, WatchTraderHub creates a signing secret, also shown once, so your site can check that each message came from WatchTraderHub.
  3. Set the markup and rounding, choose the events your site should hear about, and decide whether to start in test mode (on unless you change it).
  4. Choose what your site shows: tick Custom Integration under Sales channels on a piece's form, or select several pieces and choose List to channel.

How it works day to day

  • API key. One key for the integration. Regenerate key on the Settings tab stops the old key at once and shows the new one once.
  • Webhooks. When a piece is published, updated, taken off sale, sold or back in stock, WatchTraderHub sends a message to your webhook URL. You choose which of these events to receive. A message your site does not accept is tried again, up to 8 times over about 28 hours.
  • Deliveries. The Deliveries tab shows your last 50 webhook messages and whether each arrived. Press Replay on a failed one to send it again.
  • Orders. Your site sends each order to WatchTraderHub through the API. It is matched to a piece by its SKU, recorded as a sale and taken off your other channels, the same as an eBay or Shopify order. An order that matches nothing waits in Sales, Channel orders.
  • Test mode. While test mode is on, webhook messages are marked as tests. It uses the same key and webhook URL, and webhooks still go out, so your developer can tell test traffic from live traffic.
  • Pause. Switching Integration enabled off makes the API refuse requests and stops webhooks. Removals made while it is paused are sent when you switch it back on.

Limits and what it does not do

  • Business plan and above only.
  • One integration and one API key per account. There are no separate test keys.
  • WatchTraderHub does not build or host your website. Your developer builds the side that reads the API.
  • The Deliveries tab shows the last 50 messages and the result of each, not the full reply from your site.

Common questions

Do I need a developer?

Yes. The integration is an API and webhooks. Someone has to build the part of your website that reads them.

I lost the API key. What now?

Press Regenerate key on the Settings tab and give the new key to your developer. The old key stops working at once.

Where are the endpoints, the event list and the signature check?

In the API documentation: start with the quickstart, then webhooks and the event catalog.