Token Enrichments
Basis Theory offers several features that can be used to enrich the tokens that are tokenized. The following enrichments, when activated, can be found within the enrichments
property of a Token.
Attribute | Type | Token Types | Description |
---|---|---|---|
bin_details | object | card , card_number | Object containing information related to the BIN of the tokenized credit card |
card_details | object | card , card_number | Object containing card details related to the tokenized credit card |
Using Token Enrichments
When a specific Enrichment is activated for a Tenant, each is added as a token property and returned during every token operation and is available to be used within Detokenization Expressions.
Card Details Enterprise
Card details include specific details on the card to enable better visibility into the card's origin and function. These values are derived from BIN Details to ensure accuracy of the information and also making the BIN Details enrichment a pre-requisite for this enrichment.
Property | Type | Description |
---|---|---|
last4 | string | Last four digits of the tokenized card number |
bin | string | BIN based on the details found in the bin_details.bin_length enrichment property |
Default Bin
If a BIN Detail record cannot be found for a given card number, a default bin
value will be derived from the card number.
In this scenario, the returned bin
length may not exactly match the actual issuer's bin
length.
Rule | Default Bin Length | Example Card Number | Example Default Bin |
---|---|---|---|
Card number < 16 digits | 6 | 411111111111111 | 411111 |
Card number >= 16 digits | 8 | 4242424242424242 | 42424242 |
BIN Details Enterprise
BIN details, or Bank Identification Number details, represent a fundamental aspect of credit card processing. Each credit card is associated with a unique BIN, which serves as a numerical identifier for the issuing bank or financial institution. These details hold crucial technical significance as they help validate transactions, prevent fraud, and optimize routing. Understanding the intricate mechanics of BIN details is vital for implementing secure and efficient credit card processing solutions.
Basis Theory offers two options for enriching card
or card_number
tokens with BIN details, depending on the level of detail you require:
Level | Description |
---|---|
Standard | Basic information about the credit card's function and origin. |
Enhanced | Includes Standard Data and also interchange, authentication, and other more advanced details. |