Skip to content

List Transactions

Request URL

POST /transfer-to/card/list/transactions

Description

This endpoint will list transactions that match the desired search criteria. Search criteria may be a date range, a status value, or a combination of criteria. You may also specify a maximum number of records to return using the numberOfRecords property (up to 1000) and you may specify a number of records to skip using the skipRecords property. Combine the numberOfRecords property with the skipRecords property to make displaying transaction lists in batches easy. For example, if you want to list transactions in batches of 150, you can set numberOfRecords to 150 and skipRecords to 0 in the first request. Then, increase skipRecords by 150 in each subsequent request to return the next batch and so on.

When making a request, if the number of transactions matching the criteria is greater than the numberOfRecords maximum requested, the response body will indicate that there are additional transactions ("more": true).

If no properties are included, an unfiltered transaction list will be returned (up to a maximum of 1000).

Schema

Property table for transfer-to/card/list/transactions

Property Description Required Schema
dateCreateFrom A beginning date in ISO Date format No {
  "type": "string",
  "format": "dateISO",
  "nullable": true
}
dateCreateTo An ending date in ISO Date format No {
  "type": "string",
  "format": "dateISO",
  "nullable": true
}
status status No {
  "type": "string",
  "nullable": true,
  "enum": [ "Unknown", "Manual", "Initiated",
"Complete", "Declined" ]
}
reversalStatus reversalStatus No {
  "type": "string",
  "nullable": true,
  "enum": [ "Unknown", "Reversal", "Reversed" ]
}
numberOfRecords The maximum number of desired records to return No {
  "type": "integer",
  "minimum": 1,
  "nullable": true,
  "description": "common-numberOfRecords"
}
skipRecords The number of records to skip when returning results No {
  "type": "integer",
  "minimum": 0,
  "nullable": true,
  "description": "common-skipRecords"
}
type type No {
  "type": "string",
  "enum": [ "push", "pull" ],
  "nullable": true
}

Request Body

{
  "dateCreateFrom": "2023-04-01T18:57:25.957Z",
  "dateCreateTo": "2024-05-10T18:57:25.957Z",
  "status": "Complete",
  "numberOfRecords": 1000,
  "skipRecords": 0
}

Snippet Examples

javascript

