Credblock Request Body
When interacting with certain APIs, it is essential to provide a credblock string as part of the request body. The credblock serves as an encrypted string, meticulously generated by the NPCI Common Library. This encrypted string is employed to validate the MPIN (Mobile Personal Identification Number) with the customer's bank.
The credblock string encompasses one or more data blocks, each tailored to the specific requirements of the API. Within these data blocks, three crucial fields are included: data, subtype, and type.
Data Field: The
datafield is a container for multiple key-value pairs, each playing a unique role in the transaction. The following keys are commonly found within thedatafield:"type"
"skey"
"pid"
"ki"
"hmac"
"code"
"encryptedBase64String”
Subtype field: The
subtypevalue specifies the nature or category of the data being processed, providing additional context for the transaction. It may contain one of the following values:SMS
MPIN
NMPIN
ATMPIN
CARDDETAILS
IDENTITY
SIGNATURE
Type Field: The
typevalue delineates the specific type of data encapsulated in the block, offering clarity on the purpose and usage of the information. The data block may contain one of the following values:OTP
PIN
CARD
DEVICE
ARQC

