queryCardDetail需要签名验签
当前文档对应最新 API 版本。若您的对接版本为 V1,请参考历史版本文档。
集成商可调用此接口查询某一张 World Card 的详细信息。
报文结构
万里汇接口报文结构包括:请求头、请求体、响应体。
请求头
字段名 | 是否必传 | 范例 | 说明 |
Client-Id | 是 |
| |
Signature | 是 |
| |
Content-Type | 是 |
| |
Request-Time | 是 |
| |
Connected-AccountId | 否(有条件要求) |
| 注意此字段 当平台客户操作商户账户时需要传递 |
Access-Token | 有条件要求 |
| 注意此字段 当用 OAUTH 授权时需要传递。参考 applyToken。 |
入参
assetId String REQUIRED
卡资产 ID。
出参
result Result REQUIRED
代表 API 接口的调用结果。
assetId String REQUIRED
卡资产 ID。
accountId String REQUIRED
由万里汇定义,万里汇账户的唯一标识。
更多信息:
- 最大长度:64 字符
cardNickName String
由用户定义的卡昵称,可以帮助用户更方便地管理多张 World Card。
更多信息:
- 最大长度:120 字符
maskedCardNo String REQUIRED
脱敏卡号。
cardBrand String REQUIRED
卡品牌。
可取值范围:MASTERCARD。
cardStatus String REQUIRED
World Card 状态。
可取值范围为:
-
ACTIVE:可正常使用 -
FROZEN:已冻结 -
CANCEL:已注销。
createdTime String REQUIRED
完成开卡的时间。
note String
本次申请开卡的备注。
更多信息:
- 最大长度:512 字符
authorizationControl Object REQUIRED
授权控制规则。
metadata Object
公司信息详情。
mediaType String REQUIRED
卡类型。
email String REQUIRED
持卡人的电邮地址。
更多信息:
- 最大长度:32 字符
mobileNumber String REQUIRED
持卡人的手机号。
例如:+6512345678(其中 +65 是新加坡的国家代码)。
更多信息:
- 最大长度:32 字符
cardholderInfo Object REQUIRED
持卡人信息。
billAddress Object REQUIRED
账单地址。此字段只有当 result.resultStatus = S 时才会按需返回。
此字段只有当 result.resultStatus =
S 时才会按需返回。
请求
响应
响应处理
集成商调用接口后,万里汇返回集成商 API 调用结果。result.resultStatus 字段取值范围为:
| result.resultStatus | 描述 |
| S | API 请求成功。 |
| F | API 请求失败。失败原因参见结果码(即 result.resultCode 和 result.resultMessage)。 |
| U | API 响应结果为 UNKNOWN(未知)时,需重试 API 请求。重试策略:重试次数上限:7 次。重试时间间隔:5 分钟、10 分钟、20 分钟、40 分钟、80 分钟、160 分钟、320 分钟。如果问题依旧,请联系万里汇技术支持。 |
result.resultCode:系统结果码
| 结果码 | 值 | 结果码信息 | 行动建议 |
|---|---|---|---|
| SUCCESS | S | Success | |
| PARAM_ILLEGAL | F | Illegal parameters exist. For example, a non-numeric input, or an invalid date. | 参考API文档页面,确认请求头和传参是否正确。 |
| SYSTEM_ERROR | F | System error. | 请勿重试,联系万里汇技术支持了解详情。 |
| SERVICE_NOT_ALLOWED | F | Service not allowed. | 使用正确的信息重试,若问题依旧,联系万里汇技术支持以解决问题。 |
| UNKNOWN_EXCEPTION | U | API failed due to unknown reason. | 服务器错误,若稍后重试问题依旧,联系万里汇技术支持以解决问题。 |
| REQUEST_TRAFFIC_EXCEED_LIMIT | U | The request traffic exceeds the limit. | 重试,若问题依旧,联系万里汇技术支持。 |
| OAUTH_FAIL | F | OAuth process failed. | 联系万里汇技术支持了解详情。 |
| 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请求方法为POST |
| CONTRACT_CHECK_FAIL | F | The contract check has failed. | 联系万里汇技术支持了解合约状态后重试。 |
result.resultCode:业务结果码
| 结果码 | 值 | 结果码信息 | 行动建议 |
|---|---|---|---|
| CONTRACT_NOT_EXIST | F | The contract check has failed. | Ensure the Partner has already signed a contract and the input is correct. |
| USER_NOT_EXIST | F | The user does not exist. | Retry with the correct user information. |
| ASSET_NOT_EXIST | F | asset not exit | Check asset ID and retry. |
| ACCESS_TOKEN_EXPIRED | F | The access token expired. | Refresh the token to get a new access token or contact our Technical Support Team to address it. |
| AUTHORIZATION_NOT_EXIST | F | The authorization does not exist. | Make sure that the input is correct. If the issue persists, contact our Technical Support Team to verify the authorization status. |