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 "status[in]" "wc_consideration,ready_to_pay" CkJsonObject_UpdateString $queryParams "exported" "false" # Adds the "Authorization: Bearer <access_token>" header. CkHttp_put_AuthToken $http "<access_token>" set resp [new_CkHttpResponse] set success [CkHttp_HttpParams $http "GET" "https://domain.com/coupa_pay/invoices" $queryParams $resp] if {$success == 0} then { puts [CkHttp_lastErrorText $http] delete_CkHttp $http delete_CkJsonObject $queryParams delete_CkHttpResponse $resp exit } puts [CkHttpResponse_get_StatusCode $resp] puts [CkHttpResponse_bodyStr $resp] delete_CkHttp $http delete_CkJsonObject $queryParams delete_CkHttpResponse $resp
curl -G -d "status[in]=wc_consideration,ready_to_pay" -d "exported=false" -H "Authorization: Bearer <access_token>" https://domain.com/coupa_pay/invoices
{
"name": "Get Pay invoices - Status (WC_Consideration or Ready To Pay) and Exported false",
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{URL}}/coupa_pay/invoices?status[in]=wc_consideration,ready_to_pay&exported=false",
"host": [
"{{URL}}"
],
"path": [
"coupa_pay",
"invoices"
],
"query": [
{
"key": "status[in]",
"value": "wc_consideration,ready_to_pay"
},
{
"key": "exported",
"value": "false"
}
]
}
},
"response": [
]
}