Docs for all releases
Page History
...
Event Payload
Structure
Within notification, the handler will be called with a JSON-formatted data payload. The payload has the following structure:
event
dt
- the date-time of the event in the ISO8601 format;events_id
- ID of the event occurred (helpful, when multiple events are handled by the same handler);object_id
- the entity, to which the event happened;
data
- data related to the specific event (check Payload Samples below)
Supported Events
Please note that some Payload Samples below contain reduced payload as they fully replicate the data structures within CoreAPI. Please refer to the respective documentation within the system interface in the Integration/CoreAPI Docs section for full format of the structure.
Event ID | Payload Sample |
---|---|
Clients Management | |
The client has been created |
|
The client's details have been updated |
|
The client has been archived |
|
The client has been completely deleted Not to be confused with archived |
|
The client has been | |
The client has been | |
The client has been | |
Accounts Management | |
The client has been created | |
The client has been created | |
The client has been created | |
Subscriptions Management | |
The client has been created | |
The client has been created | |
The client has been created | |
The client has been created | |
The client has been created | |
Email Rates Manager Management | |
The client has been created | { "data": { "mailbox": { "login": "[email protected]", "host": "imap.gmail.com" }, "message": { "from": "Sender <[email protected]>", "id": "77798", "subject": "Subject of the message" }, "queue": { <IMPORT_QUEUE> } }, "event": { "dt": "2022-01-24T15:44:47.216756+00:00", "events_id": "email_rates_manager.import", "object_id": "77798" } } |
The client has been created |
|
The client has been created | { "data": { "credentials": { "login": "[email protected]", "host": "imap.gmail.com" }, "message": { "from": "Sender <[email protected]>", "id": "77798", "subject": "Subject of the message" }, "rate_tables": [ { "id": 74, "name": "Rate Table A" }, { "id": 7, "name": "Rate TAble B" } ] }, "event": { "dt": "2022-01-24T15:44:47.216756+00:00", "events_id": "email_rates_manager.no_attachments", "object_id": "77798" } } |
The client has been created | { "data": { "error": { "code": "incorrect-file-ext", "message": "Can't process file: /opt/jerasoft/vcs-data/files/xJv/xJv5aMoqMKoNK1s2hwlJ8ik4bF3aiMVi (test_import_9999.zip). File is not a zip file" }, "credentials": { "login": "[email protected]", "host": "imap.gmail.com" }, "message": { "from": "Sender <[email protected]>", "id": "77798", "subject": "Subject of the message" }, "rate_tables": [ { "id": 74, "name": "Rate Table A" }, { "id": 7, "name": "Rate TAble B" } ] }, "event": { "dt": "2022-01-24T15:44:47.216756+00:00", "events_id": "email_rates_manager.no_attachments", "object_id": "77798" } } |
Import Manager Management | |
The client has been created | |
The client has been created |
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Tip
|