Transactions
Fetch Transactions
This endpoint allows you to retrieve a list of transactions for a selected account.
{{baseUrl}}/production/fetch-transaction
curl --request POST \
--url https://jys6b5m8pd.execute-api.us-east-2.amazonaws.com/production/fetch-transactions \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"monthRange": "12",
"accountNumber": "1234567890"
}
'
Request Parameters
parameter | type | description | |
---|---|---|---|
month_range | string | specified period that encompasses one or more months | required |
accountNumber | string | Business account number | required |
Successful Response
{
"data": [
{
"Nuban": "1234567890",
"datedStamp": "2023-09-21T17:03:15.611Z",
"Amount": "225000",
"dated": "2023-09-21T00:00:00.000Z",
"TransactionType": "credit",
"Narration": "N-10140722181/Collection Credit for 20",
"TransType": "credit",
"Balance": "30933952",
"BeneficiaryName": "null"
},
{
"Nuban": "12345678905",
"datedStamp": "2023-09-21T17:03:15.612Z",
"Amount": "150000",
"dated": "2023-09-21T00:00:00.000Z",
"TransactionType": "credit",
"Narration": "N-10140716665/Collection Credit for 20",
"TransType": "credit",
"Balance": "30708952",
"BeneficiaryName": "null"
},
{
"Nuban": "1234567890",
"datedStamp": "2023-09-21T17:03:15.613Z",
"Amount": "900000",
"dated": "2023-09-21T00:00:00.000Z",
"TransactionType": "credit",
"Narration": "N-10140720013/Collection Credit for 20",
"TransType": "credit",
"Balance": "30558952",
"BeneficiaryName": "null"
}
]
}
Error Handling (Failed Response)
In case of any errors, the API will respond with an appropriate status code and error message.
{
status:"404",
message:"accountNumber length must be 10 characters long",
}
Parameters
Field | Description |
---|---|
id |
Unique Auth ID (Unique Flick Identifier) |
debit |
The amount deducted from an account |
credit |
The amount credited to an account |
account |
Unique account ID (Unique Flick Identifier) |
connected |
Customer connection status (Did they choose to connect this account to you?) |
customer |
Unique Customer ID (Unique Flick Identifier) See Manage Customers ] |
record |
Unique Record ID(Unique Flick Identifier) See Records |
owner |
Unique Company ID(Unique Flick Identifier) ( Your Client Token) |
env |
Flick API env the Auth was pulled from |
created_at |
Date transaction was fetched |
last_updated |
Last date transaction fetched |
trans_date |
The date a transaction occurred |
cleared_date |
The date a transaction was cleared at the bank |
unformatted_trans_date |
The date transaction occurred (from the bank) |
unformatted_cleared_date |
The date transaction cleared (from the bank) |
branch |
The branch transactions occurred |
ref |
The bank reference ID (from the bank) |
env |
Flick API env the transaction was pulled from |
code |
Bank Code (from the bank) |
benefactor |
Customer ID of the sender (within Flick) |
location |
The location or channel the transaction took place |
notes |
Breakdown of Narrative from bank |
bank |
Unique Bank ID (Unique Flick Identifier) |
balance |
Balance after transaction line |
mean |
Mean Average Error: Average ‘naira’ the statement is off by |
Updated 2 months ago