Issue adding a Vendor Bill using the SuiteTalk Rest API
I am trying to use the Netsuite SuiteTalk Rest API to create a Vendor Bill but I keep running into the same error “Error while accessing resource: Please enter value(s) for: Branch Location”. I checked that I do have the “Branch Locations” permission and have tried several formats for the location tag but I still get the same error. Below is an example of the JSON i am trying to send.
{
"entity": { "id": 3214 },
"TranId": "3442242",
"item": {
"items": [
{
"item": { "id":"123" },
"itemType": "InvtPart",
"description": "Example Item Description",
"location": { "id":"456" },
"quantity": 3,
"rate": 0.74,
"line": 1,
"amount": 2.22
}
]
}
}
I am able to list the locations using the API. I have also tried using “location”: “456” and “location”: 456 but those do not work either.
Any help would be greatly appreciated this one has me really stuck
Hi,
Unfortunately, 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-line-item-taxcode-via-rest-api/
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
Thank you Chris
We ended up removing the the Location from the line items and adding it to the actual vendor bill and that appears to work now.
Can you help me out I am having the same exact issue, can you provide me the json that you send in the payload, I tried removing location and nothing helps.
You have to customize the vendor bill template first to remove the location from the line items before it will work.