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.
This has been a problem for some time:
What is the exact error that you are seeing?