Account Balance
Account Balance service description
Last updated
Account Balance service description
Last updated
POST
https://connect.lhv.com/account-balance
Account Balance provides actual and free balance information for any existing currencies on Customer account. It can be requested for one Customer Account at a time. Balances are provided real-time on the moment of generating the response. With optional Prtry parameter now also Payment limits info can be requested - both total and free limits for Daily and Monthly periods.
Both Account Statement and Account Balance request share the same ISO 20022 Account Report Request camt.060.001.03 XML format.
Depending on the service different values in the Request can be used to get data for different periods or details. Some of these affect only Statements or Balances responses.
Name | Value |
---|---|
XML structure description:
Message root
INDEX | MESSAGE ELEMENT | XML TAG |
---|---|---|
Group header
MULT. | MESSAGE ELEMENT | XML TAG | DESCRIPTION |
---|---|---|---|
Sample is requesting the account balances for account.
FrToDt must be included for the XML standard, but are ignored
Limits are not included
Headers
Request accepted - no content
Response message is created and can be requests by the Messages services - Messages Services
HTTP Header Message-Response-Type: ACCOUNT_BALANCE
Message root
Group header
Report
Sample has balances in EUR and GBP. Payment limits are in EUR.
Error codes
Service specific errors
Name | Value |
---|---|
INDEX | MESSAGE ELEMENT | XML TAG |
---|---|---|
MULT. | MESSAGE ELEMENT | XML TAG | DESCRIPTION |
---|---|---|---|
MULT. | MESSAGE ELEMENT | XML TAG | DESCRIPTION |
---|---|---|---|
ERROR CODE | DESCRIPTION |
---|---|
Content-Type
application/xml
Client-Code
customer value
Client-Country
customer value
[1..1]
MessageRoot
<AcctRptgReq>
[1..1]
+GroupHeader
<GrpHdr>
[1..1]
++MessageIdentification
<MsgId>
Unique message identifier generated by requesting party.
[1..1]
++CreationDateTime
<CreDtTm>
[1..1]
+ReportingRequest
<RptgReq>
[0..1]
++Identification
<Id>
[1..1]
++RequestedMessageNameIdentification
<ReqdMsgNmId>
Supported values: 'camt.053.001.02' BankToCustomerStatement - client request POST https://connect.lhv.eu/account-statement; 'camt.052.001.06' BankToCustomerAccountReport - client request POST https://connect.lhv.eu/account-balance
[1..1]
++Account
<Acct>
Account block
[1..1]
+++Identification
<Id>
[1..1]
++++IBAN
<IBAN>
IBAN number to which the report request refers. When using Virtual/Agency account services - only master account IBAN must be used here. Virtual/Agency account is only displayed in the account statement report.
[1..1]
++AccountOwner
<AcctOwnr>
[1..1]
+++Party
<Pty>
Values are ignored.
[1..1]
++ReportingPeriod
<RptgPrd>
[1..1]
+++FromToDate
<FrToDt>
[1..1]
++++FromDate
<FrDt>
Account statement from date, ISO date format. FromDate cannot be later than ToDate. For camt.052.001.06 value is ignored and only current day is returned.
[1..1]
++++ToDate
<ToDt>
Account statement to date, ISO date format. For camt.052.001.06 value is ignored and only current day is returned.
[1..1]
+++FromToTime
<FrToTm>
Value is ignored if ReqdBalTp block not added or if ReqdBalTp.CdOrPrtry.Cd.Prtry = DATE. Used when Prtry = DATETIME
[1..1]
+++FromTime
<FrTm>
ISO datetime, inclusive.
[1..1]
+++ToTime
<ToTm>
ISO datetime, exclusive.
[1..1]
+++Type
<Tp>
βALLLβ.
[0..1]
++Requested Balance Type
<ReqdBalTp>
Provides details on the requested balance reporting.
[1..1]
+++Code or Proprietary
<CdOrPrtry>
[1..1]
++++Code
<Cd>
Not used
[1..1]
++++Proprietary
<Prtry>
For Account Statement camt.053: 'DATE': return statement based on FromDate and ToDate only; FromTime and ToTime are ignored, 'DATETIME': return statement with FromTime and ToTime support. For Account Balance PAYMENT_LIMITS will also add Payments Limits info in the response.
Content-Type
application/xml
X-Bank-Code
LHVUK, LHVEE
[1..1]
MessageRoot
<BkToCstmrAcctRpt>
[1..1]
+GroupHeader
<GrpHdr>
[1..1]
++MessageIdentification
<MsgId>
Unique message identifier generated by LHV.
[1..1]
++CreationDateTime
<CreDtTm>
Date and time when the account statement message is created at LHV.
[0..1]
++MessageRecipient
<MsgRcpt>
Not used.
[0..1]
++MessagePagination
<MsgPgntn>
Not used.
[1..n]
+Report
<Rpt>
Report block is generated per every account and currency.
[1..1]
++Identification
<Id>
Unique identification generated by LHV.
[1..1]
++CreationDateTime
<CreDtTm>
Creation date and time.
[0..1]
++FromToDate
<FrToDt>
Period for what this report is generated.
[1..1]
+++FromDateTime
<FrDtTm>
From date and time in camt.060.001.02 request.
[1..1]
+++ToDateTime
<ToDtTm>
To date and time in camt.060.001.02 request.
[1..1]
++Account
<Acct>
[1..1]
+++Identification
<Id>
[1..1]
++++IBAN
<IBAN>
Account number for what this report is generated.
[0..1]
+++Currency
<Ccy>
Currency of this report block.
[0..n]
++Balance
<Bal>
Report has two balances: current booked balance and current available balance.
[1..1]
+++Type
<Tp>
[1..1]
++++CodeOrProprietary
<CdOrPrtry>
[0..1]
+++++Code
<Cd>
ITAV for current available balance; ITBD for interim booked balance.
[0..1]
+++++Proprietary
<Prtry>
PAYMENT_LIMIT_MONTHLY_TOTAL - total Monthly limit; PAYMENT_LIMIT_MONTHLY_FREE free Monthly limit. PAYMENT_LIMIT_DAILY_TOTAL - total Daily limit; PAYMENT_LIMIT_DAILY_FREE free Daily limit.
[1..1]
+++Amount
<Amt>
Balance amount.
[1..1]
+++CreditDebitIndicator
<CdtDbtInd>
See the codes in Code Set: Credit and Debit Code.
[1..1]
+++Date
<Dt>
[1..1]
++++Date
<Dt>
Date of the balance.
[0..n]
++Entry
<Ntry>
Entry data is not returned.
errStatement_NoAccess
No access to the account.
errStatement_RequestInvalid
Request message fails xsd validation.