How to Subscribe

Treez Webhooks

Treez Webhooks can notify a partner when updates happen to:

  • Customers
  • Customer Check-In
  • Inventory
  • Products
  • Tickets
  • Ticket Status

These various webhooks allow partners to get messages (callbacks), in real-time, whenever something related to respective aspects is created or modified. Let Treez call you!

Creating API Webhooks for Third-Party Partners

Step 1:

Navigate to Configurations > Config Page > Integration. Scroll down to ‘Webhook Integration’ and click v to expand the section.

Note: If you don’t see ‘Webhook Integration’, contact customer [email protected] to have it enabled.

Step 2:

Click + Add Client and fill out the fields.

Name: Choose a unique name to identify this partner.
Endpoint URL: Enter the endpoint URL provided by the partner.
Notifications: Select the API(s) you want to create the webhook for (you can select more than 1).

Step 3:

Click Test to confirm the endpoint URL is able to send and receive messages.

Test Passed: The URL is capable of sending/receiving messages.
Test Fail: The URL can’t send/receive messages. Check that it's entered correctly and try again. If you still don't pass, check with your partner that the URL is correct.

Step 4:

If the test passes, click Save to create the webhook. Now whenever something related to the respective aspects is created or modified you'll get a message at the endpoint URL.

Sample Content of the Sent Request

Test Event

{
  "method": "POST",
  "path": "/",
  "query": {},
  "client_ip": "44.225.61.188",
  "url": "https://f2d23d511963968506e313471a70f0f9.m.pipedream.net/",
  "headers": {
    "host": "f2d23d511963968506e313471a70f0f9.m.pipedream.net",
    "content-length": "122",
    "authorization": "Bearer CHQUBXBIFOJG26KFRLL0J3HC",
    "content-type": "application/json",
    "traceparent": "00-af62d55551418fb25b3e6f2f0f9efd12-882ac3b67d2adec7-01",
    "elastic-apm-traceparent": "00-af62d55551418fb25b3e6f2f0f9efd12-882ac3b67d2adec7-01",
    "tracestate": "es=s:1",
    "user-agent": "Apache-HttpClient/4.5.14 (Java/17.0.18)",
    "accept-encoding": "gzip,deflate"
  },
  "bodyRaw": "{\"test\":\"test\",\"dispensary_short_name\":\"partnersandbox3\",\"event_type\":[\"TICKET\"],\"ticket_status\":[],\"revenue_source\":null}",
  "body": {
    "test": "test",
    "dispensary_short_name": "partnersandbox3",
    "event_type": [
      "TICKET"
    ],
    "ticket_status": [],
    "revenue_source": null
  }
}