Chilkat Online Tools

TCL / Razorpay APIs / Fetch all Fund Accounts

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 "username"
CkHttp_put_Password $http "password"

set queryParams [new_CkJsonObject]

CkJsonObject_UpdateInt $queryParams "count" 100

# resp is a CkHttpResponse
set resp [CkHttp_QuickRequestParams $http "GET" "https://api.razorpay.com/v1/fund_accounts" $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 "count=100"
	-u 'username:password'
https://api.razorpay.com/v1/fund_accounts

Postman Collection Item JSON

{
  "name": "Fetch all Fund Accounts",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "https://api.razorpay.com/v1/fund_accounts?count=100",
      "protocol": "https",
      "host": [
        "api",
        "razorpay",
        "com"
      ],
      "path": [
        "v1",
        "fund_accounts"
      ],
      "query": [
        {
          "key": "count",
          "value": "100"
        }
      ]
    },
    "description": "Use this API to fetch all fund accounts."
  },
  "response": [
  ]
}