Initiate Card Data Prep

This API initiates a card data preparation request for multiple cards.


Request Message description

Field #Field nameData typeMax lengthRequiredDescription
1cardDatastringtrueEncrypted Card Data from Smart Card Client
2issuerCodestringtrueIssuer Code for Data Prep
3persoCodestringtruePerso Code for Data Prep
4jobTemplateIdinttrueJob Template Id for Data Prep
5cardDataTypestringtrueCard Data Type for Data Prep
6creatorEmailstringtrueCreator Email for Data Prep
7passphrasestringfalse

POST /card-management/api/v1/data-prep
Authorization = Bearer Token

Sample Request

{
  "issuerCode": "tst",
  "persoCode": "tps",
  "jobTemplateId": 4,
  "cardDataType": "test",
  "cardData": "-----BEGIN PGP MESSAGE-----\\nVersion: BCPG v1.60\\n\\nhIwDsV+v4kB8N60CBACHHbsl7idLk4ScTBabB2w5G/dr2722MoDB4fTyFoznj/wH\\nn4L4d+1ligR79DVCUHpPVD//gUblivh1GG54R9Kmtv0KeEAdl+Hv4FBKZIZO22Qs\\nOA9FJMVvc9qDIx5A/aLic1PeKmT4W7ert4IXDprQWYuCFTJjNFQw1Fs3/Z0AWNLA\\nMgEebhQ3IPlDhbp+Lx+eFcldMvsK1OBFKEo3oUVwOvCkRnjbJNEvGw8v+pf7x59W\\n5tWfUu2E8VDdwNTJnd3czzstosEXxsbazzo1447D7HBW4ee5eot7CATI3Cfzc3Ja\\n5TS9SG306SndEqYF2k08XxGx4IZJcliCUcgltOpYBjiV4/nX8oTReWthemrxk0Ql\\nNceYwKERcE/iphFjw7ZF8N4I4Ne474aEKuN+8OsYRAQisSMD4s4mdFCyU/paEgrd\\nAId89i6WcxDGoiv2vnA5rOfAATeqSgQvZR+yEjYA4uA/iql55W0pRojTE8KaCBB5\\naqv/\\n=wA3p\\n-----END PGP MESSAGE-----\\n",
  "creatorEmail": "[email protected]",
  "passphrase": "string"
}

Response Message  field description


Field #Field nameDescription
1codeInternal Response Code
2descriptionSuccessful or Error Message
3correlationIdRequest identifier
4requestIdRequest Identifier from Smart Card Client
5messageResponse Message from Smart Card Client
6errorsErrors array if any errors exists.

Sample Response (success)

{
    "code": "00",
  "description": "Success, kindly take note of the requestId.",
  "correlationId": "7221f10a2c414fdb9404e694ef789c47",
  "jobTemplateId": 4,
  "requestId": "dc26a678-ecce-40e8-b545-9a7ddd5483d0",
  "message": "The card preparation request has been received and the preparation is in progress"
}

Sample Response (failure)

{
  "code": "400",
  "description": "A client error has occurred, please check the error(s) below.",
  "correlationId": "46d41074fe0948779c37077731bda1e0",
  "errors": [
    {
      "message": "Perso code and/or Issuer code is not mapped to this client",
      "fieldName": "uri=/smartcardclient/api/v3/card"
    }
  ]
}