获取指定卡券的可用性结果

简要描述:

  • 此接口用于获取指定卡券的可用性。

请求URL:

  • 沙箱环境 http://api.sandbox.yhsms.com.cn/UserAccount/Card/CardService.svc/CheckVerificationCardList
  • 生产环境 http://api.yhsms.com.cn/UserAccount/Card/CardService.svc/CheckVerificationCardList

请求方式:

  • POST

参数:

参数名 必选 类型 说明
PlatformID string YHDT号
StationID string 站点编号
UID string 云会员编号
UserAccessToken string 云会员UserAccessToken
CardIDList string 需要查询的卡券编号,JSON数组格式,如:

[“114613113943673100232”,”6596945521818247170”,”6596671799072956416”,”6552152009566625793”,”6552152009566625794”,”6552152009566625795”,”6552152009566625796”,”6552152009566625797”,”6552152009566625798”,”6552152009566625799”,”6552152009566625800”,”6552152009566625801”,”6552152009566625802”]
OuterID string 目标可用性订单号
TotalFee decimal 目标可用性金额

请求示例

{
    "PlatformID": "B67C2C23685746C5BA101236BAC83DF4",
    "UID": "b40e90406ffb49d182c79e99a4e7d463",
    "UserAccessToken": "TkRRPVlqUXdaVGt3TkRBMlptWmlORGxrTVRneVl6YzVaVGs1WVRSbE4yUTBOak09Z2JGUTlUd1ZpZmhTeDd3WGhBYWJ3eWJNZ2NIejZvNk1yVW1VUnFsQ2tFVT0=",
    "CardIDList": [
        "114613113943673100232",
        "6596945521818247170",
        "6596671799072956416",
        "6552152009566625793",
        "6552152009566625794",
        "6552152009566625795",
        "6552152009566625796",
        "6552152009566625797",
        "6552152009566625798",
        "6552152009566625799",
        "6552152009566625800",
        "6552152009566625801",
        "6552152009566625802"
    ],
    "StationID": "B67C2C23685746C5BA101236BAC83DF4",
    "OuterID": "6618434941855506432",
    "TotalFee": 59.64
}

返回示例

{
    "Code": "0",
    "Method": 0,
    "Compressed": false,
    "Encrypted": false,
    "Message": [
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不符合限定商品使用范围!"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不符合限定商品使用范围!"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        },
        {
            "Code": "-1",
            "Method": 0,
            "Compressed": false,
            "Encrypted": false,
            "Message": "卡券不满足使用条件![满 ¥100.00 元才能使用此券]"
        }
    ]
}

返回参数说明

参数名 类型 说明
Message string 检查结果

备注

  • 更多返回错误代码请看首页的错误代码描述
文档更新时间: 2020-05-13 16:53   作者:张国伟