Search code examples
quickbooks-online

Error Code: 2250 when deleting an invoice


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?


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.