跳转到主要内容

PIX 转账

POST/api/v1/bank/wallet/transfer/pix/Bearer Token

请求头

请求头必填
AuthorizationBearer {A55_ACCESS_TOKEN}
Content-Typeapplication/json
Idempotency-Key(幂等键)UUID v4建议

请求体

字段类型必填说明
wallet_uuidstring (UUID)转账来源钱包
amountnumber转账金额,单位为 BRL(例如 500.00
currencystring必须为 BRL
pix_key_typestringcpfcnpjemailphonerandom_key
pix_keystring与类型对应的 PIX 密钥值
recipient_namestring收款人全名
recipient_tax_idstring收款人 CPF 或 CNPJ
descriptionstring转账描述
reference_idstring您的内部参考号,用于对账

响应字段

字段类型说明
transfer_uuidstring唯一转账标识符
statusstringprocessingcompletedfailed
amountnumber转账金额
currencystringBRL
pix_key_typestring使用的 PIX 密钥类型
pix_keystring目标 PIX 密钥
recipient_namestring已确认的收款人姓名
created_atstringISO 8601 创建时间戳
completed_atstringISO 8601 完成时间戳(可用时)

HTTP 状态码

状态码说明
200转账发起成功
400PIX 密钥无效或缺少必填字段
401Bearer Token(持有者令牌)无效或已过期
403权限不足或钱包余额不足
404钱包未找到
409重复转账(相同的 Idempotency-Key)
422验证错误(密钥类型无效、金额无效)
429超出速率限制
500服务器内部错误 - 请使用指数退避重试

代码示例

curl -s -X POST https://core-manager.a55.tech/api/v1/bank/wallet/transfer/pix/ \
-H "Authorization: Bearer $A55_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 770e8400-e29b-41d4-a716-446655440002" \
-d '{
"wallet_uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"amount": 500.00,
"currency": "BRL",
"pix_key_type": "cpf",
"pix_key": "123.456.789-09",
"recipient_name": "张三",
"recipient_tax_id": "123.456.789-09",
"description": "供应商付款 #2048",
"reference_id": "PAY-2048"
}'

错误响应示例

{
"transfer_uuid": null,
"status": "error",
"message": [
{
"code": "INSUFFICIENT_BALANCE",
"source": "wallet",
"description": "Wallet balance is insufficient for this transfer amount"
}
]
}