Retrieves a order message with a specified ID.
Retrieves a order message with a specified ID.
const message = await api.subscriptions .getTimelineMessage({id: 'foobar-001', messageId: 'message-202'}); console.log(message.fields.eventType);
200
Order timeline message retrieved.
401
Unauthorized access. Invalid credentials used.
403
Access forbidden.
404
Resource not found.
{ "id": "tmln_0YV8Q9WEF5DTA8HFXS27D1G6GC", "type": "coupon-applied", "triggeredBy": "rebilly", "message": "string", "extraData": { "actions": [ { "action": "redemption-cancel", "redemptionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21" } ], "tables": [ { "type": "list", "title": "string", "footer": "string" } ], "author": { "userFullName": "string", "userId": "usr_0YVCEENYJ3D7Q9EN6BN16HA0G4" }, "mentions": { "@test@mail.com": "userId-1" }, "links": [ { "resourceType": "kyc-document", "resourceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21", "placeholder": "KYC document", "externalUrl": "http://example.com" } ] }, "occurredTime": "2019-08-24T14:15:22Z", "_links": [ { "href": "string", "rel": "self" } ] }