frequently asked questions

All your questions in one place.

ChartOfAccounts

This method returns the chart of accounts.

BODY - RAW

{
  "Method": "ChartOfAccounts",
  "Parameters": [
			<bForceUpdate>,
			[<dEndDate>],
			[<dStartDate>],
			[<bNoStartingBalance>],
[<bAdditionalFields>], ] }

PARAMETERS

Parameter

Description

bForceUpdate

Allows you to force the update of the balances of the whole chart of accounts.

Forcing the update changes the response time. Use this parameter only when you really need it.

dDateEnd

The recordings up to this date are considered. This parameter is optional. If the parameter is omitted, the recordings up to the end of the fiscal year are considered.

dDateStart

The recordings starting from this date are considered. The parameter is optional. If the parameter is omitted, the recordings starting from the beginning of the fiscal year are considered.

bNoStartingBalance

If the parameter is set to True, the starting balances are excluded. The parameter is optional. If the parameter is omitted its default value is false and the starting balances are included.

bAdditionalFields

Allows you to specify additional fields in the results map.

EXAMPLE 

{
  "Method": "ChartOfAccounts",
  "Parameters": [
                        false
"31.12.2025",
"01.01.2025",
false,
"pla_tvatx,pla_vtcode" ] }

Class returned

 

Property Description Result
classe Class of the chart of accounts element {
"classe": 4,
numero Number of the chart of accounts element "numero": "3000",
compte Name of the chart of accounts element "compte": "Ventes de produits fabriqués",
pla_monnai Currency of the account "pla_monnai": "CHF",
solde Total balance of the element in the local currency "solde": -185.18,
débit Debit balance of the element in the local currency "débit": 0.00,
crédit Credit balance of the element in the local currency "crédit": 185.18,
si_ml_d Debit balance of the element at the beginning of the fiscal year in the local currency "si_ml_d": 0.00,
si_ml_c Credit balance of the element at the beginning of the fiscal year in the local currency "si_ml_c": 0.00,
solde_me Total balance of the element in the foreign currency "solde_me": 0.00,
si_me_d Debit balance of the element at the beginning of the fiscal year in the foreign currency "si_me_d": 0.00,
si_me_c Credit balance of the element at the beginning of the fiscal year in the foreign currency "si_me_c": 0.0,
budg_year Yearly budget entered in the account in local currency "budg_year": 78000.00,
budg_month01 to budg_month12 Monthly budget entered in the account in local currency. The number of the month is relative to the start date of the fiscal year. "budg_month01": 1000.00,
"budg_month02": 2000.00,
"budg_month03": 3000.00,
"budg_month04": 4000.00,
"budg_month05": 5000.00,
"budg_month06": 6000.00,
"budg_month07": 7000.00,
"budg_month08": 8000.00,
"budg_month09": 9000.00,
"budg_month10": 10000.00,
"budg_month11": 11000.00,
"budg_month12": 12000.00,
Pla_tvatx VAT rate applied to account "pla_tvatx": 8.00,
Pla_vtcode VAT journal number applied to the account "pla_vtcode": "300"
}

 

 

Exemple :

{
  "Method": "ChartOfAccounts",
  "Parameters": [
                        false
"31.12.2025",
"01.01.2025",
false,
"pla_tvatx,pla_vtcode" ] }

 

Fields to be added as required in the ‘cAdditionalFields’ parameter

 

 

Field Description Result
pla_cc Associated cost centre account {
"classe": 4,
pla_cp Non-operating expense or income account (0-1: Expense, 2: Income) "numero": "3000",
pla_tvatyp VAT type (0-1: No VAT, 2: VAT due, 3: Input tax, 4: Outside tax scope) "compte": "Ventes de produits fabriqués",
pla_tvacpt VAT reconciliation account (net VAT) "pla_monnai": "CHF",
pla_tvatx VAT rate "solde": -185.18,
pla_tvabn Gross or net accounting (0-1: Gross, 2: Net) "débit": 0.00,
pla_tvapt Percentage taxable "crédit": 185.18,
pla_tvaarr VAT rounding (0-1: 1ct, 2: 5 ct) "si_ml_d": 0.00,
pla_tvamod VAT calculation mode (0: normal, 1: natural products) "si_ml_c": 0.00,
pla_type Account type "solde_me": 0.00,
pla_type1 Additional type 1 "si_me_d": 0.00,
pla_schema Costing scheme, foreign key "si_me_c": 0.0,
pla_status Status (0: Enabled, 1: Disabled) "budg_year": 78000.00,
numero1 Additional account number 1 "budg_month01": 1000.00,
"budg_month02": 2000.00,
"budg_month03": 3000.00,
"budg_month04": 4000.00,
"budg_month05": 5000.00,
"budg_month06": 6000.00,
"budg_month07": 7000.00,
"budg_month08": 8000.00,
"budg_month09": 9000.00,
"budg_month10": 10000.00,
"budg_month11": 11000.00,
"budg_month12": 12000.00,
numero2 Additional account number 2 "pla_tvatx": 8.00,
numero3 Additional account number 3 "pla_vtcode": "300"
}
pla_anaopt Option (1: Optional, 2: Mandatory)  
pla_inter    
pla_tvatxf VAT flat rate  "pla_tvatx": 8.10,
pla_vtnum Identifier of a record in the vat_type table (VAT types).  
pla_vtcode Number of the VAT item according to the official statement. "pla_vtcode": "300"
}
pla_ecrlck Blocking of manual entries in this account.  
pla_tot Totalisation grouping  
pla_bclcpt Closing account  
pla_bcllbl Closing entry label  
pla_bclexe Fiscal year in which the closing entry is created  
pla_nummap Mapping account number when replacing chart of accounts  

 

 

 

Did you find this article useful?

0 out of 3 found this helpful