createPayout需要签名验签

POST /amsin/api/v1/business/fund/createPayout

调用本接口向万里汇外部账户进行转账(比如转账到银行卡或支付宝账户)。

报文结构

万里汇接口报文结构包括:请求头,请求体。

请求头

字段名

是否必传

范例

说明

Client-Id

Client-Id: *****

关于这些参数的解释说明,详见:请求头

Signature

Signature: algorithm=RSA256, keyVersion=2, signature=*****

Content-Type

Content-Type: application/json; charset=UTF-8

Request-Time

Request-Time: 2019-04-04T12:08:56+08:00

Connected-CustomerId

否(有条件)

Connected-CustomerId: *****

注意此header字段

当集成商操作商户账户时需要传递


入参

transferRequestId String  REQUIRED

由集成商定义的唯一转账识别ID。

更多信息:

  • 此为幂等字段。
  • 最大长度:64 字符

transferFromDetail TransferFromDetail object REQUIRED

支付方提供的转账详细信息。

Show child parameters

transferToDetail TransferToDetail object REQUIRED

收款方接受的转账详细信息。

Show child parameters

businessSceneCode String  CONDITIONAL

转账业务类型码。当 transferToDetail.transferToAmount.currency = CNY 时,此字段为必传

可取值如下:

  • THIRD_PARTY_PAYOUT:转账到第三方卡。第三方卡包括企业卡和个人卡。
  • SAME_NAME_PAYOUT:提现到同名卡。

出参

result Result object REQUIRED

代表API调用结果。

Show child parameters

transferRequestId String  REQUIRED

由集成商定义的唯一转账识别ID。

该字段只有当 result.resultStatus =S 时才会按需返回。

更多信息:

  • 此为幂等字段。
  • 最大长度:64 字符

transferId String  REQUIRED

由万里汇定义的转账识别ID。

该字段只有当 result.resultStatus =S 时才会按需返回。

更多信息:

  • 最大长度:64 字符

transferFromDetail TransferFromDetail object REQUIRED

支付方需要支付的转账金额。

该字段只有当 result.resultStatus =S 时才会按需返回。

Show child parameters

transferToDetail TransferToDetail object REQUIRED

转账细节,包括收款方可收到的金额等。

该字段只有当 result.resultStatus =S 时才会按需返回。

Show child parameters
API Explorer

请求

URL
请求体

响应

响应体

响应处理

集成商调用接口后,万里汇返回集成商API调用结果。

result.resultStatus 字段取值范围为:

result.resultStatus

描述

S

API请求成功。

  • 如果 result.resultStatusS ,表示万里汇已接受本次API请求,转账请求正在处理中。调用 inquiryPayout 以查询转账结果。
  • 如果万里汇在20分钟内没有使用 notifyPayout 向集成商发送结果通知,集成商需调用inquiryPayout 接口查询本次转账结果。

F

API请求失败。

失败原因参见结果码(即 result.resultCode 和 result.resultMessage

U

API响应结果为UNKNOWN(未知)时,集成商需调用 inquiryPayout 接口以检查转账请求状态。

result.resultCode:系统结果码

结果码结果码信息行动建议
SUCCESSSSuccess
PROCESSINGSThe transfer is in process.

转账请求已创建,处理中。

PARAM_ILLEGALFIllegal parameters exist. For example, a non-numeric input, or an invalid date.

参考API文档页面,确认请求头和传参是否正确。

PROCESS_FAILFA general business failure occurred. Do not retry.

需要人工介入,联系万里汇技术支持以解决此问题。

UNKNOWN_EXCEPTIONUAPI failed due to unknown reason.

服务器错误,若稍后重试问题依旧,联系万里汇技术支持以解决问题。

REQUEST_TRAFFIC_EXCEED_LIMITUThe request traffic exceeds the limit.

重试,若问题依旧,联系万里汇技术支持。

INVALID_APIFThe called API is invalid or not active.

确认是否调用正确的API。

INVALID_CLIENTFThe client is invalid.

Client ID不存在或无效。

INVALID_SIGNATUREFThe signature is invalid.

确认请求正确加签。

METHOD_NOT_SUPPORTEDFThe server does not implement the requested HTTP method.

确认HTTP请求方法为POST

result.resultCode:业务结果码

结果码结果码信息行动建议
UN_SUPPORT_BUSINESSFUnsupported business.

包含无效参数(如货币代码错误),使用正确的参数重试。

USER_NO_PERMISSIONFUser does not have permission.

使用其他用户信息重试。

CARD_INFO_NOT_MATCHFThe card information does not match.

换卡重试

CURRENCY_NOT_SUPPORTFThe currency is not supported.

确认币种信息正确后重试。

USER_NOT_EXISTFThe user does not exist.

使用正确的用户信息重试。

USER_ACCOUNT_ABNORMALFThe user account status is abnormal.

使用其他用户信息重试。如问题依旧,联系万里汇技术支持。

REPEAT_REQ_INCONSISTENTFRepeated requests are inconsistent.

确认请求中所有参数一致重试。

USER_STATUS_ABNORMALFThe status of the user is abnormal. Retry with another card.

使用其他用户信息重试。

BALANCE_NOT_ENOUGHFBalance is not enough.

确认余额充足后重试。

AMOUNT_EXCEED_LIMITFThe amount exceeds the limit.

确认金额正确后重试。

CONTRACT_NOT_EXISTFContract does not exist.

确认集成商已签约、且输入的签约信息正确后重试。

CONTRACT_CHECK_FAILFThe contract check has failed.

检查合约状态后重试。

QUOTE_EXPIREDFThe quote is expired.

调用createQuote 接口创建一个新的报价。使用新的报价重试

AVAILABLE_QUOTA_NOT_ENOUGHFPayout quota is not enough.

调用inquiryAvailableQuota接口查询目前可用的结汇额度,确保额度充足后重试。

@2024 WorldFirst