Back to Collection Items
        IncludeFile "CkJsonObject.pb"
IncludeFile "CkHttp.pb"
IncludeFile "CkHttpResponse.pb"
Procedure ChilkatExample()
    ; This example assumes the Chilkat API to have been previously unlocked.
    ; See Global Unlock Sample for sample code.
    http.i = CkHttp::ckCreate()
    If http.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf
    success.i
    queryParams.i = CkJsonObject::ckCreate()
    If queryParams.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf
    CkJsonObject::ckUpdateInt(queryParams,"order-line[order-header-id]",3230)
    ; Adds the "Authorization: Bearer <access_token>" header.
    CkHttp::setCkAuthToken(http, "<access_token>")
    resp.i = CkHttpResponse::ckCreate()
    If resp.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf
    success = CkHttp::ckHttpParams(http,"GET","https://domain.com/receiving_transactions",queryParams,resp)
    If success = 0
        Debug CkHttp::ckLastErrorText(http)
        CkHttp::ckDispose(http)
        CkJsonObject::ckDispose(queryParams)
        CkHttpResponse::ckDispose(resp)
        ProcedureReturn
    EndIf
    Debug Str(CkHttpResponse::ckStatusCode(resp))
    Debug CkHttpResponse::ckBodyStr(resp)
    CkHttp::ckDispose(http)
    CkJsonObject::ckDispose(queryParams)
    CkHttpResponse::ckDispose(resp)
    ProcedureReturn
EndProcedure
        Curl Command
        curl -G -d "order-line[order-header-id]=3230"
	-H "Authorization: Bearer <access_token>"
https://domain.com/receiving_transactions
        Postman Collection Item JSON
        {
  "name": "Retrieve all goods receipts against a PO (including void)",
  "protocolProfileBehavior": {
    "disabledSystemHeaders": {}
  },
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{URL}}/receiving_transactions?order-line[order-header-id]=3230",
      "host": [
        "{{URL}}"
      ],
      "path": [
        "receiving_transactions"
      ],
      "query": [
        {
          "key": "order-line[order-header-id]",
          "value": "3230"
        }
      ]
    }
  },
  "response": [
  ]
}