Fetch Prepared Cards

This API handles requests to fetch prepared cards from Smart Card Client by issuer code, perso code, start date, end date and pagination features.


Request Parameters description

Field #Field nameData typeRequiredDescription
1issuerCodestringtrueIssuer Code for Data Prep
2persoCodestringtruePerso Code for Data Prep
3pageNumstringfalsePage Number for paginated data
5pageSizestringfalsePage Size for paginated data
6startDatestringfalseStart Date in 'yyyy-MM-dd' format e.g 2022-06-01
7endDatestringfalseEnd Date in 'yyyy-MM-dd' format e.g 2022-06-30

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

Sample Request

https://payment-api.k8.isw.la/card-management/api/v1/data-prep?issuerCode=tst&persoCode=tps&pageNum=1&pageSize=10&startDate=2022-06-23&endDate=2022-06-28

Response Message  field description


Field #Field nameDescription
1codeInternal Response Code
2descriptionSuccessful or Error Message
3totalSuccessfulnumber of records successful
4totalFailednumber of records failed
5totalInProgressnumber of records in progress
6pagepage number
7countnumber of records
8dataList of card data prep details
9errorsErrors array if any errors exists.

Sample Response (success)

{
  "code": "00",
  "description": "successful",
  "totalSuccessful": 0,
  "totalFailed": 29,
  "totalInProgress": 0,
  "page": 1,
  "count": 29,
  "data": [
    {
      "id": 183,
      "requestId": "10dfc5ee-d43e-42ab-bcd1-bc4314ea9839",
      "issuerCode": "tst",
      "persoCode": "tps",
      "cardDataType": "test",
      "status": "JOB_ABORTED",
      "message": "Failed to retrieve Issuer Certificate(s)",
      "creatorEmail": "[email protected]"
    },
    {
      "id": 182,
      "requestId": "6518f426-7a46-4919-b6ee-b12699352328",
      "issuerCode": "tst",
      "persoCode": "tps",
      "cardDataType": "test",
      "status": "JOB_ABORTED",
      "message": "Failed to retrieve Issuer Certificate(s)",
      "creatorEmail": "[email protected]"
    }
  ]
}

Sample Response (failure)

{
  "code": "10400",
  "description": "issuerCode is required."
}