Options
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hi There,
How do I post a "zero" invoice ?
Error requesting: POST "https://integration.visma.net/API/controller/api/v2/customerinvoice" HTTP error: 400 - Bad Request message: Error: Inserting 'Sales invoice/note' record raised at least one error. Please review the errors. Enter the quantity and amounts on all detail lines to save or release the invoice. Body: { "branchNumber": { "value": "4" }, "overrideNumberSeries": { "value": true }, "referenceNumber": { "value": "2405471" }, "customerNumber": { "value": "D04623" }, "documentDate": { "value": "2024-05-16T00:00:00" }, "creditTermsId": { "value": "30" }, "documentDueDate": { "value": "2024-06-15T00:00:00" }, "currencyId": { "value": "EUR" }, "externalReference": { "value": "2405471" }, "paymentReference": { "value": "2405471" }, "hold": { "value": false }, "postPeriod": { "value": "052024" }, "dontPrint": { "value": true }, "dontEmail": { "value": true }, "invoiceLines": [ { "operation": "insert", "lineNumber": { "value": 1 }, "description": { "value": "D04623 2405471" }, "quantity": { "value": null }, "manualAmountInCurrency": { "value": 0.0000 }, "accountNumber": { "value": "8101" }, "vatCodeId": { "value": "1" }, "subaccount": [] } ], "taxDetailLines": [] }
Thanks in advance.
Best regards,
Sander Feenstra
Solved! Go to Solution.
1 REPLY 1
Hi Sander, unfortunately zero invoices without any amount or quantity are not supported. This is the same in UI. The only workarounds are adding amounts with a total of zero in multiple lines, or really simple add a quantity of 1 (or any other). Let us know if this helps.
