Events

An event is an object that describes an event in Modern Treasury. The events in Modern Treasury will be sent to your webhook endpoints if you are subscribed to webhooks. For a full list of the events in Modern Treasury, refer to the section on webhooks.

AttributeDescription
id
string
Unique identifier for the event.
resource
string
The type of resource for the event.
event_name
string
The name of the event.
event_time
string
The time of the event.
data
object
The body of the event.
entity_id
string
The ID of the entity for the event.
live_mode
boolean
This field will be true if this object exists in the live environment or false if it exists in the test environment.
{
  "id": "c20ef4da-1eb7-42df-872f-b26577fa69f6",
  "object": "event",
  "live_mode": true,
  "created_at": "2020-09-03T00:58:35Z",
  "updated_at": "2020-09-03T00:58:35Z",
  "resource": "expected_payment",
  "event_name": "reconciled",
  "event_time": "2020-09-03T00:58:35.000000000+00:00",
  "data": {
    "amount_lower_bound": 400000,
    "amount_upper_bound": 400000,
    "counterparty_id": null,
    "created_at": "2020-09-03T00:58:35Z",
    "currency": "USD",
    "date_lower_bound": "2019-09-03",
    "date_upper_bound": "2019-09-04",
    "description": null,
    "direction": "credit",
    "id": "46141eca-7362-4a25-8f71-cf942423e450",
    "internal_account_id": "b9fc1ae0-d493-4f01-a7b3-b39104e802b5",
    "metadata": {},
    "object": "expected_payment",
    "remittance_information": null,
    "statement_descriptor": null,
    "status": "reconciled",
    "transaction_id": "30dd4826-732f-4fe5-ab15-fc903f85ffdd",
    "transaction_line_item_id": null,
    "type": "ach",
    "updated_at": "2020-09-03T00:58:35Z"
  },
  "entity_id": "51732bde-dc31-40f6-a0f4-e43ba3248dc3"
}