Batch update journal entries

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
POST /api-v1/journal/batch

Updates multiple journal 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

  • organizationId integer

    Organization ID

  • entryId integer

    Entry reference ID (displayed as entry number)

  • entryDate string Required

    Entry date (format dd/MM/yyyy)

  • description string Required

    Entry description

  • amount number

    Total amount of the entry, computed as the maximum of total debit and total credit in company currency

  • debitAccounts string

    Slash-separated list of debit account numbers

  • creditAccounts string

    Slash-separated list of credit account numbers

  • type string

    Journal entry type

    Values are OPENING, MANUAL, PURCHASE_INVOICE, SALES_INVOICE, SALARY_SLIP, STOCK, CLOSING, SYSTEM, SYSTEM_FX, SYSTEM_PFUV, or FIXED_ASSET.

  • journalLines array[object]

    Request model for a journal entry line

    Hide journalLines attributes Show journalLines attributes object

    Request model for a journal entry line

    • id integer

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

    • journalEntryId integer

      Journal entry ID this line belongs to

    • accountId integer Required

      Chart of accounts ID

    • description object

      Multilingual description for the journal line

      Hide description attributes Show description attributes object
      • id integer

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

      • en string
      • fr string
      • de string
      • it string
    • accountCurrencyId integer

      Account currency ID

    • foreignCurrencyId integer

      Foreign currency ID

    • accountDebit string

      Debit amount in the account currency, as string

    • accountCredit string

      Credit amount in the account currency, as string, sent as a negative value

    • foreignDebit string

      Debit amount in the foreign currency, as string

    • foreignCredit string

      Credit amount in the foreign currency, as string, sent as a negative value

    • companyDebit string

      Debit amount in the company currency, as string

    • companyCredit string

      Credit amount in the company currency, as string, sent as a negative value

    • departmentId integer

      Department ID

    • contactId integer

      Contact ID

    • orderId integer

      Order ID

    • articleId integer

      Article ID

    • vatCodes array[object]

      VAT codes applied to this line

      Hide vatCodes attribute Show vatCodes attribute object
      • id integer Required

        VAT code ID

    • officeId integer

      Office ID

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

POST /api-v1/journal/batch
curl \
 --request POST 'https://wyzio.app/api-v1/journal/batch' \
 --header "Content-Type: application/json" \
 --data '[{"id":12345678,"organizationId":12345678,"entryId":12345678,"entryDate":"01/06/2026","description":"Office rent payment","amount":1200.0,"debitAccounts":"1000/2000","creditAccounts":"3000/4000","type":"MANUAL","journalLines":[{"id":12345678,"journalEntryId":12345678,"accountId":12345678,"description":{"id":12345678,"en":"English translation","fr":"Traduction française","de":"Deutsche Übersetzung","it":"Traduzione in italiano"},"accountCurrencyId":12345678,"foreignCurrencyId":12345678,"accountDebit":100.0,"accountCredit":-100.0,"foreignDebit":100.0,"foreignCredit":-100.0,"companyDebit":100.0,"companyCredit":-100.0,"departmentId":12345678,"contactId":12345678,"orderId":12345678,"articleId":12345678,"vatCodes":[{"id":12345678}],"officeId":12345678}]}]'
Request examples
# Headers

# Payload
[
  {
    "id": 12345678,
    "organizationId": 12345678,
    "entryId": 12345678,
    "entryDate": "01/06/2026",
    "description": "Office rent payment",
    "amount": 1200.0,
    "debitAccounts": "1000/2000",
    "creditAccounts": "3000/4000",
    "type": "MANUAL",
    "journalLines": [
      {
        "id": 12345678,
        "journalEntryId": 12345678,
        "accountId": 12345678,
        "description": {
          "id": 12345678,
          "en": "English translation",
          "fr": "Traduction française",
          "de": "Deutsche Übersetzung",
          "it": "Traduzione in italiano"
        },
        "accountCurrencyId": 12345678,
        "foreignCurrencyId": 12345678,
        "accountDebit": 100.0,
        "accountCredit": -100.0,
        "foreignDebit": 100.0,
        "foreignCredit": -100.0,
        "companyDebit": 100.0,
        "companyCredit": -100.0,
        "departmentId": 12345678,
        "contactId": 12345678,
        "orderId": 12345678,
        "articleId": 12345678,
        "vatCodes": [
          {
            "id": 12345678
          }
        ],
        "officeId": 12345678
      }
    ]
  }
]
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
    }
  ]
}