Body Required
Event to track
-
type string
-
category string
-
label string
-
message string
-
location_city string
-
location_country string
-
company string
-
value string
-
value_type string
-
source string
-
sales_channel string
-
user string
-
id string
-
items array[object]
POST /track
curl \
-X POST https://nomad.samarkand-global.cn/hawk/track \
-H "Content-Type: application/json" \
-d '{"type":"event","category":"order","label":"order_create_failed","message":"Couldnt create order","location_city":"London","location_country":"United Kingdom","company":"Apple, Inc","value":"https://some.url","value_type":"url","source":"odoo","sales_channel":"Onion (B2C)","user":"vessy","id":"ABC123","items":[{"item_name":"Can of beans","item_price":10.1,"item_quantity":1,"item_category":"Food","item_barcode":55001234567890,"item_currency":"EUR","item_brand":"Apple"}]}'
Request example
{
"type": "event",
"category": "order",
"label": "order_create_failed",
"message": "Couldnt create order",
"location_city": "London",
"location_country": "United Kingdom",
"company": "Apple, Inc",
"value": "https://some.url",
"value_type": "url",
"source": "odoo",
"sales_channel": "Onion (B2C)",
"user": "vessy",
"id": "ABC123",
"items": [
{
"item_name": "Can of beans",
"item_price": 10.1,
"item_quantity": 1,
"item_category": "Food",
"item_barcode": 55001234567890,
"item_currency": "EUR",
"item_brand": "Apple"
}
]
}
Response example (200)
{
"code": 42,
"message": "string",
"type": "string",
"data": {
"foobar": "string"
},
"connectorResponses": [
{
"input": "{\"product_id\": 12121}",
"operation_name": "GetProductOp",
"api": [
"string"
],
"http_request_raw_data": "-",
"code": 42,
"response": "string",
"response_en": "string",
"platform": "youzan",
"request_count": 1
}
]
}