Initiate Card Data Prep
This API initiates a card data preparation request for multiple cards.
Request Message description
| Field # | Field name | Data type | Max length | Required | Description | 
|---|---|---|---|---|---|
| 1 | cardData | string | true | Encrypted Card Data from Smart Card Client | |
| 2 | issuerCode | string | true | Issuer Code for Data Prep | |
| 3 | persoCode | string | true | Perso Code for Data Prep | |
| 4 | jobTemplateId | int | true | Job Template Id for Data Prep | |
| 5 | cardDataType | string | true | Card Data Type for Data Prep | |
| 6 | creatorEmail | string | true | Creator Email for Data Prep | |
| 7 | passphrase | string | false | 
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 name | Description | 
|---|---|---|
| 1 | code | Internal Response Code | 
| 2 | description | Successful or Error Message | 
| 3 | correlationId | Request identifier | 
| 4 | requestId | Request Identifier from Smart Card Client | 
| 5 | message | Response Message from Smart Card Client | 
| 6 | errors | Errors 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"
    }
  ]
}
Updated 4 months ago
