RE: 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

hickerbilly1988 Rookie Asked on August 25, 2020 in SuiteTalk.
Add Comment
3 Answers

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.

Rookie Answered on August 25, 2020.

You have to customize the vendor bill template first to remove the location from the line items before it will work.

on August 25, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.