Financials | Financial Account
Service to manage entities of type 'FinancialAccount'.
Overview
URL | api/{tenantKey}/{orgKey}/financialCore/financialAccounts |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set IsActive FinancialAccount
- PUT Set Description FinancialAccount
- PUT Set Company FinancialAccount
- PUT Set AccountNumber FinancialAccount
- PUT Set IBAN FinancialAccount
- PUT Set SWIFT FinancialAccount
- PUT Set Branch FinancialAccount
- PUT Set ValidFrom FinancialAccount
- PUT Set ValidTo FinancialAccount
- PUT Set FinancialAccountKey FinancialAccount
- PUT Set FinancialInstitution FinancialAccount
- PUT Set Currency FinancialAccount
- PUT Set Country FinancialAccount
- PUT Set FinancialAccountType FinancialAccount
- PUT Set AllowForeignCurrency FinancialAccount
- PUT Set Responsible FinancialAccount
- PUT Set CreditorEntityReference FinancialAccount
- PUT Set OpeningDate FinancialAccount
- PUT Set OpeningAmount FinancialAccount
- PUT Set ExchangeRate FinancialAccount
- PUT Set HasOpeningBalance FinancialAccount
- DELETE:
All Resources
This service uses the following resources:
All Enumerations
This service uses the following enumerations:
GET FinancialAccounts (odata)
Returns a page of the list of all the entity records available.
The following elements are optional:
opts | (ODataQueryOptions) OData query option. |
Response:
When successful, the response body contains the list of records available. See FinancialAccountResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET FinancialAccount by identifier
Returns the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body contains the entity record. See FinancialAccountResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET FinancialAccount by key
Returns the entity record that matches the specified key.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
Response:
When successful, the response body contains the entity record. See FinancialAccountResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
POST FinancialAccounts
Creates a new entity record.
The following elements are required:
financialAccountResource | (ApiFinancialAccountResource) The request body should contain the entity record that should be created. See ApiFinancialAccountResource. |
Response:
When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiFinancialAccountResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set AccountNumber FinancialAccount
Updates the value of attribute 'AccountNumber' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set AllowForeignCurrency FinancialAccount
Updates the value of attribute 'AllowForeignCurrency' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Branch FinancialAccount
Updates the value of attribute 'Branch' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Company FinancialAccount
Updates the value of attribute 'Company' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Country FinancialAccount
Updates the value of attribute 'Country' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set CreditorEntityReference FinancialAccount
Updates the value of attribute 'CreditorEntityReference' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Currency FinancialAccount
Updates the value of attribute 'Currency' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Description FinancialAccount
Updates the value of attribute 'Description' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ExchangeRate FinancialAccount
Updates the value of attribute 'ExchangeRate' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set FinancialAccountKey FinancialAccount
Updates the value of attribute 'FinancialAccountKey' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set FinancialAccountType FinancialAccount
Updates the value of attribute 'FinancialAccountType' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (enum FinancialAccountType) The request body should contain the new value for the attribute. See FinancialAccountType. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set FinancialInstitution FinancialAccount
Updates the value of attribute 'FinancialInstitution' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set HasOpeningBalance FinancialAccount
Updates the value of attribute 'HasOpeningBalance' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set IBAN FinancialAccount
Updates the value of attribute 'IBAN' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set IsActive FinancialAccount
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
PUT Set OpeningAmount FinancialAccount
Updates the value of attribute 'OpeningAmount' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set OpeningDate FinancialAccount
Updates the value of attribute 'OpeningDate' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (DateTime) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Responsible FinancialAccount
Updates the value of attribute 'Responsible' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set SWIFT FinancialAccount
Updates the value of attribute 'SWIFT' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ValidFrom FinancialAccount
Updates the value of attribute 'ValidFrom' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (DateTime) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ValidTo FinancialAccount
Updates the value of attribute 'ValidTo' in the specified entity record.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
value | (DateTime) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
DELETE FinancialAccount by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE FinancialAccount by key
Deletes the entity record that matches the specified key.
The following elements are required:
financialAccountKey | (string) The financial account's key. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
Resources
ApiFinancialAccountResource
The following elements are required:
company | (string) The financial account's associated company. |
financialAccountKey | (string) The financial account's key. |
financialAccountType | (enum FinancialAccountType) The type of account: petty cash or bank account.
See FinancialAccountType. |
allowForeignCurrency | (bool) Indicates if the financial account (if petty cash) allow foreign currency. |
openingAmount | (MoneyResource) Opening Amount.
See MoneyResource . |
exchangeRate | (decimal) Exchange Rate. |
hasOpeningBalance | (bool) Has Opening Balance?. |
The following elements are optional:
description | (string) The financial account's description. |
accountNumber | (string) The account's number. |
iBAN | (string) The financial account's International Bank Account Number. |
sWIFT | (string) The society for Worldwide Interbank Financial Telecommunication number. |
branch | (string) The branch's name. |
validFrom | (DateTime) The start date for validity period. |
validTo | (DateTime) The end date for validity period. |
financialInstitution | (string) The associated financial institution. |
currency | (string) The currency which the financial accounts operates. |
country | (string) The country where the financial account is based. |
responsible | (string) The responsible for the financial account (if petty cash). |
creditorEntityReference | (string) Creditor Entity Reference. |
openingDate | (DateTime) Opening Date. |
FinancialAccountResource
The following elements are required:
company | (string) The financial account's associated company.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service. |
financialAccountKey | (string) The financial account's key. |
reconciliationTolerance | (decimal) The reconciliation tolerance, by default 2. |
financialAccountType | (enum FinancialAccountType) The type of account: petty cash or bank account.
See FinancialAccountType. |
allowForeignCurrency | (bool) Indicates if the financial account (if petty cash) allow foreign currency. |
openingAmount | (MoneyResource) Opening Amount.
See MoneyResource . |
exchangeRate | (decimal) Exchange Rate. |
hasOpeningBalance | (bool) Has Opening Balance?. |
The following elements are optional:
description | (string) The financial account's description. |
accountNumber | (string) The account's number. |
iBAN | (string) The financial account's International Bank Account Number. |
sWIFT | (string) The society for Worldwide Interbank Financial Telecommunication number. |
branch | (string) The branch's name. |
validFrom | (DateTime) The start date for validity period. |
validTo | (DateTime) The end date for validity period. |
partyTaxSchema | (string) The party's tax schema.
(fk) Allowed value: the natural key of a record of type PartyTaxSchema. These records are accessibly through the PartyTaxSchemas service. |
financialInstitution | (string) The associated financial institution.
(fk) Allowed value: the natural key of a record of type FinancialInstitution. These records are accessibly through the FinancialInstitutions service. |
currency | (string) The currency which the financial accounts operates.
(fk) Allowed value: the natural key of a record of type Currency. These records are accessibly through the Currencies service. |
partyWithholdingTaxSchema | (string) The party's withholding tax schema.
(fk) Allowed value: the natural key of a record of type PartyWithholdingTaxSchema. These records are accessibly through the PartyWithholdingTaxSchemas service. |
country | (string) The country where the financial account is based.
(fk) Allowed value: the natural key of a record of type Country. These records are accessibly through the Countries service. |
responsible | (string) The responsible for the financial account (if petty cash). |
creditorEntityReference | (string) Creditor Entity Reference. |
openingDate | (DateTime) Opening Date. |
exchangeRateDate | (DateTime) Exchange Rate Date. |
MoneyResource
The following elements are required:
amount | (decimal) The amount. |
The following elements are optional:
baseAmount | (decimal) The base amount. |
reportingAmount | (decimal) The reporting amount. |
fractionDigits | (int) The fraction digits. |
symbol | (string) The symbol. |
Notes: For the POST operation it is not necessary to send the fields: BaseAmount, ReportingAmount, FractionDigits and Symbol. Will be ignored.