WebAPI - APInvoiceBatches, DUE DATE is invalid

Hi,

With Sage 2022 PU3, we send an AP invoice in Sage using the endpoint APInvoiceBatchList.

According to the documentation the DUEDATE is optional(DueDate (stringoptional),).

If we don't put a due date, it gives the error "Due date is invalide".

If we put an empty string it gives "Cannot convert the literal '' to the expected type 'Edm.DateTimeOffset'"

I want Sage to determine the Due Date based on the vendor informations. How can we achieve this?

Here's what I use as exemple:

{
"BatchNumber": 0,
"BatchDate": "2023-07-06T19:01:57.980Z",
"BatchType": "Entered",
"BatchStatus": "Open",
"InvoiceType": "Summary",
"ICTRelated": "No",
"ProcessCommandCode": "UnlockBatchResource",
"Invoices": [
{
"VendorNumber":"100006",
"DocumentNumber":"975779",
"DiscountPercentage":0,
"DiscountDate":"2023-04-28",
"DocumentType":"Invoice",
"DocumentDate":"2023-04-28",

"DueDate":"2023-04-30",
"DocumentTotalIncludingTax":2920.37,
"TaxAmount1":127,
"TaxAmount2":253.37,
"PostingDate":"2023-04-28",
"TaxAmountControl":"Distribute",
"InvoiceDetails":
[
{"DistributedAmount":636.26,"GLAccount":"1010-112015","Comment":"","DistributionDescription":"F)","TaxAmount1":0,"TaxAmount2":0,"TaxAmount3":0,"TaxAmount4":0,"TaxAmount5":0},{"DistributedAmount":403.74,"GLAccount":"1010-112015","Comment":"C","DistributionDescription":"Frais de transport ","TaxAmount1":0,"TaxAmount2":0,"TaxAmount3":0,"TaxAmount4":0,"TaxAmount5":0},{"DistributedAmount":1500,"GLAccount":"1010-112015","DistributionDescription":"Frais de livraison - OUT (ch)","Comment":"","TaxAmount1":0,"TaxAmount2":0,"TaxAmount3":0,"TaxAmount4":0,"TaxAmount5":0}
]
}
]
}