Skip to main content
POST
Retrieve Encrypted PIN

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-audit-user
string

Optional audit user header

Body

application/json

Request payload for successful PIN retrieval.

pinControlId
string<uuid>
required

Control ID that was returned in the Request PIN Control Access Token Endpoint.

Example:

"20218aae-b15e-406c-9e9f-23735cd86a48"

pubKey
string
required

RSA 2048 public key in PEM format (X.509 SubjectPublicKeyInfo). The key may contain:

  • new lines,
  • the PEM headers ("-----BEGIN PUBLIC KEY-----" and "-----END PUBLIC KEY-----") The key must not contain any spaces.
Example:

"-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArMRPoM6Za3XDIsomnVObGJsrHHHIRZ5zRsVoU8Unie9QvK9OBf0cCGyXd8XPky7W3m/KDKLGUnfne8vAMOeT1NpBgQnv2lcpIfBMLjSUKT5gIcJMY00Asqjvi4YFwRdW9AxSThxtkb7AIsJJiRwbAGFDnt+Ic/gIQS5s1vnuIjaYBTbzYtwnh3WBQ7DJsCVes81onwapGtdiswQD15cNhAI5853/uB/vno3j3tOq3gpm9+qLa6FYGfWZan07k+RMCVF1v6kxa9teCj6V3cysdtPeK9+gQnBjuuSESQL7/s/BgC7QxLqBCabkFyLo+3QO+iKmfeKPX8imV1rUgyjo3QIDAQAB-----END PUBLIC KEY-----"

Response

Successful retrieval of PIN.

pinBlock
string
required

Hex encoded value of the pin block (ISO PIN Block Format 1). It is 3DES (double length key) encrypted with the key from the tzpk field (which is provided in encrypted form).

Example:

"9358E39632CAAAC2"

tzpk
string
required

Terminal Zone PIN Key (TZPK) that decrypts the generated PIN block to retrieve the actual PIN. Hex encoded value, encrypted with the pubKey passed as input. Once decrypted, this is the 3DES key used for decrypting the pin block.

Example:

"A59DA3A12AF8254034B2167EEF1773B0E5B230C558C5C6CE1BA4D65C43B2C20E24FE41C51BEF799087D55B4EB3E9DA0C8845CF76EF569D3C3F6D5A818F7F18EF634231E102A88830ABAF983BF2FB9C35DDDAAC47DB004EEF80E14B9D9E5CAE30CCF42596F4BD8B524EFCA6F538C13AFC7D1D22C9A31B58F166D85787119AC5A60EA23FCDE274787EC72403CFC313B27B53E4B9E4E414589DE5FD71EBBAC84A792B9B2A3A32335C221D3440F40DA6D9755FE7A15C47174C3595C1EDC685E86740C06FF9B76451E85E8C8934E24563D0D24B4C8E449B72E768A8706895AB574D023D9E9CBBBDC22206E25612FBC7CC5A9DEA7863992CE9C8399BAD4AC2BDFA2404"