Updates exchange rates for the specified journal line and returns the updated entry.
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
-
Journal entry ID this line belongs to
-
Chart of accounts ID
-
Multilingual description for the journal line
-
Account currency ID
-
Foreign currency ID
-
Debit amount in the account currency, as string
-
Credit amount in the account currency, as string, sent as a negative value
-
Debit amount in the foreign currency, as string
-
Credit amount in the foreign currency, as string, sent as a negative value
-
Debit amount in the company currency, as string
-
Credit amount in the company currency, as string, sent as a negative value
-
Department ID
-
Contact ID
-
Order ID
-
Article ID
-
VAT codes applied to this line
-
Office ID
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}'
# 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
}
{
"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"
}