Batch update chart of accounts

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://restapi.wyzio.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Wyzio MCP server": {
    "url": "https://restapi.wyzio.com/mcp"
  }
}

Close
PUT /api-v1/chart-accounts/batch

Updates multiple chart of accounts entries.

Headers

  • WEAL-TOKEN Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID

    ID of organization, for which the operation must be performed

application/json

Body Required

  • id integer

    Entity ID. If negative value, a new entity will be created

  • currencyId integer Required

    Currency ID

  • businessUnitId integer

    Business unit (department) ID

  • accountNumber string Required

    Account number

  • organizationId integer

    Organization ID

  • localizations object

    Multilingual name of the account

    Hide localizations attributes Show localizations attributes object
    • id integer

      Entity ID. If negative value, a new entity will be created

    • en string
    • fr string
    • de string
    • it string
  • type string Required

    Account type

    Values are BALANCE_SHEET, PL, or SYSTEM.

  • isActive boolean

    Whether the account is active

  • startDate string Required

    Start date (format dd/MM/yyyy)

  • endDate string

    End date (format dd/MM/yyyy). Cannot be later than the previous day

  • isPurchaseInvoicesEnabled boolean

    Whether purchase invoices are enabled for this account

  • isSalesInvoicesEnabled boolean

    Whether sales invoices are enabled for this account

  • isExpenseReportEnabled boolean

    Whether expense reports are enabled for this account

  • isCashAccountEnabled boolean

    Whether this account is a cash account

  • isPaymentMethodEnabled boolean

    Whether this account is usable as a payment method

  • isFXAutoAdjustmentEnabled boolean

    Whether FX auto-adjustment is enabled for this account

  • isBusinessUnitSplitEnabled boolean

    Whether business unit split is enabled for this account

  • immobilizationChartOfAccountId integer

    Immobilization chart of accounts ID. Only relevant when isPurchaseInvoicesEnabled=true, type=BALANCE_SHEET, and immobilizationType is one of the indirect types

  • immobilizationType string

    Immobilization type. Only relevant when isPurchaseInvoicesEnabled=true and type=BALANCE_SHEET

    Values are LINEAR_DEPRECIATION_DIRECT, NON_LINEAR_DEPRECIATION_DIRECT, LINEAR_DEPRECIATION_INDIRECT, or NON_LINEAR_DEPRECIATION_INDIRECT.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • items array[object]
      Hide items attributes Show items attributes object
      • errorCode object
        Hide errorCode attributes Show errorCode attributes object
        • errorCode string

          Values are NO_ERROR, NOT_IMPLEMENTED_YET, CONTACT_NOT_FOUND, FIELD_REQUIRED, VALIDATION_ERROR, DUPLICATION_ERROR, UNIQUE_CONSTRAINT_VIOLATION, WRONG_PASSWORD_FORMAT, WRONG_PASSWORD, ACTION_DENIED, NOT_FOUND, EXPECTED_ONE_FILE, UNIQUE_VIOLATION, CONTENT_EMPTY, INVALID_TYPE, CONVERSION_ERROR, FILE_PARSE_EXCEPTION, or IN_USE.

        • errorDetailValues array[object]
          Hide errorDetailValues attributes Show errorDetailValues attributes object
          • errorCode string
          • fieldName string
          • data string
          • isSevere boolean
      • freshData

        Refreshed domain data

      • freshRow

        Refreshed table row data

      • possibleWorkflows array[object]
        Hide possibleWorkflows attributes Show possibleWorkflows attributes object
        • id integer(int64)
        • name string
      • error boolean
      • severeError boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

PUT /api-v1/chart-accounts/batch
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"}]'
Request examples
# 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"
  }
]
Response examples (200)
{
  "items": [
    {
      "errorCode": {
        "errorCode": "NO_ERROR",
        "errorDetailValues": [
          {
            "errorCode": "string",
            "fieldName": "string",
            "data": "string",
            "isSevere": true
          }
        ]
      },
      "possibleWorkflows": [
        {
          "id": 42,
          "name": "string"
        }
      ],
      "error": true,
      "severeError": true
    }
  ]
}