intuit / intuit/QuickBooks-V3-DotNET-SDK
BadRequest on SalesReceipt Add when using SalesLineItemDetail
- Dominant language
- C#
- Stars
- 121
- Forks
- 145
- Avg merge
- 17h 1m
- Merged PRs (30d)
- 1
Description
I get the following exception when using a SalesLineItemDetail for AnyIntuitObject on a Line when adding a SalesReceipt: BadRequest. Details: Required parameter Line.SalesItemLineDetail is missing in the request
This appears to happen when I use the SalesItemLineDetail object *without* setting any of its properties. If I set any property, say ServiceDate and ServiceDateSpecified, it works. Without setting a property, the object gets serialized as ``, which for some reason gets rejected. Since according to the documentation all properties of SalesItemLineDetail are optional, I believe the intended functionality should be for an empty SalesItemLineDetail to be accepted.
This works:
`AnyIntuitObject = new SalesItemLineDetail()
{
ServiceDate = DateTime.Now,
ServiceDateSpecified = true
}`
This works:
`AnyIntuitObject = new SalesItemLineDetail()
{
Qty = 1,
QtySpecified = true
}`
This does not work:
`AnyIntuitObject = new SalesItemLineDetail()`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the SalesReceipt add request using SalesLineItemDetail as AnyIntuitObject, comparing an empty object with instances where ServiceDate or Qty is set. Inspect the serialization and request path for SalesReceipt and SalesItemLineDetail; done means an empty SalesItemLineDetail is accepted without the Required parameter Line.SalesItemLineDetail error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100