Webhook Event Codes

This section shows examples and describes the responses for the available event codes in the webhook service.

Card Status Change Events

The Card Status Change Events event code enables Thredd to send notifications to a customer when their card status changes. The event code used for this event is 103.

See the below example response for a Card Status Change event .

{
"context": {
"notificationId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"eventCode": 103,
"eventVersion": "v1",
"notificationTime": "2024-01-24T23:20:28Z"
},
"payload": {
"tokenId": "123456789",
"dateTime": "2024-01-24T14:30:00Z",
"newCardStatus": "41",
"oldCardStatus": "00",
"message": "Card status changed from active to lost or stolen.",
"trackingId": "60b83k64-526e-4d25-84c7-32b6e47c02b3"
}
}

👍

Information

For details on each of the fields for this event, see Card Status Change Events - Field Descriptions.