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

ParameterDescription
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.

dDateEndThe 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.
dDateStartThe 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.
bNoStartingBalanceIf 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.
bAdditionalFieldsAllows 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

 

PropertyDescriptionResult
classeClass of the chart of accounts element{
"classe": 4,
numeroNumber of the chart of accounts element"numero": "3000",
compteName of the chart of accounts element"compte": "Ventes de produits fabriqués",
pla_monnaiCurrency of the account"pla_monnai": "CHF",
soldeTotal balance of the element in the local currency"solde": -185.18,
débitDebit balance of the element in the local currency"débit": 0.00,
créditCredit balance of the element in the local currency"crédit": 185.18,
si_ml_dDebit balance of the element at the beginning of the fiscal year in the local currency"si_ml_d": 0.00,
si_ml_cCredit balance of the element at the beginning of the fiscal year in the local currency"si_ml_c": 0.00,
solde_meTotal balance of the element in the foreign currency"solde_me": 0.00,
si_me_dDebit balance of the element at the beginning of the fiscal year in the foreign currency"si_me_d": 0.00,
si_me_cCredit balance of the element at the beginning of the fiscal year in the foreign currency"si_me_c": 0.0,
budg_yearYearly budget entered in the account in local currency"budg_year": 78000.00,
budg_month01 to budg_month12Monthly 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_tvatxVAT rate applied to account"pla_tvatx": 8.00,
Pla_vtcodeVAT 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

 

 

FieldDescriptionResult
pla_ccAssociated cost centre account{
"classe": 4,
pla_cpNon-operating expense or income account (0-1: Expense, 2: Income)"numero": "3000",
pla_tvatypVAT type (0-1: No VAT, 2: VAT due, 3: Input tax, 4: Outside tax scope)"compte": "Ventes de produits fabriqués",
pla_tvacptVAT reconciliation account (net VAT)"pla_monnai": "CHF",
pla_tvatxVAT rate"solde": -185.18,
pla_tvabnGross or net accounting (0-1: Gross, 2: Net)"débit": 0.00,
pla_tvaptPercentage taxable"crédit": 185.18,
pla_tvaarrVAT rounding (0-1: 1ct, 2: 5 ct)"si_ml_d": 0.00,
pla_tvamodVAT calculation mode (0: normal, 1: natural products)"si_ml_c": 0.00,
pla_typeAccount type"solde_me": 0.00,
pla_type1Additional type 1"si_me_d": 0.00,
pla_schemaCosting scheme, foreign key"si_me_c": 0.0,
pla_statusStatus (0: Enabled, 1: Disabled)"budg_year": 78000.00,
numero1Additional 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,
numero2Additional account number 2"pla_tvatx": 8.00,
numero3Additional account number 3"pla_vtcode": "300"
}
pla_anaoptOption (1: Optional, 2: Mandatory) 
pla_inter  
pla_tvatxfVAT flat rate "pla_tvatx": 8.10,
pla_vtnumIdentifier of a record in the vat_type table (VAT types).
pla_vtcodeNumber of the VAT item according to the official statement."pla_vtcode": "300"
}
pla_ecrlckBlocking of manual entries in this account.
pla_totTotalisation grouping
pla_bclcptClosing account
pla_bcllblClosing entry label
pla_bclexeFiscal year in which the closing entry is created
pla_nummapMapping account number when replacing chart of accounts

 

 

 

Did you find this article useful?

0 out of 3 found this helpful