KLV Lookup

Key-Length-Value (KLV) is a data encoding standard where the Key identifies the data, Length specifies the data’s length and Value is the data itself.
KLV is an instance of the TLV encoding scheme used for optional information elements within communication protocols.

The length of each string is:

  1. A Key indicator of 3 digits, zero left padded.
  2. A Length indicator of 2 digits, zero left padded.
  3. A Value with the number of characters as specified by the Length indicator.

It is important to note:

  • Keys do not need to be in any particular order or sequence within transactionData.
  • Customers must be able to receive all keys available within transactionData.
  • Customers may ignore keys not pertinent to processing.
  • You must be able to successfully process messages that contain new unannounced keys.
  • Available keys are subject to change and will often be customer specific, thus these will be communicated via means other than this API documentation.
    For example, the KLV 00206AB48DE026044577 contains:
    1. Key 002 with length 06 and value AB48DE
    2. Key 026 with length 04 and value 4577
  • Transactions may or may not contain keys depending on the type of transaction.
  • Transaction types which include KLV data are:
    • Balance
    • Deduct
    • Deduct Reversals
    • Deduct Adjustment
    • Load Auth
    • Load Adjustment
    • Load Auth Reversal
    • Load Reversal
    • Stop

KLV Data

Key NameIndexValuesAdditional InformationApplicable to
Tracking Number002Card tracking numberVirtual & Physical
Original Transaction Amount004Original amount of the incoming transactionVirtual & Physical
Conversion Rate010Forex conversion rate at the time of the transaction. The same value received from the network is echoed in the companion call. The leftmost digit of this field signifies the number of decimal places in the rate, and the remaining 7 digits give the actual rate. For example, 69972522 represents 9.972522Virtual & Physical
Merchant category code026The four digit MCC that defines the sort of merchant making the transactionVirtual & Physical
Acquiring Institution Code032The code for the Acquiring InstitutionVirtual & Physical
Retrieval Reference Number037The retrieval reference number of the transactionVirtual & Physical
Terminal ID041The terminal ID where the transaction is doneVirtual & Physical
Merchant Identifier042The merchant identifier for the transactionVirtual & Physical
Merchant Description043The merchant description for the dataVirtual & Physical
Merchant name044Merchant name provided as part of tokenization messagesTokenization
Transaction type Identifier045Transaction type Identifier "TTI" used for fundingVirtual, physical and Money send
Fraud scoring data048Fraud score received in transaction messageMastercard onlyVirtual & Physical
Original Currency Code049The original currency code of the transactionVirtual & Physical
From Account050
  • Indicate cardholder account type : 00 = Default Account (Not specified or not applicable)
  • 10 = Savings Account
  • 20 = Checking Account
  • 30 = Credit Card Account
  • Note: This type of multiple account card is currently specific to South American markets.
Virtual & Physical
Pin Block052A PIN block in 3DES ISO-1 formatPhysical
POS Data061Data from the POS terminal used in the transactionPhysical
TraceID063Additional data received from Mastercard Network DE 48, Sub element 63Virtual & Physical
Extended payment code067Code indicating extended payment transactionVirtual & Physical
Is recurring068Indicates that a transaction is recurringVirtual & Physical
message reason code0694 digitcan be emptyAll card types and transactions
Markup Amount085The markup amount applied to the transactionVirtual & Physical
Recipient Name108Name of the recipient of the funds in the transactionMoneysend
Recipient address109Street address of the person who receives the funds in the transactionMoneysend
Recipient account number110The account number of the person who receives the fundsMoneysend
Recipient account number type111The account type of the person who receives the fundsMoneysend
Capture Mode250
  • ***Note: We are in a transition period to implement a new behavior of this KLV index. KLV 250 will be used in conjunction with KLV 262 to show capture mode and transaction type.
  • MAG - Magstripe
  • MAN - Manual (Terminal)
  • EMV - EMV
  • OB - On Behalf (EMV)
  • NFC - NFC (EMV)
  • ECOM - Ecommerce
  • 3DS - 3D-Secure (Ecommerce)
  • ADJ - Adjustment
Virtual & Physical
Network251Local Mastercard VISA CUP Unknown AdjustmentVirtual & Physical
Fee Type252
  • 0 - No fee
  • 31 - Insufficient Funds
  • 32 - Withdrawal Limit Exceeded
  • 33 - Security Violation
  • 34 - Transaction Not Supported
  • 35 - PIN Tries Exceeded
  • 36 - Invalid PIN
  • 37 - PIN Length Error
  • 38 - Expired Card
