Update carrier after package is created with API
Hello,
We use carriers not compatible with Aftership and other integrations Zoho Inventory has, so we are developing a way to select the carries automatically according carrier's rates. We uploaded a CSV to Zoho Analytics with the rates combined and we get it from Zoho Inventory in a workflow
The main problem comes when we want to update the shipping order and the carrier, it always gives us this error: ""JSONString parameter is mandatory"
This is the code that is failing: "Dascher" is the carrier name. It will be in a variable but this is ifor testing.
Anyone know how to do it?
- response = invokeUrl
[
url: "https://www.zohoapis.eu/inventory/v1/packages?organization_id=" + organizationID + "&salesorder_number_contains=" + salesNumber
type: GET
connection: "inventoryshipments"
];
listPackages = response.get("packages");
for each pkg in listPackages {
pkgID = pkg.get("package_id");
update = Map();
update.put("delivery_method", "Dascher");
actualiza = zoho.inventory.updateRecord("packages", organizationID, pkgID, update);
info actualiza;
}