Skip to main content
GET
/
v3
/
collection_account
List Collection Accounts
curl --request GET \
  --url https://service-sandbox.tazapay.com/v3/collection_account \
  --header 'Authorization: Basic <encoded-value>'
import requests

url = "https://service-sandbox.tazapay.com/v3/collection_account"

headers = {"Authorization": "Basic <encoded-value>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};

fetch('https://service-sandbox.tazapay.com/v3/collection_account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://service-sandbox.tazapay.com/v3/collection_account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://service-sandbox.tazapay.com/v3/collection_account"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Basic <encoded-value>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://service-sandbox.tazapay.com/v3/collection_account")
.header("Authorization", "Basic <encoded-value>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://service-sandbox.tazapay.com/v3/collection_account")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'

response = http.request(request)
puts response.read_body
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "cva_crqinja9chqqs7moi8rg",
      "object": "collection_account",
      "type": "virtual_account",
      "payment_method_type": "local_bank_transfer_cad",
      "country": "CA",
      "currencies": [
        "CAD"
      ],
      "status": "enabled",
      "alias": "CAD Collection Account",
      "virtual_account": {
        "account_holder_name": "John Doe",
        "account_number": "1234567890-56-7890",
        "bank_name": "RBC Royal Bank",
        "bank_codes": {
          "routing_code": "026009593",
          "swift_code": "ROYCCAT2"
        }
      },
      "created_at": "2024-09-26T09:39:25.03501Z",
      "updated_at": "2024-09-26T09:39:25.03501Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

ending_before
string

A cursor for pagination. Returns objects before this object ID.

limit
integer

Number of objects to return. Default is 10, range 1-100.

starting_after
string

A cursor for pagination. Returns objects after this object ID.

payment_method_type
string

Filter by payment method type.

country
string

Filter by country.

currencies
string[]

Filter by currencies (ISO format).

on_behalf_of
string

Filter by the entity ID that the account is configured on behalf of.

status
enum<string>

Filter by collection account status.

Available options:
disabled,
enabled
type
enum<string>

Filter by type (virtual_account or wallet).

Available options:
virtual_account,
wallet
created
object

Filter by creation time. Pass an object with any of gt, gte, lt, lte (Unix timestamps).

Response

200 - application/json

List of collection accounts.

object
string

Always "list".

has_more
boolean

Whether there are more results beyond this page.

data
object[]

Array of collection account objects.