Event definition
When Paylias POSTs a notification to your endpoint, the payload will be a JSON object that contains the following fieldsstring
required
Unique identifier for the event.
string
required
Currently 1.0.0, the version in use by Paylias Webhook APIs
string
required
Description of the eventCurrently can be one of two values:
EK_Created or EK_Updatedstring
required
Record type of the payloadCurrently can be one of the following values:
RT_PaymentsRT_PaymentSubmissionsRT_PaymentAdmissionsRT_PaymentAdmissionTasksRT_ErrorRT_Transactionsstring
required
The destination endpoint for the webhook subscription
any
required
Object containing data associated with the event.This field will contain the resource corresponding to the
record_typeTimestamp
required
UTC Unix timestamp in seconds for when this event was created
Example Event
Payment Created Event
Notification definition
When you use the List events endpoint, or view delivered events through the dashboard, the structure is slightly different. This endpoint gives additional details surrounding the event. The notification object has the following fieldsstring
required
Unique identifier for the notification
string
required
Notification ID foreign key reference
string
required
ID to link it back to the original webhook subscription
EventKind
required
Description of the eventCurrently can be one of two values:
1 corresponds to EK_Created2 corresponds to EK_UpdatedRecordType
required
Record type of the payloadCurrently can be one of the following values:
1 corresponds toRT_Error2 corresponds toRT_Payments3 corresponds toRT_PaymentSubmissions4 corresponds toRT_PaymentAdmissions5 corresponds toRT_PaymentAdmissionTasks6 corresponds toRT_Transactionsstring
required
The raw bytes for the payload for the messageThis field contains a base64 encoded string of the JSON
event defined above.string
required
The recipient endpoint URL
string
required
HMAC signature for verifying the payload
DeliveryStatus
required
The status of the notification
number
required
The number of delivery attempts made so far for this notification
Timestamp
required
The timestamp of when the webhook notification was created
Timestamp
required
The timestamp of when the webhook notification was last updated
Example Webhook Notification
Webhook Notification