inquiryDeal需要签名验签
入参
dealRequestId String REQUIRED
由集成商定义的外汇交易唯一单号。
更多信息:
- 最大长度:64 字符
 
出参
result Result REQUIRED
代表API接口的调用结果。
responseId String REQUIRED
由万里汇定义,用于唯一标识某次响应的ID。
该字段只有当 result.resultStatus =
S时才会按需返回。
更多信息:
- 最大长度:32 字符
 
deal Deal REQUIRED
远期外汇交易的交易明细。
该字段只有当 result.resultStatus =
S时才会按需返回。
dealResult Result REQUIRED
代表远期外汇交易结果。
该字段只有当 result.resultStatus =
S时才会按需返回。
API Explorer
请求
URL
请求体
响应
响应体
响应处理
集成商调用接口后,万里汇返回集成商以下两个字段:
- result.resultStatus:API调用结果
 - dealResult.resultStatus:外汇交易结果。更多信息,参考result codes部分
 
集成商调用接口后,万里汇返回集成商结果码。result.resultStatus取值范围为:
result.resultStatus  | 描述  | 
S  | API请求成功。  | 
F  | API请求失败。 失败原因参见结果码(即result.resultCode 和result.resultMessage)  | 
U  | API响应结果为 重试策略: 
 如果问题依旧,请联系万里汇技术支持。  | 
dealResult.resultCode结果码
| 结果码 | 值 | 结果码信息 | 
|---|---|---|
| SUCCESS | S | The deal is successfully completed. | 
| PROCESSING | S | The forward deal is being processed. | 
| CANCELLED | F | The forward deal is canceled. | 
| FAIL | F | The forward deal has failed. | 
result.resultCode:系统结果码
| 结果码 | 值 | 结果码信息 | 行动建议 | 
|---|---|---|---|
| SUCCESS | S | Success | |
| PARAM_ILLEGAL | F | Illegal parameters exist. For example, a non-numeric input, or an invalid date. | 参考API文档页面,确认请求头和传参是否正确  | 
| PROCESS_FAIL | F | A general business failure occurred. Do not retry. | 需要人工介入,联系万里汇技术支持以解决此问题  | 
| UNKNOWN_EXCEPTION | U | API failed due to unknown reason. | 服务器错误,若稍后重试问题依旧,联系万里汇技术支持以解决问题  | 
| REQUEST_TRAFFIC_EXCEED_LIMIT | U | The request traffic exceeds the limit. | 重试,若问题依旧,联系万里汇技术支持  | 
| INVALID_API | F | The called API is invalid or not active. | 确认是否调用正确的API  | 
| INVALID_CLIENT | F | The client is invalid. | Client ID不存在或无效  | 
| INVALID_SIGNATURE | F | The signature is invalid. | |
| METHOD_NOT_SUPPORTED | F | The server does not implement the requested HTTP method. | 确认HTTP请求方法为  | 
result.resultCode:业务结果码
| 结果码 | 值 | 结果码信息 | 行动建议 | 
|---|---|---|---|
| UN_SUPPORT_BUSINESS | F | Unsupported business. | 包含无效参数(如货币代码错误),使用正确的参数重试  | 
| AUTHORIZATION_NOT_EXIST | F | The authorization does not exist. | 当前授权关系不存在,请联系万里汇技术支持检查授权关系  | 
| CONTRACT_CHECK_FAIL | F | The contract check has failed. | 检查合约状态后重试  |