Goto: Integrations Tab
Register a webhook, and specify the URL and timeout that Nitro server should wait before giving up on the request (in seconds).
You can optionally specify a basic autorization that will be passed along in the headers.
Your webhooks will start to recieve the following POST requests for at the time of every matched contact.
POST https://webhook-address.com/endpoint
Content-Type: application/json
Authorization: Bearer <specified-token>
User-Agent: Mozilla/5.0 (compatible; NitroCommerce/2.1; +https://nitrocommerce.ai)
{
"medium": "matched",
"contact": "+918505850022"
"type": "PHONE/EMAIL",
"date": "2024-02-12",
"org_id": "your-org-id",
"last_addtocart": "<product_url>",
"last_view": ["<product_url_1>", "<product_url_1>", "<product_url_1>"]
}
Where:
contact: email or phone of the contact detected.
type: string from one of {PHONE,EMAIL}
date: yyyy-mm-dd formatted date
org_id: your organisation ID at Nitro.
(The above 4 fields are always sent)
Along with these, the following fileds will be sent, depending on what data Nitro has (depending on deep integration).
last_addtocart: Product URL of the last product that user has added to cart.
last_view: Product URLs of last 3 viewed products by the user.
Another trigger that you can use to capture data is via export on event stream. This data will be sent to specifed endpoint when any activity happens by the user at your webapp.
POST https://webhook-address.com/endpoint
Content-Type: application/json
Authorization: Bearer <specified-token>
User-Agent: Mozilla/5.0 (compatible; NitroCommerce/2.1; +https://nitrocommerce.ai)
{
"medium": "event",
"contact": "+918505850022"
"type": "PHONE/EMAIL",
"date": "2024-02-12",
"org_id": "your-org-id",
"event": "addtocart/view/buy"
}