This API allows you to send Buy Event details from your Thank You page to Nitro for tracking
purchases.
POST https://t.makehook.ws/jsv1/public/custom/<org_id>/<nitro_id>/event/buy
| Field | Type | Description |
|---|---|---|
| page | string | URL of the Buy/Thank You page. |
| checkout_url | string | URL of the checkout page from where the order was placed. |
| order_id | string | Unique identifier for the order. |
| items | array | List of purchased items. |
| product_id | string | Product identifier for the purchased item. |
| price | float | Price of the purchased product. |
| cart_value | float | Total value of the cart/order. |
| h | string | Your store domain |
| l | string | Current page URL where the event is triggered (Thank You page URL). |
'https://t.makehook.ws/jsv1/public/custom/<org_id>/<nitro_id>/event/buy' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"page": "<your_buy_page_url>",
"checkout_url": "<your_checkout_url>",
"order_id": "<order_id>",
"items": [
{
"product_id": "<line_item_product_id>",
"price": <product_price_float>
}
],
"cart_value": <cart_value_float>,
"h": "<your_domain>",
"l": "<current_page_url>"
}'``