문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top