Updates multiple chart of accounts entries.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Body
Required
-
Entity ID. If negative value, a new entity will be created
-
Currency ID
-
Business unit (department) ID
-
Account number
-
Organization ID
-
Multilingual name of the account
-
Account type
Values are
BALANCE_SHEET,PL, orSYSTEM. -
Whether the account is active
-
Start date (format dd/MM/yyyy)
-
End date (format dd/MM/yyyy). Cannot be later than the previous day
-
Whether purchase invoices are enabled for this account
-
Whether sales invoices are enabled for this account
-
Whether expense reports are enabled for this account
-
Whether this account is a cash account
-
Whether this account is usable as a payment method
-
Whether FX auto-adjustment is enabled for this account
-
Whether business unit split is enabled for this account
-
Immobilization chart of accounts ID. Only relevant when isPurchaseInvoicesEnabled=true, type=BALANCE_SHEET, and immobilizationType is one of the indirect types
-
Immobilization type. Only relevant when isPurchaseInvoicesEnabled=true and type=BALANCE_SHEET
Values are
LINEAR_DEPRECIATION_DIRECT,NON_LINEAR_DEPRECIATION_DIRECT,LINEAR_DEPRECIATION_INDIRECT, orNON_LINEAR_DEPRECIATION_INDIRECT.
curl \
--request PUT 'https://wyzio.app/api-v1/chart-accounts/batch' \
--header "Content-Type: application/json" \
--data '[{"id":12345678,"currencyId":12345678,"businessUnitId":12345678,"accountNumber":123456,"organizationId":12345678,"localizations":{"id":12345678,"en":"Office supplies","fr":"Fournitures de bureau","de":"Büromaterial","it":"Forniture per ufficio"},"type":"BALANCE_SHEET","isActive":true,"startDate":"01/01/2024","endDate":"31/12/2024","isPurchaseInvoicesEnabled":false,"isSalesInvoicesEnabled":false,"isExpenseReportEnabled":false,"isCashAccountEnabled":false,"isPaymentMethodEnabled":false,"isFXAutoAdjustmentEnabled":false,"isBusinessUnitSplitEnabled":false,"immobilizationChartOfAccountId":12345678,"immobilizationType":"LINEAR_DEPRECIATION_DIRECT"}]'
# Headers
# Payload
[
{
"id": 12345678,
"currencyId": 12345678,
"businessUnitId": 12345678,
"accountNumber": 123456,
"organizationId": 12345678,
"localizations": {
"id": 12345678,
"en": "Office supplies",
"fr": "Fournitures de bureau",
"de": "Büromaterial",
"it": "Forniture per ufficio"
},
"type": "BALANCE_SHEET",
"isActive": true,
"startDate": "01/01/2024",
"endDate": "31/12/2024",
"isPurchaseInvoicesEnabled": false,
"isSalesInvoicesEnabled": false,
"isExpenseReportEnabled": false,
"isCashAccountEnabled": false,
"isPaymentMethodEnabled": false,
"isFXAutoAdjustmentEnabled": false,
"isBusinessUnitSplitEnabled": false,
"immobilizationChartOfAccountId": 12345678,
"immobilizationType": "LINEAR_DEPRECIATION_DIRECT"
}
]
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}