Update journal line exchange rates

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
PATCH /api-v1/journal/line

Updates exchange rates for the specified journal line and returns the updated entry.

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

Query parameters

  • date string(date-time) Required

    Date for exchange rate calculation

  • companyCurrencyId integer(int64) Required

    Company currency ID

application/json

Body Required

  • 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 attributes Show response attributes object
    • id integer(int64)
    • journalEntryId integer(int64)
    • accountId integer(int64) Required
    • accountNumber integer(int64)
    • description object
      Hide description attributes Show description attributes object
      • en string
      • fr string
      • de string
      • it string
    • accountCurrencyId integer(int64)
    • accountCurrencyCode string
    • foreignCurrencyId integer(int64)
    • foreignCurrencyCode string
    • accountDebit string

      Numeric value represented as string

    • accountCredit string

      Numeric value represented as string

    • foreignDebit string

      Numeric value represented as string

    • foreignCredit string

      Numeric value represented as string

    • companyDebit string

      Numeric value represented as string

    • companyCredit string

      Numeric value represented as string

    • departmentId integer(int64)
    • departmentName string
    • contactId integer(int64)
    • contactName string
    • orderId integer(int64)
    • orderIdToDisplay string
    • articleId integer(int64)
    • articleIdToDisplay object
      Hide articleIdToDisplay attributes Show articleIdToDisplay attributes object
      • en string
      • fr string
      • de string
      • it string
    • vatCodes array[object]
      Hide vatCodes attributes Show vatCodes attributes object
      • id integer(int64)
      • code string
      • title object
        Hide title attributes Show title attributes object
        • en string
        • fr string
        • de string
        • it string
      • countryId integer(int64)
      • startDate string
      • endDate string
      • effectiveDate string
    • vatCodesConcatenated object
      Hide vatCodesConcatenated attributes Show vatCodesConcatenated attributes object
      • en string
      • fr string
      • de string
      • it string
    • accountName object
      Hide accountName attributes Show accountName attributes object
      • en string
      • fr string
      • de string
      • it string
    • officeId integer(int64)
    • officeName string
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

PATCH /api-v1/journal/line
curl \
 --request PATCH 'https://wyzio.app/api-v1/journal/line?date=2026-05-04T09%3A42%3A00Z&companyCurrencyId=42' \
 --header "Content-Type: application/json" \
 --data '{"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,
  "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)
{
  "id": 42,
  "journalEntryId": 42,
  "accountId": 42,
  "accountNumber": 42,
  "description": {
    "en": "string",
    "fr": "string",
    "de": "string",
    "it": "string"
  },
  "accountCurrencyId": 42,
  "accountCurrencyCode": "string",
  "foreignCurrencyId": 42,
  "foreignCurrencyCode": "string",
  "accountDebit": "100.55",
  "accountCredit": "100.55",
  "foreignDebit": "100.55",
  "foreignCredit": "100.55",
  "companyDebit": "100.55",
  "companyCredit": "100.55",
  "departmentId": 42,
  "departmentName": "string",
  "contactId": 42,
  "contactName": "string",
  "orderId": 42,
  "orderIdToDisplay": "string",
  "articleId": 42,
  "articleIdToDisplay": {
    "en": "string",
    "fr": "string",
    "de": "string",
    "it": "string"
  },
  "vatCodes": [
    {
      "id": 42,
      "code": "string",
      "title": {
        "en": "string",
        "fr": "string",
        "de": "string",
        "it": "string"
      },
      "countryId": 42,
      "startDate": "string",
      "endDate": "string",
      "effectiveDate": "string"
    }
  ],
  "vatCodesConcatenated": {
    "en": "string",
    "fr": "string",
    "de": "string",
    "it": "string"
  },
  "accountName": {
    "en": "string",
    "fr": "string",
    "de": "string",
    "it": "string"
  },
  "officeId": 42,
  "officeName": "string"
}