Back to Collection Items
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oHttp = ObjCreate("Chilkat.Http")
Local $bSuccess
$oQueryParams = ObjCreate("Chilkat.JsonObject")
$oQueryParams.UpdateString("merchid","{{merchid}}")
$oQueryParams.UpdateString("date","{{date}}")
$oHttp.SetRequestHeader "Authorization","Basic dGVzdGluZzp0ZXN0aW5nMTIz"
$oHttp.SetRequestHeader "Content-Type","application/json"
Local $oResp = $oHttp.QuickRequestParams("GET","https://domain.com/settlestat",$oQueryParams)
If ($oHttp.LastMethodSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite($oResp.StatusCode & @CRLF)
ConsoleWrite($oResp.BodyStr & @CRLF)
Curl Command
curl -G -d "merchid=%7B%7Bmerchid%7D%7D"
-d "date=%7B%7Bdate%7D%7D"
-H "Authorization: Basic dGVzdGluZzp0ZXN0aW5nMTIz"
-H "Content-Type: application/json"
https://domain.com/settlestat
Postman Collection Item JSON
{
"name": "Settlement Status (Date=MMDD)",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Basic dGVzdGluZzp0ZXN0aW5nMTIz"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{url}}/settlestat?merchid={{merchid}}&date={{date}}",
"host": [
"{{url}}"
],
"path": [
"settlestat"
],
"query": [
{
"key": "merchid",
"value": "{{merchid}}"
},
{
"key": "date",
"value": "{{date}}"
}
]
},
"description": "[Settlement Status Documentation](https://developer.cardconnect.com/cardconnect-api#settlement-status)"
},
"response": [
]
}