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",
    "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
1 Answer(s)

Hi,

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:
https://netsuiteprofessionals.com/question/set-item-location-via-rest-api-when-creating-a-new-sales-order/
https://netsuiteprofessionals.com/question/creating-invoices-via-rest-api/

Thanks,

Chris

Intermediate Answered on August 4, 2020.
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