Virtual & Physical
Last four digits PAN253The account number's last four digits of the card being swiped.Physical
MDES Digitized PAN254The PAN which was digitizedTokenization - MDES
MDES Digitized Wallet ID255The Wallet ID (Wallet Reference) used to digitize the card. <br> 327 - M4M <br> 216 - Google Pay <br> 217 - Samsung Pay <br> 103 - Apple PayTokenization - MDES
Adjustment Reason256
  • 99 - Generic reason
  • 00 - MasterCard initiated
  • 01 - Forex conversion difference
  • 02 - Settlement without authorization
  • 03 - Reversal timeout/ not accepted
  • 04 - Refund
  • 05 - Chargeback
  • 06 - MoneySend
  • 07 - Purchase Cancellation - ONLY applicable to Union Pay
  • 08 - Purchase Cancellation Reversal - ONLY applicable to Union Pay
  • 09 - Stand-in
  • 10 - Mass Transit Debt Collection
  • 11 - Final settlement - Unused funds
  • 26 - OCT (Visa only)
Virtual, Physical and Moneysend
Reference ID257Transaction ID of the original Deduct if anyVirtual & Physical
Markup Type2580 - No markup <br> 1 - Regular markup <br> 2 - DCC markupVirtual & Physical
Acquirer Country259Country of the acquirer of a transactionVirtual & Physical
Mobile number260Data containing the mobile number enteredVirtual & Physical
Transaction Fee Amount261Fee amount applicable to the incoming transaction if anyAlways sent in the 'Deduct' callVirtual & Physical
Transaction subtype262***Note: We are in a transition period to implement a new behavior of this KLV index. KLV 250 will be used in conjunction with KLV 262 to show capture mode and transaction type. Identifies a transaction as MDES or 3DS NB. This field will be empty if the transaction is neither MDES nor 3DSMDES - 3DS
Card Issuer Data263Information about the card issuerColombia onlyVirtual & Physical
Tax264Amount of tax charged on transactionColombia onlyVirtual & Physical
Tax amount base265Value of the tax base amount usedColombia onlyVirtual & Physical
Retailer data266Information about the retailer where transaction took placeColombia onlyVirtual & Physical
IAC Tax amount267Rate levied by IACColombia onlyVirtual & Physical
Number of Installments268Number of installments to pay for the transactionVirtual & Physical
Customer ID269ID value that identifies the customerColombia onlyVirtual & Physical
Security Services Data270Authentication risk analysis reason codes (ARA)Mastercard onlyVirtual & Physical
On behalf of services271Indicates this is an 'on behalf of' transactionVirtual & Physical
Original Merchant Description272The original description received from the merchantVirtual & Physical
Installments financing type273Data that indicates the type of financing selected to pay installmentsBrazil onlyVirtual & Physical
Status274
  • Associated with 3D Secure Out of Band authentication, providing additional status information in the Administrative Message 3DSecureAppFinalisation.
  • This field communicates status updates crucial for verifying transactions securely through a separate channel, typically a mobile app.
  • Possible values:
  • 0 - Successfully received final status
  • 1 - Timer on browser expired before response was received
  • 2 - General error
  • 3 - Transaction cancelled before response was received
Virtual & Physical
Installments grace period275Data indicating duration of the grace period for payment of the installmentMexico onlyVirtual & Physical
Installments type of credit276Data indicating the type of credit used for the installment transactionMexico onlyVirtual & Physical
Payments Initiator277Represents who triggered the transaction. Potential values are "merchant", "cardholder", or an empty string/no value when cannot be determinedMastercard onlyVirtual & Physical
Payment Initiator Subtype278
  • Some values can be either merchant initiated transactions or cardholder initiated transactions, such as Standing Order, where the first payment would typically be initiated by the cardholder. Potential values, when available:
  • "Unscheduled Credential on File"
  • "Standing Order""Subscription"
  • "Installment"
  • "Partial Shipment"
  • "Related/Delayed Charge"
  • "No Show Charge"
  • "Resubmission"
  • "Credential-on-file"
