WorldFirst DocsWorldFirst Docs

queryCardDetail需要签名验签

POST /amsin/api/v2/business/worldcard/queryCardDetail

当前文档对应最新 API 版本。若您的对接版本为 V1,请参考历史版本文档


集成商可调用此接口查询某一张 World Card 的详细信息。

报文结构

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

请求头

字段名

是否必传

范例

说明

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-AccountId

否(有条件要求)

Connected-AccountId: *****

注意此字段

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

Access-Token

有条件要求

Access-Token: ******

注意此字段

当用 OAUTH 授权时需要传递。参考 applyToken


入参

assetId String  REQUIRED

卡资产 ID。

出参

result Result  REQUIRED

代表 API 接口的调用结果。

Show child parameters

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

授权控制规则。

Show child parameters

metadata Object  

公司信息详情。

mediaType String  REQUIRED

卡类型。

email String  REQUIRED

持卡人的电邮地址。

更多信息:

  • 最大长度:32 字符

mobileNumber String  REQUIRED

持卡人的手机号。

例如:​+6512345678​(其中 ​+65​ 是新加坡的国家代码)。

更多信息:

  • 最大长度:32 字符

cardholderInfo Object  REQUIRED

持卡人信息。

Show child parameters

billAddress Object  REQUIRED

账单地址。此字段只有当 result.resultStatus = S 时才会按需返回。

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

Show child parameters
API Explorer

请求

URL
请求体

响应

响应体

响应处理

集成商调用接口后,万里汇返回集成商 API 调用结果。result.resultStatus 字段取值范围为:

result.resultStatus描述
SAPI 请求成功。
FAPI 请求失败。失败原因参见结果码(即 result.resultCode 和 result.resultMessage)。
UAPI 响应结果为 UNKNOWN(未知)时,需重试 API 请求。重试策略:重试次数上限:7 次。重试时间间隔:5 分钟、10 分钟、20 分钟、40 分钟、80 分钟、160 分钟、320 分钟。如果问题依旧,请联系万里汇技术支持。

result.resultCode:系统结果码

结果码结果码信息行动建议
SUCCESSSSuccess
PARAM_ILLEGALFIllegal parameters exist. For example, a non-numeric input, or an invalid date.

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

SYSTEM_ERRORFSystem error.

请勿重试,联系万里汇技术支持了解详情。

SERVICE_NOT_ALLOWEDFService not allowed.

使用正确的信息重试,若问题依旧,联系万里汇技术支持以解决问题。

UNKNOWN_EXCEPTIONUAPI failed due to unknown reason.

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

REQUEST_TRAFFIC_EXCEED_LIMITUThe request traffic exceeds the limit.

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

OAUTH_FAILFOAuth process failed.

联系万里汇技术支持了解详情。

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

CONTRACT_CHECK_FAILFThe contract check has failed.

联系万里汇技术支持了解合约状态后重试。

result.resultCode:业务结果码

结果码结果码信息行动建议
CONTRACT_NOT_EXISTFThe contract check has failed.

Ensure the Partner has already signed a contract and the input is correct.

USER_NOT_EXISTFThe user does not exist.

Retry with the correct user information.

ASSET_NOT_EXISTFasset not exit

Check asset ID and retry.

ACCESS_TOKEN_EXPIREDFThe access token expired.

Refresh the token to get a new access token or contact our Technical Support Team to address it.

AUTHORIZATION_NOT_EXISTFThe 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.