Question

QBO raises the error code 2250 "You must fill out at least one split line". Why does it need to pass a line for deleting an invoice? Should it just require invoice.id?

Was it helpful?

Solution

For whatever bizarre reason, the Intuit v3 "delete" call requires that you pass the entire invoice object to the delete call in order to delete an invoice.

It's weird, yes. Unfortunately, it's also the way the API works and is required.

You can see this documented here:

Quoting:

The request body includes the full payload of the object as returned in a read response.

OTHER TIPS

I figured a hack way without submitting the entire object. It accepts an empty line and sync token along with the invoice id.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top