Hello,
Please don't send key-value in the payload with empty or null, you can find the edited version of your JSON below.
{ "SupplierNumber": { "Value": "50048 " }, "SupplierReference": { "Value": "100006.1" }, "Note": { "Value": ";Administrationstjänster//;Omkostnader//" }, "CurrencyId": { "Value": "SEK" }, "DueDate": { "Value": "2023-02-16T01:00:00+01:00" }, "Date": { "Value": "2023-01-17T01:00:00+01:00" }, "SupplierTaxZone": { "Value": "01" }, "PaymentRefNo": { "Value": "100006" }, "CashDiscountDate": { "Value": "2023-02-16T01:00:00+01:00" }, "InvoiceLines": [{ "LineNumber": { "Value": 1 }, "CostInCurrency": { "Value": 34246.58 }, "AccountNumber": { "Value": "4990" }, "VatCodeId": { "Value": "01" }, "Operation": "Insert", "Subaccount": [{ "SegmentId": 1, "SegmentValue": "30098" }, { "SegmentId": 2, "SegmentValue": "30098A001" }, { "SegmentId": 3, "SegmentValue": "000" }, { "SegmentId": 4, "SegmentValue": "00" } ] }, { "LineNumber": { "Value": 3 }, "CostInCurrency": { "Value": -0.23 }, "AccountNumber": { "Value": "3740" }, "VatCodeId": { "Value": "12A" }, "Operation": "Insert", "Subaccount": [{ "SegmentId": 1, "SegmentValue": "00000" }, { "SegmentId": 2, "SegmentValue": "00000000" }, { "SegmentId": 3, "SegmentValue": "000" }, { "SegmentId": 4, "SegmentValue": "00" } ] } ], "DocumentType": { "Value": "Invoice" }
}
Additionally, please send us a print screen showing your subaccount > Segment & Values from the Financials ERP UI.
Segment Keys <ScreenId=CS202000&DimensionID=SUBACCOUNT>
then by clicking "segment ID" you can check available Segment Values for the Subaccount
... View more