Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loHttp = createobject("CkHttp")
loQueryParams = createobject("CkJsonObject")
loQueryParams.UpdateInt("order-line[order-header-id]",3230)
// Adds the "Authorization: Bearer <access_token>" header.
loHttp.AuthToken = "<access_token>"
loResp = createobject("CkHttpResponse")
llSuccess = loHttp.HttpParams("GET","https://domain.com/receiving_transactions",loQueryParams,loResp)
if (llSuccess = .F.) then
? loHttp.LastErrorText
release loHttp
release loQueryParams
release loResp
return
endif
? str(loResp.StatusCode)
? loResp.BodyStr
release loHttp
release loQueryParams
release loResp
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": [
]
}