{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/wordline/main/json-schema/wordline-api-response-entity-get-pin-response-schema.json", "title": "ApiResponseEntityGetPinResponse", "description": "Issuer response entity", "x-generated": "2026-10-10", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/wordline-card-pin-api-openapi.yml#/components/schemas/ApiResponseEntityGetPinResponse", "type": "object", "required": [ "responseMetadata" ], "properties": { "data": { "description": "Response data", "allOf": [ { "$ref": "#/$defs/GetPinResponse" } ] }, "responseMetadata": { "description": "Response metadata", "allOf": [ { "$ref": "#/$defs/ResponseMetadata" } ] } }, "$defs": { "CardIdentifier": { "type": "object", "description": "Identification of the card either by Issuer card external reference or by card reference", "properties": { "cardReference": { "type": "string", "description": "Reference of the card generated by our system, unique per platform.\nThis reference is calculated sequentially by an internal algorithm on 16 digits (e.g. 2000000000096013)." }, "issuerCardExternalReference": { "type": "string", "description": "External reference of the card provided by the issuer or calculated by the system if the external reference generation algorithm is configured for the issuer.\nThis reference is unique per issuer and may be used to carry out research and find information." } }, "title": "CardIdentifier" }, "EncryptedData": { "type": "object", "required": [ "algoId", "encryptedData", "keyId" ], "properties": { "algoId": { "type": "string", "description": "Algorithm used to encrypt Session Key\nAllowed Value:\n06 for RSA" }, "encryptedData": { "type": "string", "description": "Cryptogram in hexadecimal string representation" }, "keyId": { "type": "string", "description": "Key set used for request\nAllowed Value:\n01 - Keyset1\n02 - Keyset2" } }, "title": "EncryptedData" }, "GetPinResponse": { "type": "object", "required": [ "externalPinAttribute" ], "properties": { "cardIdentifier": { "$ref": "#/$defs/CardIdentifier" }, "externalPinAttribute": { "$ref": "#/$defs/PinAttribute" } }, "title": "GetPinResponse" }, "Links": { "type": "object", "required": [ "self" ], "properties": { "self": { "type": "string", "description": "Service method URL" }, "next": { "type": "string", "description": "URL pagination query parameter next page" } }, "title": "Links" }, "PinAttribute": { "type": "object", "required": [ "pinAlgorithmId", "pinBlock", "pinBlockFormat" ], "properties": { "encryptedSessionKey": { "$ref": "#/$defs/EncryptedData" }, "key": { "type": "string", "description": "Not used" }, "keyId": { "type": "string", "description": "Key set used for response\nAllowed Value:\n01 - Keyset1\n02 - Keyset2" }, "pinAlgorithmId": { "type": "string", "description": "Algorithm used to encrypt the PIN\nAllowed Value:\n04 = ISO-4 (=> encryptedSessionKey required)\n05 = ISO-1-BAPOF (internal transport + BE banks)\n06 = RSA-APAC (deprecated)\n07 = BEST-PIN (internal migration)" }, "pinBlock": { "type": "string", "description": "PIN block in hexadecimal string representation" }, "pinBlockFormat": { "type": "string", "description": "ISO-4, ISO-1-BAPOF, RSA-APAC, BEST-PIN, etc. (free text, no strict constraint)" } }, "title": "PinAttribute" }, "ResponseMetadata": { "type": "object", "required": [ "correlationId", "responseDateTime", "statusCode", "statusMessage" ], "properties": { "correlationId": { "type": "string", "description": "Correlation Identifier" }, "links": { "description": "Metadata Links", "allOf": [ { "$ref": "#/$defs/Links" } ] }, "statusMessage": { "type": "string", "description": "Executed REST API status message" }, "statusCode": { "type": "integer", "format": "int32", "description": "HTTP status code" }, "responseDateTime": { "type": "string", "description": "Timestamp when response date was generated" }, "timeTakenMs": { "type": "integer", "format": "int64", "description": "Wall clock time required from service to generate the response" } }, "title": "ResponseMetadata" } } }