Set Line Item TaxCode via REST API

I’m trying to set the tax code at the item line level. When I send a payload containing the tax code ID it is not set within NetSuite. Is there more to setting this field then the one id value?

Rookie Asked on August 3, 2020 in SuiteTalk.

Could you please share a sample of the request that you are sending.

on August 4, 2020.

Here is a sample payload.  

    "trandate": "2020-01-01",
        "addressee":"Buddy Brown",
        "addr1":"11111 Home St",
    "paymentMethod": {"id": 1},
    "department": {"id":1},
"taxCode": {"id":"12345"} } ] } }


on August 4, 2020.
Add Comment
3 Answer(s)


I can confirm that, whilst I get an error for an invalid value, I cannot get the value to set correctly.

There have been a couple of recent issues that suggest there might be something not working correctly when it comes to selections on the Item sublist:



Intermediate Answered on August 4, 2020.
Add Comment

I have same issue, but with vendorbill.  Has this issue been resolved?  If yes, what was the solution?

Rookie Answered on June 22, 2022.
Add Comment

After some googling, I came across this post, which suggests that assigning line-level taxes don’t work with REST API unless you have the SuiteTax feature enabled.  Can you confirm you have this enabled for your NS account?

Rookie Answered on June 22, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor