How to add shipping cost to sales order

Hi,

I have only started using netsuite and have managed to create a sales order with lines via the rest api.

I am struggling to add a shipping cost. The error is i need to add a shipping method.

Trying to add a shipping method i receive the error:

“detail”: “Error while accessing a resource. You have entered an Invalid Field Value 188236 for the following field: shipmethod.”,

            “o:errorCode”: “USER_ERROR”
        }

I have went into the ship items tab and the id looks like it is the correct id 188236.

    {
    “entity”: {
        “id”: “13014813”
    },
    “item”: {
        “items”: [{
                “item”: { “id”:”216855″ },
                “amount”:2.99
        }]
    },
    “shippingcost” : 1.99,
    “shipMethod”: {
        “id”: “188236”,
    }
}
Best,
ross
Rookie Asked on August 12, 2022 in SuiteCloud.
Add Comment
0 Answer(s)

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