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",
    "productId": 123,
    "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.

Card Creation Success Events

The Card Status Change Events event code enables notifications to be sent to a customer when a new card is created with a Custom PAN. The event code used for this event is 104.

See the below example response for a Card Creation Success event:

{
  "context": {
    "notificationId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "eventCode": 104,
    "eventVersion": "v1",
    "notificationTime": "2024-01-24T23:20:28Z"
  },
  "payload": {
    "productId": 123,
    "messageId": "60b83k64-526e-4d25-84c7-32b6e47c02b3",
    "publicToken": "123456789"
  }
}
👍

Information

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