Overview

Introduction

Setting up the webhook allows Dema to receive data from Centra in real-time.

Available Data Types

  • Orders

Prerequisites

To use Centra webhook with our platform, you need to setup a plugin with the necessary permissions within your Centra store.

Step-by-Step Integration Guide

1

Initial Steps

For the webhook setup, a webhook URL and endpoint secret are required to securely access your Centra data.

  1. From the left panel, navigate to System ⟩ Stores.

  2. Click the row (or the View link) for the Store you want to add the webhook to. The Store details will open to the right.

  3. Scroll down to the Plugins section and click the “+ Add plugin method” button.

  4. Select “Active” from the Status dropdown.

  5. Enter a name for the plugin, preferably “DEMA Webhook”, in the Plugin name field.

  6. Choose “Centra Webhook” from the Plugin dropdown. This will add some more fields to the form.

2

Configuring the Webhook

  1. In the Webhook URL field, enter the following URL:
https://centra-webhook.dema.ai/$FRONTEND_ID

where $FRONTEND_ID is the unique ID provided by DEMA for your account.

  1. For the Endpoint secret enter the secret key provided by DEMA (replacing the pre-filled value).

  2. From the Version dropdown, choose “Integration API”.

  3. Under Event triggers, choose “Yes” for Order, and “No” for others.

  4. Leave the default values for all other fields.

  5. Click on the Save button (top right) when you’re ready.

Troubleshooting and Support

If you face any challenges during the webhook setup process or have any questions about the setup, our support team is ready to assist you.

Additional Resources

For further details on managing your Centra account and utilizing the API, refer to the Centra Documentation.