consultTransfer需要签名验签

POST /amsin/api/v1/business/fund/consultTransfer

在调用createTransfer API进行转账之前,调用本接口获取转账相关信息。

报文结构

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

请求头

字段名

是否必传

范例

说明

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字段

当平台客户操作商户账户时需要传递


入参

transferFromDetail TransferFromDetail object REQUIRED

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

Show child parameters

transferToDetail TransferToDetail object REQUIRED

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

Show child parameters

出参

result Result object REQUIRED

代表API调用结果。

Show child parameters

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请求成功。

F

API请求失败。

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

U

API响应结果为UNKNOWN(未知)时,集成商可重试请求。


result.resultCode:系统结果码

结果码结果码信息行动建议
SUCCESSSSuccess
UNKNOWN_EXCEPTIONUAPI failed due to unknown reason.

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

REQUEST_TRAFFIC_EXCEED_LIMITUThe request traffic exceeds the limit.

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

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

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

PROCESS_FAILFA general business failure occurred. Do not retry.

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

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.

使用其他用户信息重试。

CURRENCY_NOT_SUPPORTFThe currency is not supported.

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

USER_NOT_EXISTFThe user does not exist.

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

USER_ACCOUNT_ABNORMALFThe user account status is abnormal.

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

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

用户状态异常,使用其他用户信息重试。

CONTRACT_CHECK_FAILFThe contract check has failed.

请检查合约状态后重试。

@2024 WorldFirst