Skip to content

List Cards/Accounts

Request URL

POST /ibis/card/list

Description

Use this endpoint to list all cards and vAccounts belonging to the specified customer that were issued through /ibis endpoints.

Schema

Property table for ibis/card/list

Property Description Required Schema
customerId Customer ID in connectFi Yes {
  "type": "string",
  "pattern": "^[0-9a-zA-Z_]+$",
  "minLength": 1,
  "maxLength": 36,
  "$id": "common-id"
}

Request Body

{
    "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI"
}

Snippet Examples

javascript

const axios = require('axios');
const data = {
    "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI"
};
const config = {
  method: 'POST',
  url: '${CONNECTFI_BASE_URL}/ibis/card/list',
  headers: {
    'Content-Type': "application/json",
    'x-connectfi-token': "A long random string token received from /auth/get-token request"
  },
  data
};

let result;
try {
  result = await axios.request(config);
  if (result.status === 200) {
    console.log(JSON.stringify(result.data));
  }
} catch (err) {
  console.log({
    errCode: err.code,
    responseStatus: err.response && err.response.status,
    data: err.response && JSON.stringify(err.response.data)
  });
}

cURL

curl --location "CONNECTFI_BASE_URL/ibis/card/list" --data "{\"customerId\":\"cstap_7uvAC6nLftLGCq7yic3TfI\"}" --header "Content-Type: application/json" --header "x-connectfi-token: A long random string token received from /auth/get-token request" 

Successful Response Examples

200 SUCCESSFUL RESPONSE

HEADERS

Header Value
Content-Type application/json
x-connectfi-token A long random string token received from /auth/get-token request

REQUEST BODY

{
    "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI"
}

RESPONSE BODY

