跳转到主要内容
POST
Resolve Payment Method Requirements
我们建议在支付方式发现、要求解析、报价和执行的整个流程中,使用 v2 汇率端点返回的 sessionId。该字段为可选;省略时,请改为发送原始的资产、货币、金额、amountSide 和提供商路由字段。当要求响应包含顶层 resolution 契约时,请使用其 method、url、 body 和 inputPath 提交表单值,而不要在客户端重新构造提供商路由字段。 响应会保留会话 ID 及其过期时间。如果会话过期或其提供商路由不可用,请重新请求汇率并重新 开始该流程。
有关客户身份、会话绑定、审核恢复与费用,请参阅 客户法币流程.

授权

x-api-key
string
header
必填

路径参数

id
string<uuid>
必填

Wallet identifier.

请求体

application/json

Supply sessionId, or all original routing fields. Repeated fields must match the session. Customer identity is inherited from the session.

sessionId
string<uuid>
必填

Session ID returned by the v2 rates endpoint.

paymentMethod
string
必填

Payment-method id.

示例:

"bank_transfer"

paymentMethodData
object
必填

Current form values required by the x-resolution request.

示例:
customerId
string<uuid>

ID of an existing active customer owned by the authenticated business.

assetId
string<uuid>
已弃用

Stablecoin asset identifier.

示例:

"ae455f23-3824-4125-baab-d158315cbcbd"

currency
string
已弃用

ISO 4217 payout currency.

Required string length: 3
示例:

"NGN"

amount
string
已弃用

Withdrawal amount as a decimal string.

Pattern: ^\d+(\.\d+)?$
示例:

"100.00"

provider
string
已弃用

Provider slug selected earlier in the flow.

示例:

"example-provider"

amountSide
enum<string>
默认值:source

source fixes the total source-asset budget, with fees allocated inside it; target fixes the fiat payout before beneficiary deductions and derives the required source debit.

可用选项:
source,
target
continuation
object

Submit only after requires_action. Keep the original paymentMethodData unchanged.

响应

Successful response.

message
string
必填

Human-readable result.

示例:

"Payment method resolved successfully"

data
object
必填
status
boolean
必填
示例:

true