Event | Description |
---|---|
INSTRUMENT_ACTIVE_WEBHOOK | This webhook is triggered when the card is successfully tokenised. |
INSTRUMENT_FAILED_WEBHOOK | This webhook is triggered when the card tokenisation fails. |
Instrument active webhook
- Version (2025-01-01)
Instrument active webhook
Instrument failed Webhook
- Version (2025-01-01)
Instrument failed webhook
Understanding the payload
Understanding the payload
Payload field description
Field | Description | Type |
---|---|---|
customer_id | For checkout, this is the customer phone number and for seamless this is the customer ID provided by the merchant during the Create Order API call, which is used to save cards for the customer. | string |
afa_reference | Represents the cf_payment_id of the successful transaction done while saving the instrument. | string |
instrument_id | Represents the identifier for the card saved at Cashfree. | string |
instrument_type | Specifies the type of instrument. Available options: card . | enum<string> |
instrument_uid | Represents the unique identifier for the card, used to identify a specific card. | string |
instrument_display | Shows the last 4 digits of the actual card number. | string |
instrument_status | Shows the status of the saved instrument. It is ACTIVE when the card is successfully tokenised, else FAILED . Available options: ACTIVE , FAILED . | enum<string> |
added_at | Shows the timestamp at which the instrument was attempted to be saved. | string |
card_network | Specifies the card scheme or network. Available options: visa , mastercard , rupay , amex , diners . | string |
card_bank_name | Shows the issuing bank name of the card. Examples: HDFC BANK , ICICI BANK , AXIS BANK . | string |
card_country | Shows the issuing country of the card. Example: IN . | string |
card_type | Specifies the type of card. Available options: credit , debit , prepaid . | string |
sub_type | Specifies the sub-type of card. R = Retail, P = Premium, C = Corporate. Available options: R , P , C . | string |
card_par | Represents the PAR for the plain card. Appears only in instrument active webhook when the card is tokenised successfully. | string |
card_token_details | Always passed as null. | object |
event_time | Shows the time at which the webhook is initiated. | string |
type | Specifies the type of the instrument webhook. Available options: INSTRUMENT_ACTIVE_WEBHOOK , INSTRUMENT_FAILED_WEBHOOK . | string |