Options
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Error creating journal transaction. Customer currency and Base currency are Identical
04-03-2025
10:27
by
Quan Pham
Hi,
I'm encountering an error when trying to create a journal transaction with the JSON below. The same JSON works in another company but fails in this one.
If I remove the "exchangeRate" field, it works, but it should be possible to send a value of 0 since it works for another company. Could you help me understand why this is happening and how to fix it?
Thank you!
View more
{
"ledger": {
"Value": "1"
},
"transactionCode": {
"Value": "GLNE"
},
"journalTransactionLines": [{
"accountNumber": {
"Value": "9001"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": -8.5
},
"debitAmountInCurrency": {
"Value": -3910.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "120230001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "4300"
}
],
"creditAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9009"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": -8.5
},
"creditAmountInCurrency": {
"Value": -3910.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "110120001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "0000"
}
],
"debitAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9001"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": -8.5
},
"debitAmountInCurrency": {
"Value": -3910.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "120230001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "4300"
}
],
"creditAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9009"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": -8.5
},
"creditAmountInCurrency": {
"Value": -3910.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "110120001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "0000"
}
],
"debitAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9001"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": 8.5
},
"debitAmountInCurrency": {
"Value": 5355.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "110120001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "4100"
}
],
"creditAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9009"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": 8.5
},
"creditAmountInCurrency": {
"Value": 5355.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "110140001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "0000"
}
],
"debitAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}
],
"transactionDate": {
"Value": "2025-02-01T00:00:00.000Z"
},
"description": {
"Value": "Text."
},
"financialPeriod": {
"Value": "202502"
},
"postPeriod": {
"Value": "022025"
},
"controlTotalInCurrency": {
"Value": 0.0
},
"exchangeRate": {
"Value": 0.0
}
}
"ledger": {
"Value": "1"
},
"transactionCode": {
"Value": "GLNE"
},
"journalTransactionLines": [{
"accountNumber": {
"Value": "9001"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": -8.5
},
"debitAmountInCurrency": {
"Value": -3910.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "120230001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "4300"
}
],
"creditAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9009"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": -8.5
},
"creditAmountInCurrency": {
"Value": -3910.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "110120001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "0000"
}
],
"debitAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9001"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": -8.5
},
"debitAmountInCurrency": {
"Value": -3910.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "120230001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "4300"
}
],
"creditAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9009"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": -8.5
},
"creditAmountInCurrency": {
"Value": -3910.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "110120001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "0000"
}
],
"debitAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9001"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": 8.5
},
"debitAmountInCurrency": {
"Value": 5355.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "110120001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "4100"
}
],
"creditAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}, {
"accountNumber": {
"Value": "9009"
},
"transactionDescription": {
"Value": "Datum: 2025-01-07"
},
"quantity": {
"Value": 8.5
},
"creditAmountInCurrency": {
"Value": 5355.0
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "110140001"
}, {
"segmentId": 2,
"segmentValue": "00"
}, {
"segmentId": 3,
"segmentValue": "0000"
}
],
"debitAmountInCurrency": {
"Value": 0.0
},
"lineNumber": {
"Value": 0
},
"operation": "Insert"
}
],
"transactionDate": {
"Value": "2025-02-01T00:00:00.000Z"
},
"description": {
"Value": "Text."
},
"financialPeriod": {
"Value": "202502"
},
"postPeriod": {
"Value": "022025"
},
"controlTotalInCurrency": {
"Value": 0.0
},
"exchangeRate": {
"Value": 0.0
}
}
0 REPLIES 0
