How can I create a saleOrder with location by item with rest api?

I should create a order with location by each item, but when I try to create with this json:

{
    “entity”: {
        “id”: “6753”
    },
    “externalId”: “8700000008”,
    “customForm”: “68”,
    “tranDate”: “2023-05-17”,
    “startdate”: “2023-06-30”,
    “enddate”: “2023-06-30”,
    “otherRefNum”: “11037”,
    “memo”: “example with status A 4.0”,
    “location”: {
        “id”: “1”,
        “refName”: “Centro”
    },
    “item”: {
        “items”: [
            {
                “item”: {
                    “id”: 6753
                },
                “quantity”: 5,
                “rate”: 6500,
                “description”: “Test Item”,
                “location”: {
                    “id”: “2”,
                    “refName”: “Puente Aranda”
                }
            },
            {
                “item”: {
                    “id”: 4302
                },
                “rate”: 10000
            }
        ]
    }
}The sale order is created but without location, and  I need this location.

I've tried create the saleorder send location in inventoryDetail, but I get a error.
Rookie Asked on October 18, 2023 in SuiteTalk.
Add Comment
1 Answer(s)

This has been a problem for some time:

https://netsuiteprofessionals.com/blog/question/set-item-location-via-rest-api-when-creating-a-new-sales-order/

What is the exact error that you are seeing?

Intermediate Answered on November 5, 2023.
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   Become a Sponsor   Become a Sponsor