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("DocumentId","a9d6831c554702f36fd782964ad1b4738f83ea2705eafe28d48d2cf64b331af0");
queryParams.UpdateString("ReceiptNumber","1234566788");
queryParams.UpdateString("DocumentTypeCode","R");
queryParams.UpdateString("DocumentTypeName","Return Receipt");
queryParams.UpdateString("DocumentTypeVersionNumber","1.1");
queryParams.UpdateInt("ReceiverId",113317713);
queryParams.UpdateString("ReceiverName","Taxpayer1");
queryParams.UpdateString("Status","Valid");
queryParams.UpdateString("SortBy","DateTimeReceived");
queryParams.UpdateString("SortDir","Asc");
queryParams.UpdateInt("PageNo",1);
queryParams.UpdateInt("PageSize",10);
// Adds the "Authorization: Bearer <access_token>" header.
http.AuthToken = "<access_token>";
// resp: HttpResponse
var resp = http.QuickRequestParams("GET","https://domain.com/api/v1/receiptsubmissions/:submissionUuid/details",queryParams);
if (http.LastMethodSuccess == false) {
console.log(http.LastErrorText);
return;
}
console.log(resp.StatusCode);
console.log(resp.BodyStr);
}
chilkatExample();
Curl Command
curl -G -d "DocumentId=a9d6831c554702f36fd782964ad1b4738f83ea2705eafe28d48d2cf64b331af0"
-d "ReceiptNumber=1234566788"
-d "DocumentTypeCode=R"
-d "DocumentTypeName=Return%20Receipt"
-d "DocumentTypeVersionNumber=1.1"
-d "ReceiverId=113317713"
-d "ReceiverName=Taxpayer1"
-d "Status=Valid"
-d "SortBy=DateTimeReceived"
-d "SortDir=Asc"
-d "PageNo=1"
-d "PageSize=10"
-H "Authorization: Bearer <access_token>"
https://domain.com/api/v1/receiptsubmissions/:submissionUuid/details
Postman Collection Item JSON
{
"name": "6. Get Receipt Submission",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{generatedAccessToken}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
],
"url": {
"raw": "{{apiBaseUrl}}/api/v1/receiptsubmissions/:submissionUuid/details?DocumentId=a9d6831c554702f36fd782964ad1b4738f83ea2705eafe28d48d2cf64b331af0&ReceiptNumber=1234566788&DocumentTypeCode=R&DocumentTypeName=Return Receipt&DocumentTypeVersionNumber=1.1&ReceiverId=113317713&ReceiverName=Taxpayer1&Status=Valid&SortBy=DateTimeReceived&SortDir=Asc&PageNo=1&PageSize=10",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"api",
"v1",
"receiptsubmissions",
":submissionUuid",
"details"
],
"query": [
{
"key": "DocumentId",
"value": "a9d6831c554702f36fd782964ad1b4738f83ea2705eafe28d48d2cf64b331af0"
},
{
"key": "ReceiptNumber",
"value": "1234566788"
},
{
"key": "DocumentTypeCode",
"value": "R"
},
{
"key": "DocumentTypeName",
"value": "Return Receipt"
},
{
"key": "DocumentTypeVersionNumber",
"value": "1.1"
},
{
"key": "ReceiverId",
"value": "113317713"
},
{
"key": "ReceiverName",
"value": "Taxpayer1"
},
{
"key": "Status",
"value": "Valid"
},
{
"key": "SortBy",
"value": "DateTimeReceived"
},
{
"key": "SortDir",
"value": "Asc"
},
{
"key": "PageNo",
"value": "1"
},
{
"key": "PageSize",
"value": "10"
}
],
"variable": [
{
"key": "submissionUuid",
"value": "RAQTYQ327VC4Q9170KJYMG5G10",
"description": "(Required) "
}
]
}
},
"response": [
]
}