Get Import File
Request URL
GET /transfer-to/ach/csv-import-attempts/file/:id
Description
A csv-import-attempt file is a file containing ACH transactions that was previously uploaded to the connectFi system via SFTP file transfer. This endpoint will get the details for the .csv file specified in the "id" path parameter, if a match exists.
Snippet Examples
javascript
const axios = require('axios');
const config = {
method: 'GET',
url: '${CONNECTFI_BASE_URL}/transfer-to/ach/csv-import-attempts/file/:id',
headers: {
'x-connectfi-token': "A long random string token received from /auth/get-token request"
},
};
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/ach/csv-import-attempts/file/:id" --header "x-connectfi-token: A long random string token received from /auth/get-token request"
Successful Response Examples
200 SUCCESSFUL RESPONSE
HEADERS
Header | Value |
---|---|
x-connectfi-token | A long random string token received from /auth/get-token request |
PARAMETERS
Parameter | Description | Value |
---|---|---|
id | test7lsdV2wJKzKrfYjCnQGtCI |
REQUEST BODY
RESPONSE BODY
241023,CLIENTID,ARC,PAYMENT,Trading,John Doe,031101279,123456789012,Checking,Debit,1.07,100000000000000,,,,,
241023,CLIENTID,ARC,PAYMENT,Trading,John Doe,031101279,123456789012,Savings,Debit,-1.07,100000000000001,,,,,
241023,CLIENTID,ARC,PAYMENT,,John Doe,031101279,123456789012,Checking,Debit,1.07,100000000000002,,,,,
241023,CLIENTID,ARC,PAYMENT,,John Doe,031101279,123456789012,Savings,Debit,1.07,100000000000003,,,,,
241023,CLIENTID,BOC,PAYMENT,Trading,John Doe,031101279,123456789012,Checking,Debit,1.07,100000000000004,,,,,
241023,CLIENTID,BOC,PAYMENT,Trading,John Doe,031101279,123456789012,Savings,Debit,1.07,100000000000005,,,,,
241023,CLIENTID,BOC,PAYMENT,,John Doe,031101279,123456789012,Checking,Debit,1.07,100000000000006,,,,,
241023,CLIENTID,BOC,PAYMENT,,John Doe,031101279,123456789012,Savings,Debit,1.07,100000000000007,,,,,
241023,CLIENTID,CIE,PAYMENT,Trading,John Doe,031101279,123456789012,Checking,Credit,1.07,,,,0000000000000000000001,,UAT test
241023,CLIENTID,CIE,PAYMENT,Trading,John Doe,031101279,123456789012,Savings,Credit,1.07,,,,0000000000000000000002,,UAT test
241023,CLIENTID,CIE,PAYMENT,,John Doe,031101279,123456789012,Checking,Credit,1.07,,,,0000000000000000000003,,UAT test