Fetch Collect
curl --request GET \
--url https://service-sandbox.tazapay.com/v3/collect/{id} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://service-sandbox.tazapay.com/v3/collect/{id}"
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/collect/{id}', 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/collect/{id}",
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/collect/{id}"
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/collect/{id}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://service-sandbox.tazapay.com/v3/collect/{id}")
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{
"status": "success",
"message": "",
"data": {
"amount": 12829,
"balance_transaction": "btr_u7ftrgipu69og2qj1j1pg",
"created_at": "2027-08-15T03:43:46.980214Z",
"currency": "SGD",
"destination": "cva_d2dgk0ka772psfuj1he0",
"destination_details": {
"type": "virtual_account",
"virtual_account": {
"account_holder_name": "OM Grand Limited",
"account_number": "0109866363",
"bank_address": {
"address_line_1": "",
"address_line_2": "",
"city": "",
"country": "Singapore",
"postal_code": "",
"state": ""
},
"bank_branch": "8 MARINA BOULEVARD, 27-01, MARINA BAY FINANCIAL CENTRE",
"bank_codes": {
"swift_code": "SLSGO2XXX"
},
"bank_name": "STANDARD BANK LIMITED",
"currencies": [
"SGD"
],
"iban": "",
"id": "cva_d2dgk0552psfuj1he0",
"object": "virtual_account"
}
},
"holding_currency": "SGD",
"id": "col_d2fapsh76og2qj0ej5g",
"metadata": {},
"object": "collect",
"on_behalf_of": "",
"payer_details": {
"additional_information": "CM Payment for Order 56",
"name": "CMC COMPANY",
"payer_bank": {
"account_number": "1112019837840",
"address": null,
"bank_codes": {
"swift_code": "AJUM7CHBKXXX"
},
"name": "C Bank"
},
"reference_id": ""
},
"status": "succeeded",
"tracking_details": null,
"type": "wire_transfer"
}
}
Collect
Fetch Collect
Get details of a collect object
GET
/
v3
/
collect
/
{id}
Fetch Collect
curl --request GET \
--url https://service-sandbox.tazapay.com/v3/collect/{id} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://service-sandbox.tazapay.com/v3/collect/{id}"
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/collect/{id}', 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/collect/{id}",
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/collect/{id}"
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/collect/{id}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://service-sandbox.tazapay.com/v3/collect/{id}")
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{
"status": "success",
"message": "",
"data": {
"amount": 12829,
"balance_transaction": "btr_u7ftrgipu69og2qj1j1pg",
"created_at": "2027-08-15T03:43:46.980214Z",
"currency": "SGD",
"destination": "cva_d2dgk0ka772psfuj1he0",
"destination_details": {
"type": "virtual_account",
"virtual_account": {
"account_holder_name": "OM Grand Limited",
"account_number": "0109866363",
"bank_address": {
"address_line_1": "",
"address_line_2": "",
"city": "",
"country": "Singapore",
"postal_code": "",
"state": ""
},
"bank_branch": "8 MARINA BOULEVARD, 27-01, MARINA BAY FINANCIAL CENTRE",
"bank_codes": {
"swift_code": "SLSGO2XXX"
},
"bank_name": "STANDARD BANK LIMITED",
"currencies": [
"SGD"
],
"iban": "",
"id": "cva_d2dgk0552psfuj1he0",
"object": "virtual_account"
}
},
"holding_currency": "SGD",
"id": "col_d2fapsh76og2qj0ej5g",
"metadata": {},
"object": "collect",
"on_behalf_of": "",
"payer_details": {
"additional_information": "CM Payment for Order 56",
"name": "CMC COMPANY",
"payer_bank": {
"account_number": "1112019837840",
"address": null,
"bank_codes": {
"swift_code": "AJUM7CHBKXXX"
},
"name": "C Bank"
},
"reference_id": ""
},
"status": "succeeded",
"tracking_details": null,
"type": "wire_transfer"
}
}
Authorizations
Response
200 - application/json
Was this page helpful?