要求:
{
"AmountDue": 1.0,
"AmountPaid": 0.0,
"Contact": {
"ContactID": "080d6f7d-db12-4a35-ae52-de5a4e815b4d"
},
"CurrencyCode": "CAD",
"CurrencyRate": 0.0,
"Date": "2024-05-02T15:22:44",
"LineAmountTypes": "Exclusive",
"LineItems": [
{
"AccountCode": "200",
"Description": "item2",
"DiscountAmount": 0.0,
"DiscountRate": "0.00000",
"ItemCode": "item2",
"LineAmount": 10.0,
"Quantity": 1.0,
"TaxAmount": 0.0,
"UnitAmount": 10.0
},
{
"AccountCode": "200",
"Description": "item3",
"DiscountAmount": 0.0,
"DiscountRate": "0.00000",
"ItemCode": "item3",
"LineAmount": -9.0,
"Quantity": 1.0,
"TaxAmount": 0.0,
"UnitAmount": -9.0
}
],
"SentToContact": false,
"Status": "DRAFT",
"SubTotal": 1.0,
"Total": 1.0,
"TotalDiscount": 0.0,
"TotalTax": 0.0,
"Type": "ACCREC"
}
期望它能够工作,因为它可以通过 UI 实现。