EventDescription
INSTRUMENT_ACTIVE_WEBHOOKThis webhook is triggered when the card is successfully tokenised.
INSTRUMENT_FAILED_WEBHOOKThis webhook is triggered when the card tokenisation fails.

Instrument active webhook

An instrument active webhook is triggered when a card is tokenised successfully from the networks like visa, mastercard, etc.

Instrument Active Webhook
{
   "data": {
      "instrument": {
         "customer_id": "siddhesh199721",
         "afa_reference": "887316963",
         "instrument_id": "af250dc5-e5e5-4e7d-a7cf-3f446741fa54",
         "instrument_type": "card",
         "instrument_uid": "680cd7171583f9f64b426983d4501d6941b462932ce5f626be78392d5ec42660",
         "instrument_display": "XXXXXXXXXXXX6854",
         "instrument_status": "ACTIVE",
         "added_at": "2022-04-14T10:42:59+05:30",
         "instrument_meta": {
            "card_network": "visa",
            "card_bank_name": "HDFC BANK",
            "card_country": "IN",
            "card_type": "credit",
            "sub_type": "R",
            "card_par": "50012ADWQZJKHCLXLT61QTYD5QNX1",
            "card_token_details": null
         }
      }
   },
   "event_time": "2022-04-14T10:44:14+05:30",
   "type": "INSTRUMENT_ACTIVE_WEBHOOK"
}

Instrument failed webhook

An instrument failed webhook is triggered when a card was not tokenised from the networks like visa, mastercard, etc.

Instrument Failed Webhook
{
   "data": {
      "instrument": {
         "customer_id": "siddhesh199721",
         "afa_reference": "887316963",
         "instrument_id": "af250dc5-e5e5-4e7d-a7cf-3f446741fa54",
         "instrument_type": "card",
         "instrument_uid": "680cd7171583f9f64b426983d4501d6941b462932ce5f626be78392d5ec42660",
         "instrument_display": "XXXXXXXXXXXX6854",
         "instrument_status": "FAILED",
         "added_at": "2022-04-14T10:42:59+05:30",
         "instrument_meta": {
            "card_network": "visa",
            "card_bank_name": "HDFC BANK",
            "card_country": "IN",
            "card_type": "credit",
            "sub_type": "R",
            "card_par": null,
            "card_token_details": null
         }
      },
      "error_details": {
         "error_code": "NETWORK_ERROR",
         "error_description": "Error while processing the request",
         "error_source": "NETWORK"
      }
   },
   "event_time": "2022-04-14T10:44:14+05:30",
   "type": "INSTRUMENT_FAILED_WEBHOOK"
}