Chilkat Online Tools

TCL / Broker API / Bank Details for Account

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]

CkHttp_put_BasicAuth $http 1
CkHttp_put_Login $http "{{api_key}}"
CkHttp_put_Password $http "{{api_secret}}"

set queryParams [new_CkJsonObject]

CkJsonObject_UpdateString $queryParams "status" "ACTIVE"

# resp is a CkHttpResponse
set resp [CkHttp_QuickRequestParams $http "GET" "https://domain.com/v1/accounts/:account_id/recipient_banks" $queryParams]
if {[CkHttp_get_LastMethodSuccess $http] == 0} then {
    puts [CkHttp_lastErrorText $http]
    delete_CkHttp $http
    delete_CkJsonObject $queryParams
    exit
}

puts [CkHttpResponse_get_StatusCode $resp]
puts [CkHttpResponse_bodyStr $resp]
delete_CkHttpResponse $resp


delete_CkHttp $http
delete_CkJsonObject $queryParams

Curl Command

curl -G -d "status=ACTIVE"
	-u '{{api_key}}:{{api_secret}}'
https://domain.com/v1/accounts/:account_id/recipient_banks

Postman Collection Item JSON

{
  "name": "Bank Details for Account",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{HOST}}/v1/accounts/:account_id/recipient_banks?status=ACTIVE",
      "host": [
        "{{HOST}}"
      ],
      "path": [
        "v1",
        "accounts",
        ":account_id",
        "recipient_banks"
      ],
      "query": [
        {
          "key": "status",
          "value": "ACTIVE",
          "description": "ACTIVE or INACTIVE"
        },
        {
          "key": "bank_name",
          "value": null,
          "description": "Type: string",
          "disabled": true
        }
      ],
      "variable": [
        {
          "key": "account_id",
          "value": null
        }
      ]
    }
  },
  "response": [
  ]
}