获取联系人
curl --request GET \
--url https://api.qbank.cl/platform/v1/contacts/{contactID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/contacts/{contactID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/contacts/{contactID}', 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://api.qbank.cl/platform/v1/contacts/{contactID}",
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: Bearer <token>"
],
]);
$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://api.qbank.cl/platform/v1/contacts/{contactID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qbank.cl/platform/v1/contacts/{contactID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/contacts/{contactID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"contact_id": "3f8a1b2c-4d5e-6f70-8a9b-0c1d2e3f4a5b",
"display_name": "Carlos Soto",
"phone": "+56987654321",
"has_cbpay": true,
"cbpay_account_id": "389d34a3-6c61-4782-b822-95ac173068dc",
"source": "import",
"favorite": true,
"destinations": [
{
"destination_id": "bb22c3d4-5e6f-7a80-9b0c-1d2e3f4a5b6c",
"type": "payout",
"country": "CL",
"currency": "CLP",
"method": "bank_transfer",
"details": {
"name": "Carlos Soto",
"tax_id": "12.345.678-5",
"bank_code": "012",
"account_type": "checking",
"account_number": "123456789"
},
"last_used_at": "2026-07-09T18:30:00Z",
"created_at": "2026-07-09T18:30:00Z"
}
],
"created_at": "2026-07-07T12:00:00Z",
"updated_at": "2026-07-10T15:00:00Z"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "not_found",
"message": "resource not found"
}获取联系人
联系人及其已保存的收款目的地(CBPay 账户、各通道的 payout 受益人、链上地址)。
GET
/
v1
/
contacts
/
{contactID}
获取联系人
curl --request GET \
--url https://api.qbank.cl/platform/v1/contacts/{contactID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/contacts/{contactID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/contacts/{contactID}', 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://api.qbank.cl/platform/v1/contacts/{contactID}",
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: Bearer <token>"
],
]);
$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://api.qbank.cl/platform/v1/contacts/{contactID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qbank.cl/platform/v1/contacts/{contactID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/contacts/{contactID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"contact_id": "3f8a1b2c-4d5e-6f70-8a9b-0c1d2e3f4a5b",
"display_name": "Carlos Soto",
"phone": "+56987654321",
"has_cbpay": true,
"cbpay_account_id": "389d34a3-6c61-4782-b822-95ac173068dc",
"source": "import",
"favorite": true,
"destinations": [
{
"destination_id": "bb22c3d4-5e6f-7a80-9b0c-1d2e3f4a5b6c",
"type": "payout",
"country": "CL",
"currency": "CLP",
"method": "bank_transfer",
"details": {
"name": "Carlos Soto",
"tax_id": "12.345.678-5",
"bank_code": "012",
"account_type": "checking",
"account_number": "123456789"
},
"last_used_at": "2026-07-09T18:30:00Z",
"created_at": "2026-07-09T18:30:00Z"
}
],
"created_at": "2026-07-07T12:00:00Z",
"updated_at": "2026-07-10T15:00:00Z"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "not_found",
"message": "resource not found"
}授权
会话 JWT(来自注册/登录)或 API key(pk_...)。
也接受 X-API-Key: <token> 作为替代请求头。
路径参数
响应
含收款目的地的联系人。
E.164。
当手机号匹配你运营方的活跃账户时为 true。
已关联的账户(has_cbpay 为 true 时出现)。
可用选项:
manual, import, transfer, payout, crypto 详情端点中出现。
Show child attributes
Show child attributes
最后修改于 2026年7月19日
⌘I