Company
Events categorised under company level will be triggered when any action performed on company. e.g. If new brand is created.
This event will be generated where there is any action done on customobject_definition
Events
company/customobject_definition/create/v1
# This event is triggered when customobject definition is created
company/customobject_definition/update/v1
# This event is triggered when customobject definition is updated
company/customobject_definition/delete/v1
# This event is triggered when customobject definition is deleted"
Payload
Properties
company_id
integer
Required
Company ID for which this event is triggered
contains
array of string
Required
This array will have all the keys present at root level of 'payload' object
event
object
Required
Properties
category
string
Required
Category of the event. If it is at sales channel level or company level
created_timestamp
integer
Required
Event generation timestamp in epoch milliseconds
id
string
Required
Unique ID for an event. This id can be used to verifiy if event is already processed by receiver
name
string
Required
Name of the event
trace_id
array of string
Required
Internal trace_id for Fynd Platform services
type
string
Required
Type/Action of the event. e.g. create/update/delete
version
string
Required
Version of the event.
payload
object
Required
Properties
id
string
Required
Uniquely generated mongoId of custom object definition and its not editable.
name
string
Required
Name is use for the custom object definition name
slug
string
Required
A unique identifier for the custom object definition. Its required and will not be modified once created.
field_definitions
array of Undefined Type
Required
This indicates all the custom field definitions part of the custom object
Payload Schema JSON
1{2 "type": "object",3 "required": [4 "company_id",5 "contains",6 "event",7 "payload"8 ],9 "properties": {10 "company_id": {11 "type": "integer",12 "description": "Company ID for which this event is triggered"13 },14 "contains": {15 "type": "array",16 "description": "This array will have all the keys present at root level of 'payload' object",17 "items": {18 "type": "string"19 }20 },21 "event": {22 "type": "object",23 "required": [24 "category",25 "created_timestamp",26 "id",27 "name",28 "trace_id",29 "type",30 "version"31 ],32 "properties": {33 "category": {34 "type": "string",35 "description": "Category of the event. If it is at sales channel level or company level"36 },37 "created_timestamp": {38 "type": "integer",39 "description": "Event generation timestamp in epoch milliseconds"40 },41 "id": {42 "type": "string",43 "description": "Unique ID for an event. This id can be used to verifiy if event is already processed by receiver"44 },45 "name": {46 "type": "string",47 "description": "Name of the event"48 },49 "trace_id": {50 "type": "array",51 "description": "Internal trace_id for Fynd Platform services",52 "items": {53 "type": "string"54 }55 },56 "type": {57 "type": "string",58 "description": "Type/Action of the event. e.g. create/update/delete"59 },60 "version": {61 "type": "string",62 "description": "Version of the event."63 }64 }65 },66 "payload": {67 "type": "object",68 "properties": {69 "id": {70 "type": "string",71 "description": "Uniquely generated mongoId of custom object definition and its not editable."72 },73 "name": {74 "type": "string",75 "description": "Name is use for the custom object definition name"76 },77 "slug": {78 "type": "string",79 "description": "A unique identifier for the custom object definition. Its required and will not be modified once created."80 },81 "field_definitions": {82 "type": "array",83 "description": "This indicates all the custom field definitions part of the custom object",84 "items": [85 {86 "type": "object",87 "properties": {88 "resource": {89 "type": "string",90 "description": "Resource indicate that this custom field is assosiated with this resource.This is non-editable"91 },92 "name": {93 "type": "string",94 "description": "Name of the custom fields. Its editable."95 },96 "namespace": {97 "type": "string",98 "description": "namespace is the initial part of the slug, like slug is designer.name then here designer is namespace and name is key. Its also not editable."99 },100 "slug": {101 "type": "string",102 "description": "A unique identifier for the custom fields definition. Its required and will not be modified once created."103 },104 "type": {105 "type": "string",106 "description": "This is field_type of the custom field definition. Its non-editable"107 },108 "multi_value": {109 "type": "boolean",110 "description": "This indicate that this custom fields can accept multiple values or not.multi_value false means it can have only 1 value."111 },112 "company_id": {113 "type": "string",114 "description": "This is company id where this custom fields created."115 },116 "required": {117 "type": "boolean",118 "description": "This indicates whether the field is required or not"119 },120 "is_deleted": {121 "type": "boolean",122 "description": "This indicates that this custom fields definition is deleted or not."123 }124 },125 "required": [126 "resource",127 "name",128 "slug",129 "type",130 "company_id"131 ]132 }133 ]134 }135 },136 "required": [137 "id",138 "name",139 "slug",140 "field_definitions"141 ]142 }143 }144}
Payload Example
1{2 "event": {3 "trace_id": [4 "convex.f00de8ea-426a-4c20-b786-c0fcce8689fb"5 ],6 "name": "customobject_definition",7 "type": "create",8 "version": "1",9 "created_timestamp": 1710313407546,10 "id": "2+4TJIsF8RLLmR5718bbeaK3QT9c0mCPuNNt/WB3gF8=",11 "category": "company",12 "referer": "fyndx1.de"13 },14 "company_id": 2,15 "contains": [16 "id",17 "name",18 "type",19 "display_name_key",20 "description",21 "company_id",22 "field_definitions"23 ],24 "payload": {25 "id": "65f14fbf95ae139810b51b35",26 "name": "testubg oibkject",27 "slug": "testubg-oibkject",28 "display_name_key": "name",29 "description": "",30 "company_id": "2",31 "field_definitions": [32 {33 "resource": "metaobject",34 "name": "name",35 "namespace": "testubg-oibkject",36 "slug": "name",37 "description": "",38 "type": "string_single_line",39 "multi_value": false,40 "validations": [],41 "company_id": "2",42 "required": false,43 "is_deleted": false,44 "id": "65f14fbf95ae139810b51b38"45 },46 {47 "resource": "metaobject",48 "name": "age",49 "namespace": "testubg-oibkject",50 "slug": "age",51 "description": "",52 "type": "string_single_line",53 "multi_value": false,54 "validations": [],55 "company_id": "2",56 "required": false,57 "is_deleted": false,58 "id": "65f14fbf95ae139810b51b39"59 },60 {61 "resource": "metaobject",62 "name": "mobile",63 "namespace": "testubg-oibkject",64 "slug": "mobile",65 "description": "",66 "type": "string_single_line",67 "multi_value": false,68 "validations": [],69 "company_id": "2",70 "required": false,71 "is_deleted": false,72 "id": "65f14fbf95ae139810b51b3a"73 },74 {75 "resource": "metaobject",76 "name": "p name",77 "namespace": "testubg-oibkject",78 "slug": "p-name",79 "description": "",80 "type": "string_single_line",81 "multi_value": false,82 "validations": [],83 "company_id": "2",84 "required": false,85 "is_deleted": false,86 "id": "65f14fbf95ae139810b51b3b"87 }88 ]89 }90}
Payload
Properties
company_id
integer
Required
Company ID for which this event is triggered
contains
array of string
Required
This array will have all the keys present at root level of 'payload' object
event
object
Required
Properties
category
string
Required
Category of the event. If it is at sales channel level or company level
created_timestamp
integer
Required
Event generation timestamp in epoch milliseconds
id
string
Required
Unique ID for an event. This id can be used to verifiy if event is already processed by receiver
name
string
Required
Name of the event
trace_id
array of string
Required
Internal trace_id for Fynd Platform services
type
string
Required
Type/Action of the event. e.g. create/update/delete
version
string
Required
Version of the event.
payload
object
Required
Properties
id
string
Required
Uniquely generated mongoId of custom object definition and its not editable.
name
string
Required
Name is use for the custom object definition name
slug
string
Required
A unique identifier for the custom object definition. Its required and will not be modified once created.
field_definitions
array of Undefined Type
Required
This indicates all the custom field definitions part of the custom object
Payload Schema JSON
1{2 "type": "object",3 "required": [4 "company_id",5 "contains",6 "event",7 "payload"8 ],9 "properties": {10 "company_id": {11 "type": "integer",12 "description": "Company ID for which this event is triggered"13 },14 "contains": {15 "type": "array",16 "description": "This array will have all the keys present at root level of 'payload' object",17 "items": {18 "type": "string"19 }20 },21 "event": {22 "type": "object",23 "required": [24 "category",25 "created_timestamp",26 "id",27 "name",28 "trace_id",29 "type",30 "version"31 ],32 "properties": {33 "category": {34 "type": "string",35 "description": "Category of the event. If it is at sales channel level or company level"36 },37 "created_timestamp": {38 "type": "integer",39 "description": "Event generation timestamp in epoch milliseconds"40 },41 "id": {42 "type": "string",43 "description": "Unique ID for an event. This id can be used to verifiy if event is already processed by receiver"44 },45 "name": {46 "type": "string",47 "description": "Name of the event"48 },49 "trace_id": {50 "type": "array",51 "description": "Internal trace_id for Fynd Platform services",52 "items": {53 "type": "string"54 }55 },56 "type": {57 "type": "string",58 "description": "Type/Action of the event. e.g. create/update/delete"59 },60 "version": {61 "type": "string",62 "description": "Version of the event."63 }64 }65 },66 "payload": {67 "type": "object",68 "properties": {69 "id": {70 "type": "string",71 "description": "Uniquely generated mongoId of custom object definition and its not editable."72 },73 "name": {74 "type": "string",75 "description": "Name is use for the custom object definition name"76 },77 "slug": {78 "type": "string",79 "description": "A unique identifier for the custom object definition. Its required and will not be modified once created."80 },81 "field_definitions": {82 "type": "array",83 "description": "This indicates all the custom field definitions part of the custom object",84 "items": [85 {86 "type": "object",87 "properties": {88 "resource": {89 "type": "string",90 "description": "Resource indicate that this custom field is assosiated with this resource.This is non-editable"91 },92 "name": {93 "type": "string",94 "description": "Name of the custom fields. Its editable."95 },96 "namespace": {97 "type": "string",98 "description": "namespace is the initial part of the slug, like slug is designer.name then here designer is namespace and name is key. Its also not editable."99 },100 "slug": {101 "type": "string",102 "description": "A unique identifier for the custom fields definition. Its required and will not be modified once created."103 },104 "type": {105 "type": "string",106 "description": "This is field_type of the custom field definition. Its non-editable"107 },108 "multi_value": {109 "type": "boolean",110 "description": "This indicate that this custom fields can accept multiple values or not.multi_value false means it can have only 1 value."111 },112 "company_id": {113 "type": "string",114 "description": "This is company id where this custom fields created."115 },116 "required": {117 "type": "boolean",118 "description": "This indicates whether the field is required or not"119 },120 "is_deleted": {121 "type": "boolean",122 "description": "This indicates that this custom fields definition is deleted or not."123 }124 },125 "required": [126 "resource",127 "name",128 "slug",129 "type",130 "company_id"131 ]132 }133 ]134 }135 },136 "required": [137 "id",138 "name",139 "slug",140 "field_definitions"141 ]142 }143 }144}
Payload Example
1{2 "event": {3 "trace_id": [4 "convex.bb245540-b8be-4cba-a7c7-87c5fad817d0"5 ],6 "name": "customobject_definition",7 "type": "update",8 "version": "1",9 "created_timestamp": 1707717291057,10 "id": "OMYai+tli6FE4357LlgYCy0QJDNeHrumddyzN9J8ims=",11 "category": "company",12 "referer": "fyndx1.de"13 },14 "company_id": 1,15 "contains": [16 "id",17 "name",18 "slug",19 "display_name_key",20 "description",21 "company_id",22 "field_definitions"23 ],24 "payload": {25 "id": "65b22d42ddb6c44d923e445f",26 "name": "25 Jan Custom object 4",27 "slug": "25-jan-custom-object-4",28 "display_name_key": "",29 "description": "25 Jan Custom object 4",30 "company_id": "1",31 "field_definitions": [32 {33 "resource": "metaobject",34 "name": "25 Jan custom object created custom field 4",35 "namespace": "25-jan-custom-object-4",36 "slug": "25-jan-custom-object-created-custom-field-4",37 "type": "integer",38 "description": "",39 "multi_value": false,40 "validations": [],41 "company_id": "1",42 "required": false43 }44 ]45 }46}
Payload
Properties
company_id
integer
Required
Company ID for which this event is triggered
contains
array of string
Required
This array will have all the keys present at root level of 'payload' object
event
object
Required
Properties
category
string
Required
Category of the event. If it is at sales channel level or company level
created_timestamp
integer
Required
Event generation timestamp in epoch milliseconds
id
string
Required
Unique ID for an event. This id can be used to verifiy if event is already processed by receiver
name
string
Required
Name of the event
trace_id
array of string
Required
Internal trace_id for Fynd Platform services
type
string
Required
Type/Action of the event. e.g. create/update/delete
version
string
Required
Version of the event.
payload
object
Required
Properties
id
string
Required
Uniquely generated mongoId of custom object definition and its not editable.
name
string
Required
Name is use for the custom object definition name
slug
string
Required
A unique identifier for the custom object definition. Its required and will not be modified once created.
field_definitions
array of Undefined Type
Required
This indicates all the custom field definitions part of the custom object
Payload Schema JSON
1{2 "type": "object",3 "required": [4 "company_id",5 "contains",6 "event",7 "payload"8 ],9 "properties": {10 "company_id": {11 "type": "integer",12 "description": "Company ID for which this event is triggered"13 },14 "contains": {15 "type": "array",16 "description": "This array will have all the keys present at root level of 'payload' object",17 "items": {18 "type": "string"19 }20 },21 "event": {22 "type": "object",23 "required": [24 "category",25 "created_timestamp",26 "id",27 "name",28 "trace_id",29 "type",30 "version"31 ],32 "properties": {33 "category": {34 "type": "string",35 "description": "Category of the event. If it is at sales channel level or company level"36 },37 "created_timestamp": {38 "type": "integer",39 "description": "Event generation timestamp in epoch milliseconds"40 },41 "id": {42 "type": "string",43 "description": "Unique ID for an event. This id can be used to verifiy if event is already processed by receiver"44 },45 "name": {46 "type": "string",47 "description": "Name of the event"48 },49 "trace_id": {50 "type": "array",51 "description": "Internal trace_id for Fynd Platform services",52 "items": {53 "type": "string"54 }55 },56 "type": {57 "type": "string",58 "description": "Type/Action of the event. e.g. create/update/delete"59 },60 "version": {61 "type": "string",62 "description": "Version of the event."63 }64 }65 },66 "payload": {67 "type": "object",68 "properties": {69 "id": {70 "type": "string",71 "description": "Uniquely generated mongoId of custom object definition and its not editable."72 },73 "name": {74 "type": "string",75 "description": "Name is use for the custom object definition name"76 },77 "slug": {78 "type": "string",79 "description": "A unique identifier for the custom object definition. Its required and will not be modified once created."80 },81 "field_definitions": {82 "type": "array",83 "description": "This indicates all the custom field definitions part of the custom object",84 "items": [85 {86 "type": "object",87 "properties": {88 "resource": {89 "type": "string",90 "description": "Resource indicate that this custom field is assosiated with this resource.This is non-editable"91 },92 "name": {93 "type": "string",94 "description": "Name of the custom fields. Its editable."95 },96 "namespace": {97 "type": "string",98 "description": "namespace is the initial part of the slug, like slug is designer.name then here designer is namespace and name is key. Its also not editable."99 },100 "slug": {101 "type": "string",102 "description": "A unique identifier for the custom fields definition. Its required and will not be modified once created."103 },104 "type": {105 "type": "string",106 "description": "This is field_type of the custom field definition. Its non-editable"107 },108 "multi_value": {109 "type": "boolean",110 "description": "This indicate that this custom fields can accept multiple values or not.multi_value false means it can have only 1 value."111 },112 "company_id": {113 "type": "string",114 "description": "This is company id where this custom fields created."115 },116 "required": {117 "type": "boolean",118 "description": "This indicates whether the field is required or not"119 },120 "is_deleted": {121 "type": "boolean",122 "description": "This indicates that this custom fields definition is deleted or not."123 }124 },125 "required": [126 "resource",127 "name",128 "slug",129 "type",130 "company_id"131 ]132 }133 ]134 }135 },136 "required": [137 "id",138 "name",139 "slug",140 "field_definitions"141 ]142 }143 }144}
Payload Example
1{2 "event": {3 "trace_id": [4 "convex.24a0e0a8-9951-443c-b26f-1b2ffd6f3a0e"5 ],6 "name": "customobject_definition",7 "type": "delete",8 "version": "1",9 "created_timestamp": 1709218134685,10 "id": "lI2JDxvIxNFr/ahkmiASqjD6O6b4AAso1T8MH7QTEmk=",11 "category": "company",12 "referer": "fyndx1.de"13 },14 "company_id": 1,15 "contains": [16 "id",17 "name",18 "slug",19 "description",20 "display_name_key",21 "company_id",22 "field_definitions",23 "is_deleted"24 ],25 "payload": {26 "id": "655c706ad5ff69fd3b95a1d9",27 "name": "coCustomObject",28 "slug": "cocustomobject",29 "description": "",30 "display_name_key": "coslt",31 "company_id": "1",32 "field_definitions": [33 {34 "id": "655c706ad5ff69fd3b95a1dd",35 "resource": "metaobject",36 "name": "coMLT",37 "namespace": "cocustomobject",38 "slug": "comlt",39 "description": "custom object multi line text",40 "type": "string_multi_line",41 "multi_value": false,42 "validations": [],43 "company_id": "1",44 "required": false,45 "is_deleted": false46 },47 {48 "id": "655c706ad5ff69fd3b95a1dc",49 "resource": "metaobject",50 "name": "coSLT",51 "namespace": "cocustomobject",52 "slugs": "coslt",53 "description": "this is a custom object SLT",54 "type": "string_single_line",55 "multi_value": false,56 "validations": [],57 "company_id": "1",58 "required": false,59 "is_deleted": false60 }61 ],62 "is_deleted": true63 }64}