Fetch Request Logs
This API handles requests to fetch request logs by correlation id, start date, end date, with pagination, sorting and other filter options. If no parameters are passed in the request, the response will return the most recent 100 records. The request logs returned are filtered automatically by the client id used in the authentication token.
Request Parameters description
Field # | Field name | Data type | Required | Description |
---|---|---|---|---|
1 | correlationId | string | false | Unique Correlation ID returned in the response at the time of the Request |
2 | requestStart | string | false | Start Date for the Request Period in format yyyyMMddHHmmss e.g 20220701154500 |
3 | requestEnd | string | false | End Date for the Request Period in format yyyyMMddHHmmss e.g 20220804154500 |
4 | pageNumber | int | false | Page Number to fetch if pagination applied |
5 | pageSize | int | false | Page Size to fetch if pagination applied |
6 | sortKey | string | false | Sort Records by either of id, request_url, date_created |
7 | sortOrder | string | false | Sort Order either ASC or DESC |
8 | searchFilter | string | false | Search fields by matching text e.g /api/v1/card/unblock |
9 | responseCode | string | false | Response Codes like 200, 400, 404, 409, 500 |
10 | clientName | string | false | Client Name for the Request |
11 | requestUrl | string | false | Filter by particular url (e.g /api/v1/card/request) |
12 | statusInd | string | false | Status Indicator - 0 as default if not provided. 1 for successful requests and 2 for failed requests. |
POST /card-management/api/v1/logs/client-requests
Authorization = Bearer Token
Sample Request
GET /card-management/api/v1/logs/client-requests?correlationId=f2327f1becb34faeb1a32c00c3ff4598&requestStart=20220701154500&requestEnd=20220804154500&pageNumber=1&pageSize=10
&sortKey=date_created&sortOrder=DESC&searchFilter=%2Fapi%2Fv1%2Fcard%2Funblock
Response Message field description
Field # | Field name | Description |
---|---|---|
1 | code | Internal Response Code |
2 | description | Successful or Error Message |
3 | requestLogs | Request and Response details |
4 | requestLogDetails | Card Production Request Details. Only displayed when retrieving request logs by correlation id for single and bulk card production requests |
5 | errors | Errors array if any errors exists. |
6 | totalCount | Total Count of records matching the search criteria |
Sample Response (success)
{
"code": "200",
"description": "Successful",
"requestLogs": [
{
"clientId": "IKIA9863935DB397BE2F1B3BD8AE0F45B66F92C6B46A",
"responseCode": "200",
"correlationId": "08984778b6e84a4eac042f31cb69d465",
"requestMethod": "POST",
"requestUrl": "https://fintech-card-management.k8.isw.la/card-management/api/v1/card/changePin",
"dateCreated": "2023-11-08 15:03:31.987",
"requestParams": "{}",
"status": "Successful",
"request": "{\"pan\":\"5063210000000014497\",\"seqNr\":\"001\",\"expiryDate\":\"2611\",\"pin\":\"77badea85037e4f70e5c1cba1b5e0dca664f118217ab00bb1bcb245a3128cf8f70d6b8ec7a5c1c5de9ade856ef5c21e9616547fdbb546fcc3d93b2fc7c74a55c1acb2d3a6fd2e6fa9b2f326212d265c99ea068347f1b736f9a0196be2751b1785f76e90f8208275c74f6b0f8f321fcd613218246f8861dc3e887ad0fdea6febf37e65ebd4d9f1e6ea60f788e4b15c5a0e267988c1cd609ae87b4a201a393acfedfc3031f903af81005a487783cb6da2597aa0fec696d0a9ad4ab95db4f295b0cac8cc1402e4df41085fbc8f249e08b2fd82b12748e97f18d89c470cb84ef980cca22ce7136e0a1b553905d08a1018a28597433c6b11f7be34a48236f3c409368\",\"accountType\":\"20\",\"userId\":\"FBNClient\",\"correlationId\":\"08984778b6e84a4eac042f31cb69d465\",\"oldPin\":\"00452e51c45e76acf3b5892de25425c0d8a17f6a44bd088a80d72be1fe36254638e9a15f36328c2fd22e75984b063a50de7810868112c3b3b4c9870de566e24ee9fd79cbf9b93c02d1a725c8d415bb765aa600eb2dad07e85a5714c38a413e8abd120d02830b41e8c7c1816c9e051193dda51d469af111c923cd415e754221f6d80204de9f9e5519fe203e4abbab4b4dcb468b607db0bb910afc30a0af25371e5805bfbcb346b817e5fe5a7c472146c3a1228668084c4b62655cf01e11825323826b0438df826efc0fa8603b29c6c83a27be38d2e5c9d8d781f8b4510c88224bc04ad11968c50b6bdecc5dfd44ccca56f38b59eaeb595692564c47e314ac67fb\",\"cvv2\":\"315\"}",
"response": {
"code": "00",
"description": "Successful",
"correlationId": "08984778b6e84a4eac042f31cb69d465"
},
"clientName": "Smart Card Client",
"clientCode": "smartcardclient"
},
{
"clientId": "IKIA9863935DB397BE2F1B3BD8AE0F45B66F92C6B46A",
"correlationId": "3aa311e8723f4483ac96ded986ba0931",
"requestMethod": "POST",
"requestUrl": "https://fintech-card-management.k8.isw.la/card-management/api/v1/card/changePin",
"dateCreated": "2023-11-08 15:01:29.197",
"requestParams": "{}",
"status": "Failed",
"request": "{\"pan\":\"5063210000000014497\",\"seqNr\":\"001\",\"expiryDate\":\"2611\",\"pin\":\"3094886fe51b02b3cf44c95f02036b372c071236da68f3ca8c009e7d09ccf0abc9eadbbd6d7533e1dd4df53e8c0351325f1a6742f905dc668c6d0d5421f93858442766f9482da467edbdbaa34505e03027a5a30f805f32eb7d9104a62027a355b0f126d443eabeff4cde48555aa4741fd635e4178d8cdd2db39acc0534be0bb63f28669beae822bc411bbd0404b3b17e17c92bf76ed5830b3ad66cecbaa7099879e09732a254b0184bf3a568f21460f15b5aea14f8e4e4ba1974a3f64f1736a8dc81702c9338fba513c083b22af1eea8a008c52df97657a5ae6737922e88071ccc700fd2dd6f859c2387cae304c746020ad66be139505f3b1779e0d8b730f4b5\",\"accountType\":\"20\",\"userId\":\"FBNClient\",\"correlationId\":\"3aa311e8723f4483ac96ded986ba0931\",\"oldPin\":\"3d05f3115a811d120612f2351be9e25c527427542220579771f9aa520146f8217eb48ac082636856bb3450ae0a337871ad2f4f2699fabb238a6ca4ffb583afc51ff12dab53124c98271c52482d8766068637184df5a574a35063f25b0263817fbdff68367e117c19b96ae52f0f9b8518073a54c4fe4ce19a37d0a5d9fb6788b5de068231c2fb4aa2b27d6d1cae6eab32d7401645bba00b0374cd4220ca2976337243e054a07d36d7829fe0c31884339478328b9b7ad9d3b9af94c2d5a8aa3aedfcb012d83dd9de965587cf41714fb7c31319c1c5f80613fde1329fd00dcb3cf33493a076e57994dfca131c1c47e0c02d8ae801558bd0f8e9566200295a851d8c\",\"cvv2\":\"315\"}",
"clientName": "Smart Card Client",
"clientCode": "smartcardclient"
}
],
"totalCount": 762
}
Sample Response (failure)
{
"code": "400",
"description": "Some parameters specified are required or invalid",
"errors": [
{
"message": "Something wrong with the requestStart or requestEnd. Kindly use format 'yyyyMMddHHmmss'. e.g '20221225154500'",
"fieldName": "requestStart, requestEnd"
}
]
}
Updated 8 months ago