注册 POS 商户
curl --request POST \
--url https://api.qbank.cl/platform/v1/pos/merchants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"verification_id": "9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001",
"name": "La Terraza Restaurant",
"external_ref": "resto-001",
"fee_percent": "1",
"fee_fixed": "0"
}
'import requests
url = "https://api.qbank.cl/platform/v1/pos/merchants"
payload = {
"verification_id": "9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001",
"name": "La Terraza Restaurant",
"external_ref": "resto-001",
"fee_percent": "1",
"fee_fixed": "0"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
verification_id: '9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001',
name: 'La Terraza Restaurant',
external_ref: 'resto-001',
fee_percent: '1',
fee_fixed: '0'
})
};
fetch('https://api.qbank.cl/platform/v1/pos/merchants', 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/pos/merchants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'verification_id' => '9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001',
'name' => 'La Terraza Restaurant',
'external_ref' => 'resto-001',
'fee_percent' => '1',
'fee_fixed' => '0'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/v1/pos/merchants"
payload := strings.NewReader("{\n \"verification_id\": \"9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001\",\n \"name\": \"La Terraza Restaurant\",\n \"external_ref\": \"resto-001\",\n \"fee_percent\": \"1\",\n \"fee_fixed\": \"0\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qbank.cl/platform/v1/pos/merchants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"verification_id\": \"9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001\",\n \"name\": \"La Terraza Restaurant\",\n \"external_ref\": \"resto-001\",\n \"fee_percent\": \"1\",\n \"fee_fixed\": \"0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/pos/merchants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"verification_id\": \"9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001\",\n \"name\": \"La Terraza Restaurant\",\n \"external_ref\": \"resto-001\",\n \"fee_percent\": \"1\",\n \"fee_fixed\": \"0\"\n}"
response = http.request(request)
puts response.read_body{
"merchant_id": "d2875683-fc80-4c7b-876a-fb585d7c6982",
"account_id": "5138e8dd-64bd-43ef-aafe-8d9ef23bec9e",
"name": "La Terraza Restaurant",
"verification_id": "9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001",
"external_ref": "resto-001",
"fee_percent": "1",
"fee_fixed": "0",
"status": "active",
"created_at": "2026-07-17T19:40:00Z",
"updated_at": "2026-07-17T19:40:00Z"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "verification_required",
"message": "an approved identity verification of the third party is required"
}注册 POS 商户
注册一个商户(餐厅、酒店、门店),绑定一份已批准的第三方 KYC/KYB 验证 — 身份来自验证。fee_percent/fee_fixed 是处理商向商户收取的信息性佣金(按已支付收款和汇总计算;平台从不收取)。
POST
/
v1
/
pos
/
merchants
注册 POS 商户
curl --request POST \
--url https://api.qbank.cl/platform/v1/pos/merchants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"verification_id": "9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001",
"name": "La Terraza Restaurant",
"external_ref": "resto-001",
"fee_percent": "1",
"fee_fixed": "0"
}
'import requests
url = "https://api.qbank.cl/platform/v1/pos/merchants"
payload = {
"verification_id": "9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001",
"name": "La Terraza Restaurant",
"external_ref": "resto-001",
"fee_percent": "1",
"fee_fixed": "0"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
verification_id: '9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001',
name: 'La Terraza Restaurant',
external_ref: 'resto-001',
fee_percent: '1',
fee_fixed: '0'
})
};
fetch('https://api.qbank.cl/platform/v1/pos/merchants', 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/pos/merchants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'verification_id' => '9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001',
'name' => 'La Terraza Restaurant',
'external_ref' => 'resto-001',
'fee_percent' => '1',
'fee_fixed' => '0'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/v1/pos/merchants"
payload := strings.NewReader("{\n \"verification_id\": \"9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001\",\n \"name\": \"La Terraza Restaurant\",\n \"external_ref\": \"resto-001\",\n \"fee_percent\": \"1\",\n \"fee_fixed\": \"0\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qbank.cl/platform/v1/pos/merchants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"verification_id\": \"9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001\",\n \"name\": \"La Terraza Restaurant\",\n \"external_ref\": \"resto-001\",\n \"fee_percent\": \"1\",\n \"fee_fixed\": \"0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/pos/merchants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"verification_id\": \"9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001\",\n \"name\": \"La Terraza Restaurant\",\n \"external_ref\": \"resto-001\",\n \"fee_percent\": \"1\",\n \"fee_fixed\": \"0\"\n}"
response = http.request(request)
puts response.read_body{
"merchant_id": "d2875683-fc80-4c7b-876a-fb585d7c6982",
"account_id": "5138e8dd-64bd-43ef-aafe-8d9ef23bec9e",
"name": "La Terraza Restaurant",
"verification_id": "9e2f41d0-6b3e-4b57-9d5c-2f2f0a97c001",
"external_ref": "resto-001",
"fee_percent": "1",
"fee_fixed": "0",
"status": "active",
"created_at": "2026-07-17T19:40:00Z",
"updated_at": "2026-07-17T19:40:00Z"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "verification_required",
"message": "an approved identity verification of the third party is required"
}授权
会话 JWT(来自注册/登录)或 API key(pk_...)。
也接受 X-API-Key: <token> 作为替代请求头。
请求体
application/json
最后修改于 2026年7月19日
⌘I