Read balance properties
You use this method to read information of a balance record and to retrieve specific balances.
Request method
GET
Request url
https://ponte.venice.be/webconnect/api/{DossierId}/{FinancialYear}/Balance/{InformationType}?{Key}={KeyValues}[&fields={FieldList}&fieldIdentifier={FieldIdentifier}&fieldValue={FieldValue}&beginMonth={BeginMonth}&endMonth={EndMonth}]
Context identification
Identification | Description |
---|---|
DossierId | The unique identifier of the dossier. |
FinancialYear | The financial year. |
InformationType | Requests a specific type of information. Possible values: |
Parameters
Parameter | Description |
---|---|
{Key} | The available keys to seek one or more balance records: |
Fields | List of fields, , containing property names of the balance record, of which the value has to be returned in the response body. (optional) |
BeginMonth | The month from where to start (a value of 1 to 25 or 0 for the complete financial year). |
EndMonth | The month where to end (a value of 1 to 25 or 0 for the complete financial year). |
https://ponte.venice.be/WebConnect/api/Demo/2021/Balance/Seek?AccountNumber=600&fields=BalanMonth1DosC,QuantMonth1Example 2: Get the balance of all customers (assuming that '400' is the customer prefix account) for the complete financial year.
https://ponte.venice.be/WebConnect/api/Demo/2021/Balance/GetBalance?AccountNumber=400&BeginMonth=0&EndMonth=0
Request header
See request header.
Request body
-Http status
See http status.Response body
You can receive the response in json or xml.
Structure
The structure of the request body depends on the value of the parameter 'informationType'. Parameter 'informationType' has the value 'Seek'Response (object)
- Balances (array)
- Balance (array item)
- Fields (object)
Response (object)
Examples
{ "Response": { "Balances": { "Balance": [ { "Fields" : { "BalanMonth1DosC": "2000.00", "QuantMonth1": "17.00" } } ] } } }
{ "Response": { "GetBalance": "17235.15" } }
<?xml version="1.0" encoding="utf-8"?> <Response> <Balances> <Balance> <Fields> <BalanMonth1DosC>2000.00</BalanMonth1DosC> <QuantMonth1>17.00</QuantMonth1> </Fields> </Balance> </Balances> </Response>
<?xml version="1.0" encoding="utf-8"?> <Response> <GetBalance>17235.15</GetBalance> </Response>