Hello, I try to post a journal transaction on which I receive error 'SubID' is not found. I can't figure out what wrong. Error requesting: POST "https://integration.visma.net/API/controller/api/v2/journalTransaction"
HTTP error: 400 - Bad Request
message: VismaId: 64e857ac-e612-4e0d-8065-29ea343b2f47. Error creating journal transaction. Error: 'SubID' is not found.
Body: {
"batchNumber": {
"value": "3001"
},
"overrideNumberSeries": {
"value": true
},
"branch": {
"value": "1"
},
"transactionDate": {
"value": "2024-01-26T00:00:00"
},
"postPeriod": {
"value": "012024"
},
"ledger": {
"value": "WERKELIJK"
},
"hold": {
"value": false
},
"currencyId": {
"value": "EUR"
},
"createVatTransaction": {
"value": "true"
},
"journalTransactionLines": [
{
"operation": "insert",
"lineNumber": {
"value": 1
},
"accountNumber": {
"value": "8100"
},
"subaccount": [
{
"segmentId": 1,
"segmentValue": "A"
},
{
"segmentId": 2,
"segmentValue": "1"
}
],
"transactionDescription": {
"value": "Regel 1"
},
"debitAmountInCurrency": {
"value": 500.0000
},
"creditAmountInCurrency": {
"value": null
},
"quantity": {
"value": null
}
},
{
"operation": "insert",
"lineNumber": {
"value": 2
},
"accountNumber": {
"value": "8100"
},
"subaccount": [
{
"segmentId": 1,
"segmentValue": "B"
},
{
"segmentId": 2,
"segmentValue": "3"
}
],
"transactionDescription": {
"value": "Regeltje 2"
},
"debitAmountInCurrency": {
"value": null
},
"creditAmountInCurrency": {
"value": 500.0000
},
"quantity": {
"value": null
}
}
]
} Can someone help me out? Thanks Kind regards, Sander
... View more