Skip to main content

Category

v1

Description

This webhook triggers a notification whenever a new L3 category is created in the Fynd Platform's admin panel. It serves as a real-time update to keep relevant stakeholders informed about the addition of a new category

Supported Type

  • Create
  • Update

Payload

Create

{
"event": {
"id": "CSusRp04wJevNZ2E57QaryjFOyKmNJP9pbpKGaNzwJ8=",
"name": "category",
"type": "create",
"version": "1",
"category": "global",
"trace_id": [
"silverbolt.1c19502c-3fbb-11ed-8e66-32783d21b767"
],
"created_timestamp": 1664430838120
},
"payload": {
"category": {
"id": "633532f674c3cf07437ccd3d",
"_id": "633532f674c3cf07437ccd3d",
"uid": 1876,
"name": "Movies29820221123827",
"slug": "movies29820221123827",
"level": 3,
"media": {
"logo": "https://hdn-1.addsale.com/addsale/category/pictures/square-logo/original/fZWzWck9e-logo.png",
"portrait": "https://hdn-1.addsale.com/addsale/category/pictures/portrait-banner/original/2m9pRJzTY-banner.png",
"landscape": "https://hdn-1.addsale.com/addsale/category/pictures/landscape-banner/original/5dFKqxrro-landscape.png"
},
"tryouts": [],
"priority": 21,
"synonyms": [
"Bedfordshire",
"Southeast",
"Dodge",
"Lamborghini"
],
"hierarchy": [
{
"l1": {
"uid": 1874,
"name": "Home29820221123555",
"slug": "home29820221123555"
},
"l2": {
"uid": 1875,
"name": "Beauty29820221123369",
"slug": "beauty29820221123369"
},
"l3": 1876,
"l1_slug": "home29820221123555",
"l2_slug": "beauty29820221123369",
"l3_slug": "movies29820221123827",
"is_active": true,
"department": {
"uid": 358,
"name": "Outdoors23820221915505"
}
}
],
"is_active": true,
"departments": [
{
"uid": 358,
"name": "Outdoors23820221915505"
}
],
"marketplaces": {}
}
},
"contains": [
"category"
]
}

Update

{
"event": {
"id": "rYQisTtdvIzJM+hP16pNqgt7gn/ZeyYhCijdjCbzrxQ=",
"name": "category",
"type": "update",
"version": "1",
"category": "global",
"trace_id": [
"silverbolt.1dd01cf2-3fbb-11ed-8e66-32783d21b767"
],
"created_timestamp": 1664430840996
},
"payload": {
"category": {
"uid": 1876,
"name": "Movies29820221123827",
"slug": "movies29820221123827",
"level": 3,
"media": {
"logo": "https://hdn-1.addsale.com/addsale/category/pictures/square-logo/original/fZWzWck9e-logo.png",
"portrait": "https://hdn-1.addsale.com/addsale/category/pictures/portrait-banner/original/2m9pRJzTY-banner.png",
"landscape": "https://hdn-1.addsale.com/addsale/category/pictures/landscape-banner/original/5dFKqxrro-landscape.png"
},
"tryouts": [],
"priority": 33,
"synonyms": [
"Bedfordshire",
"Southeast",
"Dodge",
"Lamborghini",
"shopsense",
"fynd",
"category3"
],
"hierarchy": [
{
"l1": {
"uid": 1874,
"name": "Home29820221123555",
"slug": "home29820221123555"
},
"l2": {
"uid": 1875,
"name": "Beauty29820221123369",
"slug": "beauty29820221123369"
},
"l3": 1876,
"l1_slug": "home29820221123555",
"l2_slug": "beauty29820221123369",
"l3_slug": "movies29820221123827",
"is_active": true,
"department": {
"uid": 358,
"name": "Outdoors23820221915505"
}
}
],
"is_active": true,
"departments": [
{
"uid": 358,
"name": "Outdoors23820221915505"
}
],
"marketplaces": {}
}
},
"contains": [
"category"
]
}


Object Properties:

keyTypeDescription
_idstringunique mongo category record id
uidstringunique id for category
mediaimageImage for the category (can have 3 image upload against one category )
namestringName of the category
slugstringslug for the category
synonymsstringsynonyms of the category created
is_activebooleanwhether the category is active or not
priority_orderintegerin which order will it be shown
levelintegerwhich level of category does it belong to
tryoutsstringnot sure about this (need to check )
hierarchyArray of stringit will specify the hierachy of the category ie for which L1 and L2 category does it belong to
departmentArray of stringit will provide details of which department this category belongs
marketplacesnot sure about this (need to check )