简要描述:

  • 抖音核销券-核销准备

请求域名:

  • http://xx.com

请求URL:

POST/plugin.tiktok-verify-ticket.api.verify.prepare

参数:

参数名 是否必须 类型 说明
code string 原始的抖音团购券码(测试时可以随便填)
id int 从url获取的商户id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "success",
    "data": {
        "right": {
            "single": [
                {
                    "type": "point",
                    "name": "积分",
                    "value": 10,
                    "id": 0,
                    "icon": "integral"
                },
                {
                    "type": "balance",
                    "name": "余额",
                    "value": 20,
                    "id": 0,
                    "icon": "balance"
                },
                {
                    "type": "integral",
                    "name": "消费积分",
                    "value": 30,
                    "id": 0,
                    "icon": "Integral_love"
                },
                {
                    "type": "love",
                    "name": "合并其他",
                    "value": 40,
                    "id": 0,
                    "icon": "love"
                },
                {
                    "type": "packet",
                    "name": "每日红包额度",
                    "value": 50,
                    "id": 0,
                    "icon": "packet"
                },
                {
                    "type": "member_level",
                    "name": "会员等级5",
                    "value": 0,
                    "id": 6,
                    "icon": "senior-member"
                }
            ],
            "coupon": [
                {
                    "id": 15,
                    "type": "coupon",
                    "value": 1,
                    "name": "核销优惠券1",
                    "enough": 1,
                    "deduct": "1.00",
                    "icon": ""
                },
                {
                    "id": 16,
                    "type": "coupon",
                    "value": 1,
                    "name": "核销优惠券2",
                    "enough": 1,
                    "deduct": "1.00",
                    "icon": ""
                }
            ],
            "good": [
                {
                    "option_id": 0,
                    "thumb": "",
                    "type": "good",
                    "id": 13279,
                    "name": "核销商品1",
                    "value": 1,
                    "option_name": "",
                    "price": "1.00",
                    "icon": ""
                },
                {
                    "option_id": 0,
                    "thumb": "",
                    "type": "good",
                    "id": 13280,
                    "name": "核销商品2",
                    "value": 1,
                    "option_name": "",
                    "price": "1.00",
                    "icon": ""
                }
            ],
            "exchange": [
                {
                    "id": 2,
                    "type": "exchange",
                    "value": 1,
                    "name": "核销兑换码1",
                    "icon": "exchange"
                },
                {
                    "id": 3,
                    "type": "exchange",
                    "value": 1,
                    "name": "核销兑换码2",
                    "icon": "exchange"
                }
            ]
        },
        "encrypted_code": "CgwIARDhJxjLLyABKAESLgosG3wTrsoh2kAgsA9aFHTq5iVrNgDU8yGKihMn7KG/Eb8l7yQst/Z2L531rgQaAA==",
        "verify_token": "a4ba1372-fc73-491e-bf47-f5cd0117f8a3",
        "default_address": {
            "id": 7,
            "uniacid": 1,
            "uid": 52,
            "username": "21312",
            "mobile": "18312687422",
            "zipcode": "",
            "province": "江苏省",
            "city": "南通市",
            "district": "如皋市",
            "address": "12123",
            "isdefault": 1,
            "longitude": "",
            "latitude": "",
            "country_code": "",
            "position_address": ""
        }
    }
}

错误时返回:


返回参数说明:

参数名 类型 说明
right object 核销权益
encrypted_code string 加密券码, 在验券接口传入
default_address object 默认地址(当right中存在good时返回)
verify_token string 验券是传入

返回参数right说明:

参数名 类型 说明
point int 积分数
balance int 余额数
integral int 消费积分数
love int 爱心值数
packet int 每日红包额度
member_level object 会员等级
coupon array 优惠券
exchange array 兑换码
good array 商品

返回参数right.member_level说明:

参数名 类型 说明
name string 等级名称
id int 等级id

返回参数right.coupon说明:

参数名 类型 说明
value int 送x张
id int 优惠券id
name string 优惠券名称
enough float 满x元
deduct float 优惠x元

返回参数right.exchange:

参数名 类型 说明
value int 送x个
id int 兑换码id
name string 兑换码名称

返回参数right.good:

参数名 类型 说明
value int 送x个
id int 兑换码id
name string 商品名称
option_name string 规格名称
price float 商品价格
name string 商品名称
thumb string 商品图片

返回参数default_address:

参数名 类型 说明
id int 地址id
uid int 用户id
username string 用户名
mobile string 手机号码
province string
city string
district string
isdefault int 是否默认 1 是 0否

备注:

  • 更多返回错误代码请看首页的错误代码描述