Event formats: COS
Basic and extended formats
An event payload is delivered in a standard format and contains the resources it's reporting on. Our system supports basic and extended formats.
The table below shows the different fields included in the event together with descriptions and explanations of the information they represent.
Column | Description |
|---|---|
id | The unique ID for the event. In GUID format. |
eventName | The name of the event |
status | This column shows the event status, which could be: - Pending: The event has been created, but no attempt to send it has been made yet - Success: The event was successfully sent to the registered URL (internal only) - Failed: The event could not be delivered to the registered URL (internal only) |
createdAt | The date and time the event was created |
lastAttemptedAt | The date and time of the last attempt to send the event to your callback URL. Only included after an attempt has been made, so it's not in the first delivery of an event. It appears when an event is sent again, for example after a failed attempt, a resend or a restart. |
partnerId | The unique Cross River identification number for the partner resource |
resources | Refers to the resource relating to the event. For example, an account that was opened. It contains the API URI that triggered the event. |
details | Contains information related to the API call. These details are only displayed in an extended webhook. |
isPing | Only included, set to true, in the test event that PUT /webhooks/v1/registrations/{id}/ping sends to your callback URL. A test event uses your registered event name and has no resources, so check isPing to tell it apart from a real event. Real events don't include this field. |
Fields that have no value are left out of the payload. Don't treat a missing lastAttemptedAt or isPing as an error.
Basic format
Basic events have a small payload, excluding additional details.
They can deliver up to 50k resources at once.
The ID in the resources object (in this example 73da01c7-b85b-4a58-9395-b04900de43cf) corresponds to the id field returned in the POST /v1/payments response body. This payment id is used to track the payment.
{
"id": "51d2e4e8-5fee-4ad8-8b03-b1c6012a8459",
"eventName": "Ach.Payment.Sent",
"status": "Pending",
"partnerId": "1e5d3f04-ae24-4af6-9e30-aecf012b99dd",
"createdAt": "2024-08-08T14:06:52.013-04:00",
"resources": [
"ach/v1/payments/55f641cf-102b-4920-83fd-b1c6012a3d2d"
]
}Extended format
This format returns all the information included in the basic format and a details object. The details object includes information relevant to the event type.
They can deliver up to 1k resources at once.
We recommend using extended webhooks for all xxx.xxx.Received events.
Example
ACH.Payment.Sent webhook event in the extended webhook format.
- The first part of the webhook event payload provides information about the webhook event itself.
- The resources object of the webhook event shows information about the ACH payment.
- The details object gives specific information.
{
"id": "51d2e4e8-5fee-4ad8-8b03-b1c6012a8459",
"eventName": "Ach.Payment.Sent",
"status": "Pending",
"partnerId": "1e5d3f04-ae24-4af6-9e30-aecf012b99dd",
"createdAt": "2024-08-08T14:06:52.013-04:00",
"resources": [
"ach/v1/payments/55f641cf-102b-4920-83fd-b1c6012a3d2d"
],
"details": [
{
"paymentId": "55f641cf-102b-4920-83fd-b1c6012a3d2d",
"coreTransactionId": "fddea7f7-556e-4c93-acc4-b1c6012a6bf3",
"memoPostId": "fddea7f7-556e-4c93-acc4-b1c6012a6bf3",
"clientBatchId": null,
"clientBatchSequence": null,
"accountNumber": "2151546989",
"postingCode": null,
"clientIdentifier": null,
"purpose": null,
"fedBatchId": "29f4b78f-f056-4ac5-9a4e-b1c6012a60d2",
"fedBatchSequence": null
}
]
}