I post a project transaction with 2 different financial periods but they get the same period in Visma.Net POST: https://integration.visma.net/API/controller/api/v1/projecttransaction
Headers: {
Accept: application/json
Authorization: <hidden>
ipp-application-type: Visma.net Financials
ipp-company-id: 3553648
Accept-Encoding: gzip Accept-Encoding: deflate
Request-Id: |wj4VMNYduQY=.f86efa56_51.
Content-Type: application/json; charset=utf-8
Content-Length: 963
}
{
"description": { "value": "2022-04-22" },
"lines": [{
"operation": "Insert",
"date": { "value": "2022-04-22T00:00:00" },
"inventoryId": { "value": "Yrkesarbetare" },
"quantity": { "value": 8 },
"amount": { "value": 450.0 },
"financialPeriod": { "value": "202204" },
"project": { "value": "18055" },
"projectTask": { "value": "1" },
"debitAccount": { "value": "7118" },
"debitSubaccount": { "value": "1805500000000" },
"creditAccount": { "value": "7110" },
"creditSubaccount": { "value": "1805500000000" },
"accountGroup": { "value": "70" }
},{
"operation": "Insert",
"date": { "value": "2022-05-20T00:00:00" },
"inventoryId": { "value": "Yrkesarbetare" },
"quantity": { "value": -8 },
"amount": { "value": 450.0 },
"financialPeriod": { "value": "202205" },
"project": { "value": "18055" },
"projectTask": { "value": "1" },
"debitAccount": { "value": "7118" },
"debitSubaccount": { "value": "1805500000000" },
"creditAccount": { "value": "7110" },
"creditSubaccount": { "value": "1805500000000" },
"accountGroup": { "value": "70" },
"description": { "value": "Reverse" }
}]
} It works if I send them in two requests. POST+PUT
... View more