跳转到内容

付款

直接执行法币付款并查询状态

创建法币付款

请求

使用有效 Quote 创建付款并立即开始执行。需要 payout.write 权限,且付款不会进入后台审批流。

quote_id 已经绑定服务商、收款资料快照、来源和目标币种、付款通道、金额模式、手续费承担方、汇率、金额和费用明细,因此本请求不重复提交这些字段。

本接口会执行具有最终效力的付款前校验,包括 API Key 归属与权限、Quote 归属与有效期、请求与 Quote 一致性、账户和收款资料、合规控制、限额、可用余额、执行服务商可用性和幂等。

client_reference_id 必须在当前鉴权组织内唯一标识一笔逻辑付款。使用相同业务请求重试时返回已有付款,并设置 is_duplicate=true;使用相同值提交不同请求数据时返回冲突。

请求成功表示付款已被接受并开始银行执行,不代表对端银行已经入账。请使用 GET /v2/payouts/{payout_id} 获取最新状态。

同一组织同一时间只允许一笔付款请求进入执行流程。并发提交会在消费 Quote、创建付款单和扣减余额之前返回 108015 payout_submission_in_progress。请在短暂的随机退避后重试;同一笔逻辑付款应继续使用相同的 client_reference_id。

安全
Ed25519
标头
X-API-Key-IDstring必需

32-character Base58 credential ID returned after public-key registration.

X-API-Timestampstring必需

Unix timestamp in seconds; tolerance is ±300 seconds.

X-API-Noncestring必需

16 cryptographically random bytes encoded as unpadded Base64URL; fresh on every attempt.

Digeststring必需

SHA-256= followed by standard padded Base64 of SHA-256 of exact request body bytes. Required even for an empty body; included in the signing string.

Authorizationstring必需

Use Ed25519 signature="BASE64_SIGNATURE", where BASE64_SIGNATURE is the standard padded Base64 signature. See /docs/en/4-authorization for the exact signing string.

正文application/json必需
client_reference_idstring, [ 1 .. 64 ] characters^[A-Za-z0-9._-]+$必需

在商户范围内标识一笔逻辑付款的幂等与对账引用。

示例:"payout_20260730_0001"
quote_idstring必需

当前鉴权组织拥有且未过期的 Quote,绑定收款资料、金额、手续费承担方、服务商、通道和定价。

示例:"poq_01JQ90B8S5VJ6R3T7F1M2C4N9X"
purpose_codestring, [ 1 .. 64 ] characters必需

当前付款路由接受的业务用途代码。

示例:"goods_and_services"
statement_referencestring, [ 1 .. 35 ] characters

银行通道支持时向收款人展示的附言。

示例:"INV-2026-0730"
curl -i -X POST \
  https://developer.infini.money/_mock/zh/apis/payout/v2/payouts \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'Digest: string' \
  -H 'X-API-Key-ID: string' \
  -H 'X-API-Nonce: string' \
  -H 'X-API-Timestamp: string' \
  -d '{
    "client_reference_id": "payout_20260730_0001",
    "quote_id": "poq_01JQ90B8S5VJ6R3T7F1M2C4N9X",
    "purpose_code": "goods_and_services",
    "statement_reference": "INV-2026-0730"
  }'

响应

付款创建成功,或返回幂等命中的已有付款

正文application/json
codeinteger必需

业务码,0 表示成功。

Value:0
示例:0
messagestring必需

响应消息。

示例:""
dataobject(Payout)必需
响应
{ "code": 0, "message": "", "data": { "payout_id": "fpo_01JQ90GQJTC5P7B2D8N6R4K1MX", "client_reference_id": "payout_20260730_0001", "quote_id": "poq_01JQ90B8S5VJ6R3T7F1M2C4N9X", "provider": "sgb", "status": "processing", "payout_type": "swift", "source_currency": "USD", "destination_currency": "USD", "destination_country": "US", "amount_mode": "receive", "fee_paid_by": "PAYER", "sending_amount": "1051.05", "receiving_amount": "1000.00", "transfer_fee_amount": "1.05", "bank_fee_amount": "50.00", "fee_rate_decimal": "0.001", "rate": "1", "billing": { … }, "destination": { … }, "purpose_code": "goods_and_services", "statement_reference": "INV-2026-0730", "bank_reference": null, "failure": null, "return": null, "is_duplicate": false, "created_at": 1786587000, "updated_at": 1786587001, "completed_at": null } }