有谁知道为什么 Sage 300 拒绝了我的有效 json 有效负载(附在下面)并带有无效的有效负载错误消息?
授权:基本身份验证用户:********** 通过:**********
标头内容类型:application/json 接受:text/plain
{
"Invoices" : [
{
"VendorNumber" : "vendorA",
"DocumentNumber" : "1234",
"DocumentType" : "Invoice",
"DocumentDate" : "2019-09-06T06:00:00.000Z",
"DueDate" : "2019-10-06T06:00:00.000Z",
"Taxable" : "1",
"TaxAmountControl" : "0",
"TaxGroup" : "GST",
"TaxAuthority1" : "GST",
"TaxClass1" : 1,
"TaxAmount1" : 5,
"DocumentTotalIncludingTax" : 105,
"InvoiceDetails" : [
{
"ManualTaxEntry" : "1",
"TaxClass1" : 1,
"TaxAmount1" : 5,
"GLAccount" : "00000000000000",
"DistributedAmount" : 100,
"DestinationDescription" : "Description"
}
]
}
],
"UpdateOperation" : "Insert"
}
我已经尝试过更新内容类型并使用 swagger 定义更新了我的请求配置文件。
用户能够在招摇和成功响应下执行相同的 json 有效负载。