Back to Collection Items
var os = require('os');
if (os.platform() == 'win32') {
if (os.arch() == 'ia32') {
var chilkat = require('@chilkat/ck-node21-win-ia32');
} else {
var chilkat = require('@chilkat/ck-node21-win64');
}
} else if (os.platform() == 'linux') {
if (os.arch() == 'arm') {
var chilkat = require('@chilkat/ck-node21-arm');
} else if (os.arch() == 'x86') {
var chilkat = require('@chilkat/ck-node21-linux32');
} else {
var chilkat = require('@chilkat/ck-node21-linux64');
}
} else if (os.platform() == 'darwin') {
if (os.arch() == 'arm64') {
var chilkat = require('@chilkat/ck-node21-mac-m1');
} else {
var chilkat = require('@chilkat/ck-node21-macosx');
}
}
function chilkatExample() {
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
var http = new chilkat.Http();
var success;
var queryParams = new chilkat.JsonObject();
queryParams.UpdateString("dateTimeIssued","2022-03-08T00:00:00Z");
// resp: HttpResponse
var resp = http.QuickRequestParams("GET","https://domain.com/api/v1/receipts/:uuid/share",queryParams);
if (http.LastMethodSuccess == false) {
console.log(http.LastErrorText);
return;
}
console.log(resp.StatusCode);
console.log(resp.BodyStr);
}
chilkatExample();
Curl Command
curl -G -d "dateTimeIssued=2022-03-08T00%3A00%3A00Z"
https://domain.com/api/v1/receipts/:uuid/share
Postman Collection Item JSON
{
"name": "5. Get Receipt Details Anonymously",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [
],
"url": {
"raw": "{{apiBaseUrl}}/api/v1/receipts/:uuid/share?dateTimeIssued=2022-03-08T00:00:00Z",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"api",
"v1",
"receipts",
":uuid",
"share"
],
"query": [
{
"key": "dateTimeIssued",
"value": "2022-03-08T00:00:00Z"
}
],
"variable": [
{
"key": "uuid",
"value": "b4c08c8b273c45d6b824b359d87d957345b0ec6859eb4ad7b68221244ca55d85"
}
]
}
},
"response": [
]
}