api help please guys - getting an error with
invalid url passed ...
var
url = "
https://books.zoho.com/api/
v1/packages?&salesorder_id=" +
So_Id + "&authtoken=" +
my_Token +'&organization_id='+
my_OrgID+'&JSONString=' + encodeURIComponent(JSON.stringify(
my_Data))
response = UrlFetchApp.fetch(
url);
Using sample data from documentation ....
var
my_Data
= {
"package_number": "PA-00001",
"date": "2017-01-11T00:00:00.000Z",
"line_items":
[
{
"so_line_item_id":
line_item_id
,
"quantity": 1
}
],
"notes": "notes"
}
I have to do it through the api because Zoho Inventory doesn't have a user role which does NOT show financial data - Does anybody want their warehouse staff to see sales & cost prices ?
It's a great way to encourage them to set up their own business as your competitor because they have no idea of the costs of actually running a business & can only see the gross profits being made !!
Life would be sooooo much simpler with this user role :-/