Chilkat Online Tools

TCL / Egyptian eInvoicing SDK R1.5 / 5. Get Receipt Details Anonymously

Back to Collection Items

load ./chilkat.dll

# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.

set http [new_CkHttp]

set queryParams [new_CkJsonObject]

CkJsonObject_UpdateString $queryParams "dateTimeIssued" "2022-03-08T00:00:00Z"

# resp is a CkHttpResponse
set resp [CkHttp_QuickRequestParams $http "GET" "https://domain.com/api/v1/receipts/:uuid/share" $queryParams]
if {[CkHttp_get_LastMethodSuccess $http] == 0} then {
    puts [CkHttp_lastErrorText $http]
    delete_CkHttp $http
    delete_CkJsonObject $queryParams
    exit
}

puts [CkHttpResponse_get_StatusCode $resp]
puts [CkHttpResponse_bodyStr $resp]
delete_CkHttpResponse $resp


delete_CkHttp $http
delete_CkJsonObject $queryParams

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": [
  ]
}