{
    "code": "0",
    "data": [
        {
            "cFiCardId": "icrd_3Mr1CXBfclVKd3qmNfaonw",
            "cFiStatus": "Error",
            "error": {
                "code": "12",
                "message": "New Card Purchase Decline (Allocated credit limit must be less than or equal to [2000.0]; )"
            },
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "324339272",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "dtsCreatedAt": "2023-08-29T14:58:16.974Z"
        },
        {
            "cFiCardId": "icrd_6FiqNbY2Ez1tve5acTLEFc",
            "cFiStatus": "Error",
            "error": {
                "code": "12",
                "message": "New Card Purchase Decline (Allocated credit limit must be greater than or equal to [500.0]; )"
            },
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "324329272",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "dtsCreatedAt": "2023-08-29T16:19:40.437Z"
        },
        {
            "cFiCardId": "icrd_4JbRcuoz4Q3awfNWzN1LvI",
            "cFiStatus": "Error",
            "error": {
                "code": "12",
                "message": "New Card Purchase Decline (Allocated credit limit must be less than or equal to [2000.0]; )"
            },
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "324329072",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "dtsCreatedAt": "2023-08-29T19:45:29.068Z"
        },

        {
            "cFiCardId": "icrd_szJpdjeg3oGh1xOg9sG30",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "324333272",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333167860246",
            "boCustomerId": "333000000001678602",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "121182810",
            "dtsCreatedAt": "2023-08-30T18:35:57.172Z"
        },
        {
            "cFiCardId": "icrd_5TtpZ9mPtyBZpBEueCKtRo",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "card1",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333167866105",
            "boCustomerId": "333000000001678661",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "121182810",
            "dtsCreatedAt": "2023-08-31T17:28:10.567Z"
        },
        {
            "cFiCardId": "icrd_5n5J5eVQslQRFiXg0xSwYG",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "cardabc123",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333167866411",
            "boCustomerId": "333000000001678664",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "121182810",
            "dtsCreatedAt": "2023-08-31T17:49:10.273Z"
        },
        {
            "cFiCardId": "icrd_1YOEZ5WZnQo2L0HtL9TpZM",
            "cFiStatus": "Error",
            "error": {
                "code": "12",
                "message": "New Card Purchase Decline (Allocated credit limit must be greater than or equal to [500.0]; )"
            },
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "324333268",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "dtsCreatedAt": "2023-09-07T13:20:03.360Z"
        },
        {
            "cFiCardId": "icrd_2zGii7F5MWd2T1gAf6ih3A",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "324333269",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333167924819",
            "boCustomerId": "333000000001679248",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "121182810",
            "dtsCreatedAt": "2023-09-07T13:20:36.101Z"
        },
        {
            "cFiCardId": "icrd_503QHOSIn3XGlLvoDKBPJ8",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extReI138",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333167937669",
            "boCustomerId": "333000000001678664",
            "dtsCreatedAt": "2023-09-12T19:57:45.830Z"
        },
        {
            "cFiCardId": "icrd_FiUp5vWH0g9UDEMcBHpC2",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extReI141",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333167937975",
            "boCustomerId": "333000000001678661",
            "dtsCreatedAt": "2023-09-12T20:22:24.864Z"
        },
        {
            "cFiCardId": "icrd_1UhyjEDpbxOJrl6HgNpXBE",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extReI1371",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333168045795",
            "boCustomerId": "333000000001679248",
            "dtsCreatedAt": "2023-09-27T14:36:29.103Z"
        },
        {
            "cFiCardId": "icrd_1X0siUgAVeZanxKWR9zPNg",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "324333278",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333219410591",
            "boCustomerId": "333000000002194105",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "121182810",
            "dtsCreatedAt": "2023-10-24T20:59:41.103Z"
        },
        {
            "cFiCardId": "icrd_78T1ylMNasfWmcpT7BjVJM",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "324333248",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333219410666",
            "boCustomerId": "333000000002194106",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "121182810",
            "dtsCreatedAt": "2023-10-24T21:04:27.271Z"
        },

        {
            "cFiCardId": "icrd_4TnFceYRAh0fAbzTj41uv0",
            "cFiStatus": "Error",
            "error": {
                "code": "12",
                "message": "New Card Purchase Decline (Allocated credit limit must be greater than or equal to [500.0]; )"
            },
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "328333278",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "dtsCreatedAt": "2023-10-24T21:38:10.724Z"
        },
        {
            "cFiCardId": "icrd_7GG8pdXuCpzPq24y19bhSy",
            "cFiStatus": "Error",
            "error": {
                "code": "12",
                "message": "New Card Purchase Decline (Allocated credit limit must be greater than or equal to [500.0]; )"
            },
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "328333978",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "dtsCreatedAt": "2023-10-25T20:49:27.177Z"
        },
        {
            "cFiCardId": "icrd_nI9nnFGerD0ySKr5CzNJ0",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "3283332278",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333219415615",
            "boCustomerId": "333000000002194156",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "121182810",
            "dtsCreatedAt": "2023-10-25T20:49:53.926Z"
        },
        {
            "cFiCardId": "icrd_5tvSLlJYvsnNMMwsdgpBom",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extCrd1711214",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "d_gpr_test",
            "programType": "debit",
            "boReferenceId": "110195633981431",
            "boCustomerId": "110000001956339814",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "122244184",
            "dtsCreatedAt": "2023-10-26T20:17:36.067Z"
        },
        {
            "cFiCardId": "icrd_oUAdhl78e26zySf1FTL7I",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extCrd171121412",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "d_gpr_test",
            "programType": "debit",
            "boReferenceId": "110195634020281",
            "boCustomerId": "110000001956340202",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "122244184",
            "dtsCreatedAt": "2023-10-30T20:08:11.732Z"
        },
        {
            "cFiCardId": "icrd_575fma7wGFKTgSx537PMcO",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extCrd171121413",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "d_gpr_test",
            "programType": "debit",
            "boReferenceId": "110195634020706",
            "boCustomerId": "110000001956340207",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "122244184",
            "dtsCreatedAt": "2023-10-30T20:19:40.990Z"
        },
        {
            "cFiCardId": "icrd_5ak28Ay1XtnTYM1PLOoclc",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extCrd171121414",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "d_gpr_test",
            "programType": "debit",
            "boReferenceId": "110195634050773",
            "boCustomerId": "110000001956340507",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "122244184",
            "dtsCreatedAt": "2023-10-31T14:34:56.874Z"
        },
        {
            "cFiCardId": "icrd_1G7XuScZRw0JaXH0oOWrIK",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extIvAccount100",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "d_gpr_test",
            "programType": "vAccountOnly",
            "boReferenceId": "110195634079801",
            "boCustomerId": "110000001956340798",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "122244184",
            "dtsCreatedAt": "2023-11-01T17:43:49.907Z"
        },
        {
            "cFiCardId": "icrd_4oMGe28tFhZ4I69KP0wN2O",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extIvAccount101",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "d_gpr_test",
            "programType": "vAccountOnly",
            "boReferenceId": "110195634080113",
            "boCustomerId": "110000001956340801",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "122244184",
            "dtsCreatedAt": "2023-11-01T17:46:19.857Z"
        },
        {
            "cFiCardId": "icrd_5DqLvP1vQfeMc4k2e2wwE2",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "extIvAccount102",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "d_gpr_test",
            "programType": "vAccountOnly",
            "boReferenceId": "110195634080353",
            "boCustomerId": "110000001956340803",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "122244184",
            "dtsCreatedAt": "2023-11-01T17:47:28.012Z"
        },
        {
            "cFiCardId": "icrd_5jp4oVmXTH9siQNTouZ7vY",
            "cFiStatus": "Complete",
            "customerId": "cstap_7uvAC6nLftLGCq7yic3TfI",
            "cFiAggregatorId": "CLIENTID",
            "reference": "ExtRefICC100",
            "memberNumber": "cstcp_2WZ7ariGgrtumtUlD452LM",
            "cardProgramId": "Evolve_Test",
            "programType": "credit",
            "boReferenceId": "333219449753",
            "boCustomerId": "333000000002194497",
            "vAccountNumber": "1234567890123456",
            "abaRoutingNumber": "121182810",
            "dtsCreatedAt": "2023-11-01T18:01:29.193Z"
        }
    ],
    "requestId": "155b70a081b211ee9b7427220cc6c212"
}

200 SUCCESSFUL RESPONSE - NO CARDS FOUND

HEADERS

Header Value
Content-Type application/json
x-connectfi-token A long random string token received from /auth/get-token request

REQUEST BODY

{
    "customerId": "unknownId"
}

RESPONSE BODY

{
    "code": "0",
    "data": [],
    "requestId": "a1182fb081b311ee9b7427220cc6c212"
}