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]
# Adds the "Authorization: Bearer <access_token>" header.
CkHttp_put_AuthToken $http "<access_token>"
set sbResponseBody [new_CkStringBuilder]
set success [CkHttp_QuickGetSb $http "https://domain.com/coupa_pay/payments/:id" $sbResponseBody]
if {$success == 0} then {
puts [CkHttp_lastErrorText $http]
delete_CkHttp $http
delete_CkStringBuilder $sbResponseBody
exit
}
puts "Response status code = [CkHttp_get_LastStatus $http]"
puts [CkStringBuilder_getAsString $sbResponseBody]
delete_CkHttp $http
delete_CkStringBuilder $sbResponseBody
Curl Command
curl -X GET
-H "Authorization: Bearer <access_token>"
https://domain.com/coupa_pay/payments/:id
Postman Collection Item JSON
{
"name": "Get CoupaPay Invoice Paymeent by ID",
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{URL}}/coupa_pay/payments/:id",
"host": [
"{{URL}}"
],
"path": [
"coupa_pay",
"payments",
":id"
],
"variable": [
{
"key": "id",
"value": "18016"
}
]
}
},
"response": [
]
}