curl --request POST \
--url https://api.qbank.cl/platform/v1/transfers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to_phone": "+56987654321",
"amount": "25.000000",
"description": "午餐",
"idempotency_key": "lunch-2026-07-10-a"
}
'
{
"transfer_id": "2a7b9c1d-4e5f-6a70-8b9c-0d1e2f3a4b5c",
"from_account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"to_account_id": "5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b",
"asset": "USD",
"amount": "25.00",
"description": "费用分摊",
"status": "completed",
"created_at": "2026-07-07T12:00:00Z",
"idempotency_hit": true
}{
"transfer_id": "2a7b9c1d-4e5f-6a70-8b9c-0d1e2f3a4b5c",
"from_account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"to_account_id": "5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b",
"asset": "USD",
"amount": "25.00",
"description": "费用分摊",
"status": "completed",
"created_at": "2026-07-07T12:00:00Z"
}{
"error": "invalid_json",
"message": "request body is not valid JSON: unknown field"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "insufficient_funds",
"message": "account balance is not enough for this operation",
"details": {
"asset": "USDT",
"need": "103.930000",
"available": "80.000000",
"missing": "23.930000",
"need_amount": "100.000000",
"need_fee": "3.930000",
"need_usd": "103.930000",
"available_usd": "80.000000",
"missing_usd": "23.930000",
"need_amount_usd": "100.000000",
"need_fee_usd": "3.930000"
}
}{
"error": "recipient_not_found",
"message": "no account matches that email"
}{
"error": "recipient_unavailable",
"message": "destination account cannot receive transfers"
}创建内部转账
在两个 CBPay 账户之间划转余额,原子执行且始终免费——任意组合皆可:个人对个人、个人对企业、企业对个人或企业对企业。支持十二个虚拟余额(USD、USDT、USDC、USDCE、BTC、GOLD、SILVER、PLATINUM、BOB、MXN、ARS、CLP),且始终在同一货币的余额之间进行(不做兑换)。目标通过 to_account_id、to_email、to_phone(仅 OTP 已验证的手机号)或 to_contact_id 解析。每笔转账都会自动把收款人保存为联系人(用 save_contact: false 退出)。收款方的 webhook 订阅者会收到 transfer_received。
POST
/
v1
/
transfers
curl --request POST \
--url https://api.qbank.cl/platform/v1/transfers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to_phone": "+56987654321",
"amount": "25.000000",
"description": "午餐",
"idempotency_key": "lunch-2026-07-10-a"
}
'
{
"transfer_id": "2a7b9c1d-4e5f-6a70-8b9c-0d1e2f3a4b5c",
"from_account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"to_account_id": "5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b",
"asset": "USD",
"amount": "25.00",
"description": "费用分摊",
"status": "completed",
"created_at": "2026-07-07T12:00:00Z",
"idempotency_hit": true
}{
"transfer_id": "2a7b9c1d-4e5f-6a70-8b9c-0d1e2f3a4b5c",
"from_account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"to_account_id": "5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b",
"asset": "USD",
"amount": "25.00",
"description": "费用分摊",
"status": "completed",
"created_at": "2026-07-07T12:00:00Z"
}{
"error": "invalid_json",
"message": "request body is not valid JSON: unknown field"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "insufficient_funds",
"message": "account balance is not enough for this operation",
"details": {
"asset": "USDT",
"need": "103.930000",
"available": "80.000000",
"missing": "23.930000",
"need_amount": "100.000000",
"need_fee": "3.930000",
"need_usd": "103.930000",
"available_usd": "80.000000",
"missing_usd": "23.930000",
"need_amount_usd": "100.000000",
"need_fee_usd": "3.930000"
}
}{
"error": "recipient_not_found",
"message": "no account matches that email"
}{
"error": "recipient_unavailable",
"message": "destination account cannot receive transfers"
}请求体
application/json