const axios = require('axios');
const data = {
  "dateCreateFrom": "2023-04-01T18:57:25.957Z",
  "dateCreateTo": "2024-05-10T18:57:25.957Z",
  "status": "Complete",
  "numberOfRecords": 1000,
  "skipRecords": 0
};
const config = {
  method: 'POST',
  url: '${CONNECTFI_BASE_URL}/transfer-to/card/list/transactions',
  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/transfer-to/card/list/transactions" --data "{  \"dateCreateFrom\":\"2023-04-01T18:57:25.957Z\", \"dateCreateTo\":\"2024-05-10T18:57:25.957Z\", \"status\":\"Complete\", \"numberOfRecords\":1000, \"skipRecords\":0}" --header "Content-Type: application/json" --header "x-connectfi-token: A long random string token received from /auth/get-token request" 

Successful Response Examples

200 TRANSFER-TO/CARD/LIST/TRANSACTIONS SUCCESSFUL RESPONSE USING DATE RANGE AND NUMBEROFRECORDS

HEADERS

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

REQUEST BODY

{
  "dateCreateFrom": "2023-04-01T18:57:25.957Z",
  "dateCreateTo": "2024-05-10T18:57:25.957Z",
  "numberOfRecords": 2
}

RESPONSE BODY

{
    "code": "0",
    "data": {
        "total": {
            "skipRecords": 0,
            "numberOfRecords": 2,
            "more": true
        },
        "items": [
            {
                "reference": "exrnl2TnId25856117",
                "cFiTransactionId": "CLIENTID_1LOvLXGjG5mPc7FAAuED3t",
                "dtsCreated": "2023-11-24T18:28:13.301Z",
                "status": "Declined",
                "error": {
                    "code": "extToucan",
                    "subCode": 400,
                    "isInformative": true,
                    "external": true,
                    "context": {
                        "errorCode": "3C5E1221"
                    },
                    "message": "amount",
                    "httpStatus": 400,
                    "status": 400
                },
                "amount": 100,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId25856116",
                "cFiTransactionId": "CLIENTID_4TTReb7QhZarVyknI8ktt",
                "dtsCreated": "2023-11-24T18:26:40.021Z",
                "status": "Declined",
                "error": {
                    "code": "extToucan",
                    "subCode": 422,
                    "isInformative": true,
                    "external": true,
                    "context": {
                        "errorCode": "3C5E5662"
                    },
                    "message": "Transaction Limit",
                    "httpStatus": 422,
                    "status": 400
                },
                "amount": 100.01,
                "currency": "USD"
            }
        ]
    },
    "requestId": "bccf02d0951111eea89d7100487c0512"
}

200 TRANSFER-TO/CARD/LIST/TRANSACTIONS SUCCESSFUL RESPONSE USING MULTIPLE CRITERIA

HEADERS

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

REQUEST BODY

{
  "dateCreateFrom": "2023-04-01T18:57:25.957Z",
  "dateCreateTo": "2024-05-10T18:57:25.957Z",
  "status": "Complete",
  "numberOfRecords": 1000,
  "skipRecords": 0
}

RESPONSE BODY

{
    "code": "0",
    "data": {
        "total": {
            "skipRecords": 0,
            "numberOfRecords": 22,
            "more": false
        },
        "items": [
            {
                "reference": "externalTrnId0500",
                "cFiTransactionId": "CLIENTID_RWrsXBN7ICJcABIb58u9Y",
                "dtsCreated": "2023-11-02T11:08:11.798Z",
                "status": "Complete",
                "amount": 1.01,
                "currency": "USD"
            },
            {
                "reference": "ext2TnId25900",
                "cFiTransactionId": "CLIENTID_5zo5ECvPGbmXo3FytHjEB4",
                "dtsCreated": "2023-11-02T11:05:21.428Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId2602",
                "cFiTransactionId": "CLIENTID_7DaTiGX2UPeEJ0cEZmJFcK",
                "dtsCreated": "2023-11-02T10:52:56.052Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId2600",
                "cFiTransactionId": "CLIENTID_6C1dj5cgIHVRAZBRFKJ5ES",
                "dtsCreated": "2023-11-02T10:37:40.910Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId25900",
                "cFiTransactionId": "CLIENTID_cG8htnpomsWdn4tkc8TsK",
                "dtsCreated": "2023-10-24T13:27:06.468Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "externalPshTrnId0401",
                "cFiTransactionId": "CLIENTID_01m6InYtVfqMPb9HS3wxVg",
                "dtsCreated": "2023-10-24T12:51:08.917Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "externalPshTrnId0400",
                "cFiTransactionId": "CLIENTID_7cLPRxUEe1PcERTfArLwHM",
                "dtsCreated": "2023-10-24T12:50:35.443Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnlPllTnId25902",
                "cFiTransactionId": "CLIENTID_600u0FY9DNdRihmYe7icMy",
                "dtsCreated": "2023-10-24T12:49:28.970Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnlPllTnId25901",
                "cFiTransactionId": "CLIENTID_5sgMbmRj2HzTUx5jOFccnw",
                "dtsCreated": "2023-10-24T12:48:58.974Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "externalPshTrnId03651",
                "cFiTransactionId": "CLIENTID_41cwhp7RusD7RKfc56fJHI",
                "dtsCreated": "2023-10-04T19:59:24.242Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "externalTrnId03557",
                "cFiTransactionId": "CLIENTID_5gfA4nRrTMCxSYey8tY3iW",
                "dtsCreated": "2023-10-03T21:34:47.362Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId258562",
                "cFiTransactionId": "CLIENTID_4Xy82bSvTSWfj8MXUcnYGK",
                "dtsCreated": "2023-10-03T19:47:08.283Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId258561",
                "cFiTransactionId": "CLIENTID_2W8xYRgEXEpJkMt7rH42Ua",
                "dtsCreated": "2023-10-03T19:38:07.282Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "externalTrnId03551",
                "cFiTransactionId": "CLIENTID_54on1b28UN0bcNXqLYxnZo",
                "dtsCreated": "2023-10-02T20:45:41.510Z",
                "status": "Complete",
                "amount": 1.01,
                "currency": "USD"
            },
            {
                "reference": "exrnlPllTnId25873",
                "cFiTransactionId": "CLIENTID_7njuVztzKhOlxD6Wx9mDGa",
                "dtsCreated": "2023-10-02T14:49:53.734Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnlPllTnId25872",
                "cFiTransactionId": "CLIENTID_5wkL4XikWRnezWVpS3SxJE",
                "dtsCreated": "2023-10-02T14:41:02.016Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId25857",
                "cFiTransactionId": "CLIENTID_7xhWskTDmqIHoftgltrPyO",
                "dtsCreated": "2023-09-29T15:15:04.566Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId25856",
                "cFiTransactionId": "CLIENTID_2mqM1MGGCOvxpCliULF89s",
                "dtsCreated": "2023-09-29T14:48:50.807Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnlPllTnId25871",
                "cFiTransactionId": "CLIENTID_25T7qk8vVrXi6lPLUtbbWy",
                "dtsCreated": "2023-09-27T19:51:37.268Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "externalPshTrnId0365",
                "cFiTransactionId": "CLIENTID_7hcBDb0gEqvShnt6BkMVcC",
                "dtsCreated": "2023-09-27T19:27:44.965Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "externalCardId52",
                "cFiTransactionId": "CLIENTID_63SrPuoPcgi8EbxVcjwvK2",
                "dtsCreated": "2023-09-18T18:18:33.948Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "externalPshTrnId0363",
                "cFiTransactionId": "CLIENTID_4UI4CYExaBLQO6jikJfHzk",
                "dtsCreated": "2023-07-12T20:42:34.841Z",
                "status": "Complete",
                "amount": 10.01,
                "currency": "USD"
            }
        ]
    },
    "requestId": "2fd61a50797111eeb5658f28ab5fe311"
}

200 TRANSFER-TO/CARD/LIST/TRANSACTIONS SUCCESSFUL RESPONSE USING REVERSALSTATUS

HEADERS

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

REQUEST BODY

{
  "reversalStatus": "Reversed"
}

RESPONSE BODY

{
    "code": "0",
    "data": {
        "total": {
            "skipRecords": 0,
            "numberOfRecords": 9,
            "more": false
        },
        "items": [
            {
                "reference": "exrnl2TnId25856114",
                "cFiTransactionId": "CLIENTID_6Wdb0YQloJJs67kF5wMA5I",
                "dtsCreated": "2023-11-15T21:28:17.009Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 1.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId25877",
                "cFiTransactionId": "CLIENTID_4rbhvn8ehUFqyGjzkaxmme",
                "dtsCreated": "2023-11-15T12:14:47.922Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 5.01,
                "currency": "USD"
            },
            {
                "reference": "exrnlPllTnId2000",
                "cFiTransactionId": "CLIENTID_012zFuxJJ2zGCAHSNnRhh8",
                "dtsCreated": "2023-11-02T16:58:10.104Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "ext2TnId25904",
                "cFiTransactionId": "CLIENTID_3aKevAR2l7zkOsF1HSstMu",
                "dtsCreated": "2023-11-02T11:17:28.263Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId2602",
                "cFiTransactionId": "CLIENTID_7DaTiGX2UPeEJ0cEZmJFcK",
                "dtsCreated": "2023-11-02T10:52:56.052Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId2600",
                "cFiTransactionId": "CLIENTID_6C1dj5cgIHVRAZBRFKJ5ES",
                "dtsCreated": "2023-11-02T10:37:40.910Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnl2TnId258561",
                "cFiTransactionId": "CLIENTID_2W8xYRgEXEpJkMt7rH42Ua",
                "dtsCreated": "2023-10-03T19:38:07.282Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "exrnlPllTnId25871",
                "cFiTransactionId": "CLIENTID_25T7qk8vVrXi6lPLUtbbWy",
                "dtsCreated": "2023-09-27T19:51:37.268Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            },
            {
                "reference": "externalCardId52",
                "cFiTransactionId": "CLIENTID_63SrPuoPcgi8EbxVcjwvK2",
                "dtsCreated": "2023-09-18T18:18:33.948Z",
                "status": "Complete",
                "reversalStatus": "Reversed",
                "amount": 10.01,
                "currency": "USD"
            }
        ]
    },
    "requestId": "d5c36880951111eea89d7100487c0512"
}