RE: 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 Josiah 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",
    "entity":{"id":"1111111"},
    "shippingAddress":{
        "phone":"555-555-5555",
        "addressee":"Buddy Brown",
        "addr1":"11111 Home St",
        "addr2":"",
        "city":"Metropolis",
        "state":"XX",
        "zip":"90000",
        "country":"US"
    },
    "paymentMethod": {"id": 1},
    "department": {"id":1},
    "item":{
        "items":[
            {
                "item":{"id":"115913"},
                "quantity":1,
                "rate":448.99,
"taxCode": {"id":"12345"} } ] } }

 

on August 4, 2020.
Add Comment
3 Answers

After some googling, I came across this post https://community.oracle.com/netsuite/discussion/4473977/setting-tax-code-for-sales-order-item-through-rest-api, 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.