Mark shipment as delivered via api

Mark shipment as delivered via api

Hellloooo again Zoho guys !!

More help required if you would be so kind, pleeeezz.....

var options
      {
        'method' : 'post',
        'contentType' : 'application/json',
        'muteHttpExceptions' : true
      };

var myPackNo  = encodeURIComponent('###################');
var tmp = ' https://books.zoho.com/api/v3/shipmentorders/' + myPackNo + '/status/delivered?authtoken=' 
    + token +'&organization_id='+ orgID;
    var response = UrlFetchApp.fetch( tmp,options);

Not working for me - error = "code":1002,"message":"Shipment Order does not exist." (but it does)
This url is from the Zoho Inventory documentation ?

If I try what works for marking the package as shipped - I get an internal error : code 1000 ? ....

var data
       {
         "status" : "delivered"
       }
  var options
      {
        'method' : 'post',
        'contentType' : 'application/json',
        'muteHttpExceptions' : true
      };

var tmp = ' https://books.zoho.com/api/v3/shipmentorders?package_ids=' + myPackNo  + '&salesorder_id='+ So_Id
    +"&authtoken=" + token +'&organization_id='+ orgID + '&JSONString=' + encodeURIComponent(JSON.stringify( data));
    var response = UrlFetchApp.fetch( tmp, options);