| Required role: | Tartarus.Read |
| GET,POST | /api/citi-bank-account-balance |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AccountNumber | body | string | Yes | |
| CurrencyCode | body | string | Yes | |
| FromDate | body | DateTime | No | |
| ToDate | body | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| StatementIsStillGenerating | form | bool | No | |
| Entries | form | List<CitiBankAccountEntry> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| EntryType | form | BankEntryType | No | |
| Description | form | string | No | |
| Amount | form | decimal? | No | |
| CurrencyCode | form | string | No | |
| CreditDebitIndicator | form | string | No | |
| EntryDate | form | DateTime? | No |
| Name | Value | |
|---|---|---|
| Balance | 1 | |
| Transaction | 2 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/citi-bank-account-balance HTTP/1.1
Host: tartarus.nephila.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
accountNumber: String,
currencyCode: String,
fromDate: 0001-01-01,
toDate: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
statementIsStillGenerating: False,
entries:
[
{
entryType: Balance,
description: String,
amount: 0,
currencyCode: String,
creditDebitIndicator: String,
entryDate: 0001-01-01
}
]
}