API error 37003 line total is unbalanced

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
Phurby
3 Posts
User

3Posts

0Kudos

0Solutions

Solved: Go to Solution

API error 37003 line total is unbalanced

When using the API (I'm working on an item bill) I am unable to modify a line item total, or add a new item. I end up with the error code 37003  which says "The line total is unbalanced". Is there any way for the API to get around this or is it intended that the API is unable to modify a line item?

 

Thanks, Phu

2 REPLIES 2
John_Dinning
Trusted User
71 Posts
Trusted User
Australia
Trusted User

71Posts

15Kudos

6Solutions

Accepted Solution Solved

Re: API error 37003 line total is unbalanced

If I remember correctly, I found that the line total is not actually required when posting to the API (although the doc says it is) and can cause 'Line Total Is Unbalanced' Errors.

 

Set the BillQuantity but not the Total. AccountRight will calculate the total itself.

 

John.

Phurby
3 Posts
User

3Posts

0Kudos

0Solutions

Re: API error 37003 line total is unbalanced

That did the trick. I had just taken the API requirements documentation as gospel, which had stated the Total is a required field. Removing the Total and setting the BillQuantity and UnitPrice instead allowed me to proceed with the update without any errors.

 

Thanks very much,

Phu

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post