Retrieves a customer message with a specified ID.
Customer message retrieved.
id | string <= 50 characters ID of the customer timeline custom event. | ||||||||||||||||||||
type | string Type of timeline message. | ||||||||||||||||||||
customEventType | string or null [ 1 .. 255 ] characters Timeline custom event type.
Used with | ||||||||||||||||||||
triggeredBy | string Specifies who, or what, triggered the timeline event. | ||||||||||||||||||||
message | string Detailed message description. | ||||||||||||||||||||
object (TimelineExtraData) Additional data. | |||||||||||||||||||||
| |||||||||||||||||||||
occurredTime | string <date-time> Date and time when the timeline message occurred. | ||||||||||||||||||||
Array of objects (SelfLink) Related links. | |||||||||||||||||||||
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
const message = await api.customers .getTimelineMessage({id: 'foobar-001', messageId: 'message-202'}); console.log(message.fields.eventType);
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "type": "account-password-reset-requested",
- "customEventType": "string",
- "triggeredBy": "rebilly",
- "message": "string",
- "extraData": {
- "actions": [
- {
- "action": "resend-email"
}
], - "tables": [
- {
- "type": "list",
- "title": "string",
- "footer": "string"
}
], - "author": {
- "userFullName": "string",
- "userId": "string"
}, - "mentions": {
- "@test@mail.com": "userId-1"
}, - "links": [
- {
- "resourceType": "kyc-document",
- "resourceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "placeholder": "KYC document",
}
]
}, - "occurredTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}