WorldFirst DocsWorldFirst Docs

queryCardSensitiveInfo需要签名验签

POST /amsin/api/v2/business/worldcard/queryCardSensitiveInfo

当前文档对应最新 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。

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

accountId String  REQUIRED

由万里汇定义,万里汇账户的唯一标识。

更多信息:

  • 最大长度:64 字符

cvv String  REQUIRED

CVV 号。

该信息需从支付处理合作伙伴处获取,因为 WorldFirst 不保存 CVV 信息。

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

cardNo String  REQUIRED

World Card 卡号明文。

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

更多信息:

  • 最大长度:16 字符

expiredMonth String  REQUIRED

卡片过期月份,格式为"MM",如:"07"。

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

更多信息:

  • 最大长度:2 字符

expiredYear String  REQUIRED

卡片过期年份,格式为"YY",取年份后两位数字,如:"29"。

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

更多信息:

  • 最大长度:2 字符
API Explorer

请求

URL
请求体

响应

响应体

响应处理

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

result.resultStatus描述
SAPI 请求成功。
FAPI 请求失败。失败原因参见结果码(即 result.resultCode 和 result.resultMessage)。
U

API 响应结果为 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:业务结果码

结果码结果码信息行动建议
USER_NOT_EXISTFcustomerId is not correct.

Retry with the correct user information.

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.

RISK_REJECTFSecurlty reason error, please contact the account manager

Please reach out to our Technical Support Team.