Mastercard onlyVirtual & Physical
Additional amount300Cashbacks come as an "additional amount"Columbia only
Second additional amount301There can be a maximum of two cashback amounts that can come through in a transactionVirtual & Physical
cashback POS currency code302Represents the currency code of the cashback amountPhysical
cashback POS amount303Displays the actual cashback amountPhysical
Sender name400Name of the senderVisa Direct & Money send
Sender Address401Street address of the person who sent the funds in the transactionVisa Direct & Money send
Sender city402Name of the city of the person who sent the funds in the transactionVisa Direct onlyVisa Direct only
Sender state403Name of the State if the person who sent the funds in the transactionVisa Direct onlyVisa Direct only
Sender country404Name of the country of the person who sent the funds in the transactionVisa Direct onlyVisa Direct only
Sanction screening score405Data indicating the score achieved during sanction screening in the transactionVisa Direct and Moneysend
Business application identifier406Code that identifies the intended use of a push payment in the transactionVisa Direct onlyVisa Direct only
Special condition indicator408Data indicating any special conditions for the transactionVisa Direct onlyVisa Direct only
Business tax ID409Data indicating the value of the business's tax ID numberVisa Direct onlyVisa Direct only
Individual tax ID410Data indicating the value of the customer/individual's tax ID numberVisa Direct onlyVisa Direct only
Source of funds411Data indicating where the funds come fromVisa Direct & Money send
Sender account number412The account number of the person who sent/paid the fundsVisa Direct & Money send
Sender Account Number Type413The account type of the person who sent/paid the fundsVisa Direct & Money send
MVV414Merchant Verification Value is used to identify merchants that participate in various programs and is unique to a merchantVisa Direct onlyVisa Direct only
Sender reference number415sender reference number(Visa Direct only)Visa Direct only
is afd transaction416AFD Transaction indicator for MCC 5542.1: AFD TXN, 0: NOT AFD Virtual & Physical (AFD only)
acquirer fee amount417Acquirer fee amount in transaction currencyVirtual & Physical
Address Verification Result418
  • 0- postal/zip code and address matches
  • 1-postal/zip code matches, address does not
  • 2-Address matches, postal/zip code does not match
  • 3-Neither address nor postal/zip code match
Virtual & Physical
Postal code / ZIP code419Cardholder postal/ZIP codeVirtual & Physical
Street address420Cardholder street address only without city or areaVirtual & Physical
Sender Date of Birth421The Date of Birth of the person who sends the funds in the transaction.Visa Direct onlyVisa Direct only
OCT Activity check result422
  • The activity check result of the Original Credit Transaction (OCT) when velocity checking has been performed.
  • 1 = 1-day count or amount exceeded.
  • 2 = 7-day count or amount exceeded.
  • 3 = 30-day count or amount exceeded.
Visa Direct onlyVisa Direct only
Sender postal code423The postal code of the person who sends the funds in the transaction.Visa Direct onlyVisa Direct only
Recipient city424The city of the person who receives the funds in the transaction.Visa Direct onlyVisa Direct only
Recipient country425The country of the person who receives the funds in the transaction.Visa Direct onlyVisa Direct only
3D Secure OTP900Dynamic One Time Password for 3D Secure3DS
Digitization activation901The password needed to activate an MDES digitization requestTokenization
Digitization activation method type902Method used to send OTP to activate a tokenTokenization
Digitization activation method value903Code numerical value that indicates method used to send OTP to activate a tokenTokenization
Digitization activation expiry904Expiry of the activationTokenization
Digitization final tokenization decision905
  • 1 = approve
  • 2 = approve but with additional authentication
Tokenization
Device name906Up tp 20 characters. This is the device name associated with the wallet providerTokenization
Digitized Device ID910The ID of the type of device used for tokenizationTokenization
Digitized PAN expiry911Expiry date of the DPANTokenization
Digitized FPAN Masked912The masked FPAN
Token Unique Reference913The token reference during the processTokenization
Digitized Token Requestor ID915Token Requestor ID during the processTokenization
Visa Digitized PAN916The digitized PAN for VisaVisa onlyTokenization - VTS
Visa token type917Data indicating the type of tokenVisa onlyTokenization - VTS
POS Transaction Status920
  • Point-of-Service Data about the transaction status
  • 0 = Standard request
  • 1 = Deferred authorization
  • 4 = Pre-authorization request
Physical
POS Transaction Security921Point-of-Service Data about the securityPhysical
POS Authorisation Lifecycle922Point-of-Service Data about the Authorization LifecyclePhysical
Digitization event type923Event types include: Deleted, Deleted_from_device, Stopped, Digitized, Digitization_Exception, ReplacementTokenization
Digitization event reason code924Code relating to a Digitization Exception event typeTokenization
Supports partial auth925Indicates a transaction supports partial authorisation transactionVirtual and Physical
Digitization path929
  • GREEN
  • YELLOW
  • ORANGE
  • RED
Tokenization
Wallet recommendation930
  • Decline
  • Approve
  • Require_additional_authentication
Tokenization
Tokenization pan source931
  • card_on_file\
  • card_added_manually\
  • card_added_via_application\
  • existing_token_credential\
  • card_added_via_browser
Tokenization
Unique Transaction Reference932Unique Transaction Reference number for Mastercard MoneySend paymentMoneysend
Transaction purpose933Transaction purpose detailsMoneysend
3D Secure OTP RefCode934Dynamic 4 letters reference code to be used along with 3DS OTP messagesBankServ only3DS
Generic Key999Reserved for other uses

Stop Reason ID Codes

Reason IDInternal CodeNetwork response (Mastercard)Network response (Visa)Description
120084141Lost Card
220094343Stolen Card
310046262Do not honor
410165151Insufficient funds
510181414Invalid card number
610067575PIN tries exceeded
710020559Do not honor
Other10000505Do not honor