The result should be:

"{" document ": {" receipt ": {" operationType ": 1," fiscalSign ": 3522207165 .......... ..... " 

and it turns out like this:

 "{" id ":" 5be96bfc38ded67a6285e66c "}" 

I don't understand something.

Posted based on this topic .
Also, JS code is used here so that it should work exactly.

 function shortenURL(longUrl) { var v1 = "9288000100076770" var v2 = "36326" var v3 = "1322455576" var v4 = "57100" var v5 = "2018-11-10T14:55" //2018-10-31T16:12:00 var serviceUrl = "https://proverkacheka.nalog.ru:9999/v1/inns/*/kkts/*/fss/"+v1+"/tickets/"+v2+"?fiscalSign="+v3+"&sendToEmail=no&operationType=1&sum="+v4+"&date="+v5 var username ="+79312009126" var password ="780980" var options = { muteHttpExceptions:true, method:"get", contentType: "application/json", payload : JSON.stringify({'longUrl': longUrl }), }; options.headers = { "Authorization": "Basic " + Utilities.base64Encode(username + ":" + password), "device-id": "", "device-os": "" }; var response=UrlFetchApp.fetch(serviceUrl, options); Browser.msgBox(response.getContentText()) } 
  • GET does not send any payload , so it definitely should not work. - oshliaer

0