Update Pin Key

This API updated the pin key of the user with the specified key on postcard.

Request Message description

Field #Field nameData typeMax lengthRequiredDescription
1pinKeystring16 to 32trueThe new triple DES pin key to be updated on the db
2securePinbooleantrue or falsetrueIndicates whether or not the pin is secure
3translatePinBlkbooleantrue or falsetrueIndicates whether or not to translate the pin block
4operationint1(1, 2or 3)trueWhere the operation is 1, only the values for securePin and translatePinBlk will be updated. Where the operation is 2, only the pinKey value will be updated. Where the operation is 3, all three values will be updated.
POST /card-management/api/v1/user/pin-key/update
Authorization = Bearer Token

Sample Request

{
	"pinKey": "C1D0F8FB4958670DBA40AB1F3752EF0D",
    "securePin": "true",
    "translatePinBlk": "true",
    "operation": 3
}

Response Message  field description


Field #Field nameDescription
1codeInternal Response Code
2descriptionSuccessful or Error Message

Sample Response (success)

{
	"code": "200",
    "description": "Key details updated",
    "correlationId": "8f6d59f7357d45feb84573ba7f7cadfc"
}

Sample Response (failure)

{
	"code": "10400",
    "description": "Pin Key is not a valid Triple DES key",
    "correlationId": "94d7c541dbc041db8e8e3024974bdede"
}