Skip to main content

Sort

Supported Type


Create

Description

Sort helps your customers re-arrange and find the products on your website using options such as low price to high price, high price to low price, ratings, etc. Get notified when a sort is enabled.

Payload

{
"payload":{
"sort":{
"app_id":"634e82ee1bb7843346def7c2",
"is_default":false,
"name":"Latest",
"is_active":true,
"priority":8,
"default_key":"popular",
"key":"latest",
"logo":"https://hdn-1.fynd.com/products/pictures/attribute/logo/original/iG82Qjay9X-Popularity.png",
"id":"63a0cbd33b4540a445c2b015"
}
},
"meta":{
"event":{
"type":"create",
"name":"sort",
"version":"1"
},
"service":{
"name":"silverbolt"
},
"company_id":577,
"trace_id":[
"silverbolt.214a8734-7fdd-11ed-9b40-22598b72a3df"
],
"created_timestamp":1671482324138,
"application_id":[
"634e82ee1bb7843346def7c2"
]
}
}

Object Properties

NameTypeDescription
app_idStringUnique ID of the application
is_defaultBooleanIs this a default values from the system
nameStringDisplay name of the Sort
is_activeBooleanActive status of the sort
priorityIntegerPosition of the sort in the listing page
default_keyStringSlug of the default sort
keyStringSlug of the sort
logoStringLogo of the sort value
idStringUnique Identifier of the Sort config

Update

Description

Sort helps your customers re-arrange and find the products on your website using options such as low price to high price, high price to low price, ratings, etc. Get notified when an existing sort configuration is modified.

Payload

{
"payload":{
"sort":{
"key":"latest",
"is_default":false,
"default_key":"latest",
"name":"Latest Products",
"logo":"https://hdn-1.fynd.com/products/pictures/attribute/logo/original/iG82Qjay9X-Popularity.png",
"app_id":"634e82ee1bb7843346def7c2",
"priority":1,
"is_active":true,
"id":"63a0cbd33b4540a445c2b015",
"_id":"63a0cbd33b4540a445c2b015"
}
},
"meta":{
"event":{
"type":"update",
"name":"sort",
"version":"1"
},
"service":{
"name":"silverbolt"
},
"company_id":577,
"trace_id":[
"silverbolt.347b118e-7fdd-11ed-9509-1a7e054c3daa"
],
"created_timestamp":1671482356333,
"application_id":[
"634e82ee1bb7843346def7c2"
]
}
}

Object Properties

NameTypeDescription
app_idStringUnique ID of the application
is_defaultBooleanIs this a default values from the system
nameStringDisplay name of the Sort
is_activeBooleanActive status of the sort
priorityIntegerPosition of the sort in the listing page
default_keyStringSlug of the default sort
keyStringSlug of the sort
logoStringLogo of the sort value
idStringUnique Identifier of the Sort config

Delete

Description

Sort helps your customers re-arrange and find the products on your website using options such as low price to high price, high price to low price, ratings, etc. Get notified when an existing sort configuration is deleted.

Payload

{
"payload":{
"sort":{
"name":"Latest Products",
"key":"latest",
"is_active":true,
"logo":"https://hdn-1.fynd.com/products/pictures/attribute/logo/original/QEvUfhsfyg-Latest-Products.png",
"priority":1,
"app_id":"634e82ee1bb7843346def7c2",
"is_default":false,
"default_key":"popular",
"id":"63a0bd3645768af2fec35bc4"
}
},
"meta":{
"event":{
"type":"delete",
"name":"sort",
"version":"1"
},
"service":{
"name":"silverbolt"
},
"company_id":577,
"trace_id":[
"silverbolt.fbce0a58-7fdc-11ed-9509-1a7e054c3daa"
],
"created_timestamp":1671482261247,
"application_id":[
"634e82ee1bb7843346def7c2"
]
}
}

Object Properties

NameTypeDescription
app_idStringUnique ID of the application
is_defaultBooleanIs this a default values from the system
nameStringDisplay name of the Sort
is_activeBooleanActive status of the sort
priorityIntegerPosition of the sort in the listing page
default_keyStringSlug of the default sort
keyStringSlug of the sort
logoStringLogo of the sort value
idStringUnique Identifier of the Sort config