抖音开放平台Logo
开发者文档
“/”唤起搜索
控制台
  • 生活服务商家应用 OpenAPI SDK 总览
  • 接入前准备
  • API接口
  • 通用接口
  • 餐饮
  • 大交通
  • 酒旅
  • 综合
  • 到综团购解决方案
  • 到综团购预约解决方案
  • 综合到店提货解决方案
  • 商品查询
  • 商品发布
  • 提货券三方码交易能力
  • 商家退款申请SPI
  • 通知外部商家取消订单SPI
  • 发券SPI
  • 通知外部商家支付成功SPI
  • 通知外部商家创单SPI
  • 发券回调接口
  • 退款审核回调接口
  • 撤销核销
  • 退款结果同步外部商家SPI
  • 券状态批量查询
  • 验券接口
  • 提货券门店变更通知Webhook
  • 提货券抖音码交易能力
  • 到综预订解决方案
  • 线索管理解决方案
  • 丽人/汽车/家居家电交易上翻解决方案
  • 零售即送解决方案
  • 能力
  • 历史版本文档(不推荐)
  • 接口说明

    用于批量查询抖音券码和三方券码的状态

    1、支持查询提货券抖音券码和三方券码的状态。

    2、核销开放过程中,如存在断网情况下,商家系统没办法及时收到核销状态,增加券状态查询接口,方便商家系统查询券码状态。

    3、通过验券准备接口返回的加密 code 查询抖音券码状态。

    基本信息

    名称描述
    HTTP URL
    https://open.douyin.com/goodlife/v1/compre_retail/fulfilment/certificate/query/
    HTTP Method
    GET
    Scope
    life.capacity.compre_retail_certificate_query
    权限要求
    综合到店提货解决方案-提货券抖音码交易,提货券三方码交易能力

    请求参数

    请求头
    access-token必填String
    示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
    content-type必填String
    固定值"application/json"
    Rpc-Transit-Life-AccountString

    来客商户根账户ID

    Query
    encrypted_codeString
    验券准备接口返回的加密券码
    order_idString
    订单id
    请求示例
    curl --location --request GET 'https://open.douyin.com/goodlife/v1/compre_retail/fulfilment/certificate/query/?encrypted_code=90BBPTblIQ&order_id=ar4RP4OtLe&account_id=wYah9bJhPE' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \

    响应参数

    Body展开全部子属性
    data必填Struct
    展开子属性
    extra必填Struct
    扩展信息
    展开子属性
    响应示例
    正常响应示例异常响应示例
    { "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "2026110611185840C4A422366B7FF75626", "now": 1793935139 }, "data": { "certificates": [ { "time_card": { "times_count": 8131482899941098000, "times_used": 1108969123867211100, "serial_amount_list": [ { "serial_numb": 8790322735204267000, "amount": { "merchant_ticket_amount": 7751695662738916000, "original_currency": "k0vZmdtsDZ", "platform_discount_amount": 8103111232820777000, "list_market_amount": 1464773911902249700, "brand_ticket_amount": 5394761267893983000, "merchant_discount_detail_list": [ { "discount_id": "f27tMPiPqw", "discount_name": "l9MwEuH7yS", "discount_amount": 5430451211097114000 } ], "original_amount": 6252995048360963000, "payment_discount_amount": 6988761567951359000, "coupon_pay_amount": 1626542127157907500, "origin_list_market_amount": 8336585795027316000, "pay_amount": 7303751071486040000 } } ], "time_card_type": 1 }, "not_available_poi_list": [ "MJaLztwgPL" ], "pay_bill_info": { "order_source": 1, "bill_total_amount": 9198007343808135000, "bill_amount": 2635649645513088500 }, "verify": { "verify_time": 7090660226931731000, "benefit_amount": { "merchant_discount_amount": 8425704818316412000, "total_amount": 7576203576863533000, "provider_discount_amount": 798772595959341000, "principal_amount": 840847424020821200, "benefit_amount": 7413412829624957000, "payment_discount_amount": 8139405161392236000, "platform_discount_amount": 2347588328139454000, "brand_discount_amount": 167329934200758430, "pay_amount": 6671910010850747000 }, "poi_id": 6436560817868495000, "verify_type": 1, "times_card_serial_num": 8963148536455456000, "extra": { "open_order_id": "eQfx2p5Kya" }, "certificate_id": "qgLIwfqVvR", "can_cancel": false, "verifier_unique_id": "pgmBoIFI1o", "verify_id": "fwD9gAs53i" }, "reserve_info": { "order_reserve_user_info_list": [ { "phone": "rJw2abVn7e", "credential_numb": "ocB10lsJr3", "credential_type": 1, "enc_name": "oSvDbR5tyl", "enc_phone": "e3cOXytYCP", "enc_credential_numb": "CYrcSk7zwB", "name": "m8pR55wCN2" } ] }, "encrypted_code": "iFw42vojOX", "buyer_reserve_info": { "enc_credential_numb": "NisLBriu4K", "enc_name": "UK44EVtcxX", "credential_numb": "ejnTIeQ5EK", "credential_type": 3128282862111078000, "name": "MSpl1725Qt" }, "verify_records": [ { "poi_id": 6147771246275229000, "times_card_serial_num": 5362114270436211000, "verify_time": 1191244466106192000, "can_cancel": false, "certificate_id": "Cbixrevf87", "verifier_unique_id": "IV3ij3iJne", "benefit_amount": { "platform_discount_amount": 1360758712692551000, "total_amount": 4491856106557911600, "principal_amount": 3327182879301196000, "pay_amount": 5106534281248837000, "merchant_discount_amount": 8829842621275333000, "provider_discount_amount": 6094389688001195000, "benefit_amount": 3609810732750049000, "brand_discount_amount": 727320981545988400, "payment_discount_amount": 1137413451916208500 }, "extra": { "open_order_id": "yAXK7bxajp" }, "verify_id": "bh8FDftQdh", "verify_type": 1 } ], "certificate_id": 449483865495736700, "deduction_info_list": [ { "source_sku_name": "Mq4Uqkmrxg", "source_merchant_discount_amount": 5697411064869166000, "is_one_time_buy": false, "source_amount": 3588587331161534500, "source_user_pay_amount": 5381161012370193000, "source_brand_discount_amount": 764237749432453200, "source_selling_price": 423425727140130370, "source_provider_discount_amount": 2674430627978934300, "source_sku_id": 6911381471824307000, "source_order_id": "AUyKTSNHON", "voucher_type": 1, "source_payment_discount_amount": 4235527781655350300, "order_source": 1, "source_certificate_id": "kKIz9bHGq0", "source_item_order_id": "0kdzmRmuPe", "source_platform_discount_amount": 6803168693936840000, "groupon_type": 1, "source_certificate_code": "xj4wkY4tgj" } ], "used_status_type": 1, "book_info": { "book_product_number": 4674798359618704000, "verify_amount": 6827116366274649000, "book_poi_id": "jwa9mdWYrY" }, "can_verify_status": 1, "cancel_verify_records": [ { "extra": { "open_order_id": "lSPPIkQGSC" }, "poi_id": 2505985771158012000, "can_cancel": false, "verifier_unique_id": "uTiifhSGoX", "benefit_amount": { "brand_discount_amount": 8914358354187218000, "platform_discount_amount": 5255393046675152000, "benefit_amount": 6807500766045426000, "merchant_discount_amount": 5992701370646586000, "payment_discount_amount": 3004035631020392000, "principal_amount": 297760729034699840, "total_amount": 4516539838453636000, "provider_discount_amount": 7394988651737802000, "pay_amount": 6512133055273066000 }, "certificate_id": "x1D5b2LIS5", "verify_type": 1, "verify_id": "xmRNlyNDk3", "verify_time": 7289333950375574000, "times_card_serial_num": 3674361847130351600 } ], "use_time_info": { "time_period_list": [ { "end_time": "KKpHeA02GR", "end_time_is_next_day": false, "start_time": "jhRMtL0GVL" } ], "use_time_type": 1 }, "benefit_card_info": { "total_amount": { "merchant_discount_amount": 9195849908434077000, "platform_discount_amount": 6456503165043182000, "payment_discount_amount": 1821258104382250800, "benefit_amount": 320776352936556900, "pay_amount": 3748077683020416500, "provider_discount_amount": 3012374824139113500, "total_amount": 3343039326801618400, "brand_discount_amount": 9025768730174330000, "principal_amount": 4604165077674233000 }, "left_amount": { "provider_discount_amount": 208650224511959800, "benefit_amount": 8956858598038255000, "pay_amount": 9220354344433915000, "principal_amount": 8488251807570114000, "merchant_discount_amount": 6291106721000919000, "payment_discount_amount": 6555680313940404000, "brand_discount_amount": 8507028241488782000, "total_amount": 8812478585243653000, "platform_discount_amount": 8552286102208921000 } }, "expire_time": 8062023935197816000, "advance_purchase_struct": { "purchase_type": 1, "time_detail": [ { "time": 4672992751223852000, "time_type": 1 } ] }, "off_peak_discount_info": { "off_peak_time_range": [ { "end_time": 5358052491786272000, "daily_time_range_list": [ { "start_time": "aBVsHRZRYD", "end_time": "vhncbzg2eg", "end_time_is_next_day": false } ], "week_day_list": [ 1 ], "start_time": 9072071980850526000 } ], "idle_time_limit_type": 1, "has_off_peak_discount": false }, "additional_map": { "1": "gK1MAmK2TD" }, "amount": { "coupon_pay_amount": 3711092756157899000, "origin_list_market_amount": 9170791256171077000, "brand_ticket_amount": 4632154833892363000, "platform_discount_amount": 6362979020922498000, "pay_amount": 3543008500337193500, "payment_discount_amount": 9089258208108574000, "list_market_amount": 6471909528620792000, "original_amount": 7569372379971959000, "merchant_ticket_amount": 3787162197748459000, "original_currency": "bJKGUcj9kU", "merchant_discount_detail_list": [ { "discount_id": "esQli43NeG", "discount_name": "VgYWLqI85N", "discount_amount": 5094687376081454000 } ] }, "period_card": { "period_type": 1 }, "code": "0F5FPhYDM4", "not_available_time_info": { "can_no_use_week_day": [ 1265067433558903600 ], "can_no_use_date": [ { "start_time": 6857779285799244, "end_time": 8586906516157900000 } ], "fulfil_enable": false }, "dynamic_code_info": { "code_expire_time": "taNDhYHWY6" }, "status": 1, "sku": { "suplier_product_out_id": "dotqCTJ5xH", "sku_out_id": "DLfy6AdRoM", "voucher_type": 1, "product_out_id": "z1dSjKkFFb", "product_attr": { "xuyDx6ZNGb": "bCWfh44QAr" }, "groupon_type": 1, "product_id": "fbMzd89C9e", "third_sku_id": "lr1KSmPTQK", "market_price": 5225725253477251000, "account_id": "f2aac1Wkx7", "sku_id": "xWuokAXzhJ", "sold_start_time": 3753298605725573600, "title": "gqgefZQxK8" }, "start_time": 6822958132963881000 } ], "certificates_v2": [ { "sku": { "suplier_product_out_id": "wbdUXgWqaF", "groupon_type": 1, "product_id": "enuQfrGJ3Z", "third_sku_id": "mg47sNg1CT", "account_id": "C4e1g7i2Rl", "sku_out_id": "OoyuiVF0CC", "product_out_id": "LSo6LWIpf1", "voucher_type": 1, "sku_id": "mIRab924il", "sold_start_time": 6092434932966643000, "product_attr": { "boRrMaZrjP": "ZIVWIGKnpw" }, "title": "RQIIs2iKar", "market_price": 3747686383124860400 }, "not_available_time_info": { "fulfil_enable": false, "can_no_use_week_day": [ 6536824561714729000 ], "can_no_use_date": [ { "start_time": 3919310162537971000, "end_time": 2799271000522544000 } ] }, "use_time_info": { "use_time_type": 1, "time_period_list": [ { "start_time": "OD5KckXDTq", "end_time": "DTRsEO7nyz", "end_time_is_next_day": false } ] }, "dynamic_code_info": { "code_expire_time": "fXl4mKNNPN" }, "amount": { "original_currency": "EMNuhZClZu", "original_amount": 4992186828145024000, "list_market_amount": 3398855419432383000, "origin_list_market_amount": 187207639483482530, "brand_ticket_amount": 2539065961300729300, "merchant_discount_detail_list": [ { "discount_id": "pQTYzhhw7d", "discount_name": "6JceBxs6gB", "discount_amount": 7555127581041680000 } ], "pay_amount": 307091264166601400, "payment_discount_amount": 1345015559902189000, "coupon_pay_amount": 2171591085063694600, "platform_discount_amount": 5274230285986782000, "merchant_ticket_amount": 9099964512388409000 }, "expire_time": 3847110930854485500, "not_available_poi_list": [ "JfjCGT3HHU" ], "advance_purchase_struct": { "purchase_type": 1, "time_detail": [ { "time_type": 1, "time": 5121562272456106000 } ] }, "used_status_type": 1, "book_info": { "verify_amount": 5424906721907570000, "book_poi_id": "zdwRuUkhjP", "book_product_number": 8663600507210513000 }, "start_time": 784321961456407300, "verify": { "extra": { "open_order_id": "Vp5PDtV5vO" }, "certificate_id": "Ipebjrc4dM", "times_card_serial_num": 8119613640294962000, "benefit_amount": { "pay_amount": 3112932379141346000, "total_amount": 2758589156133557000, "provider_discount_amount": 8602829460184817000, "benefit_amount": 4748485753524960000, "merchant_discount_amount": 4671885484943897000, "platform_discount_amount": 5767849733373892000, "payment_discount_amount": 5091542029731668000, "principal_amount": 5887780076268750000, "brand_discount_amount": 952321494887548000 }, "verify_type": 1, "can_cancel": false, "poi_id": 4660245790183219000, "verify_time": 341253653580462300, "verify_id": "q1SftEMzLU", "verifier_unique_id": "fa2994ebcZ" }, "certificate_id": 1234988248067428400, "reserve_info": { "order_reserve_user_info_list": [ { "enc_phone": "oARwaVCYah", "enc_credential_numb": "HFnrScMGo4", "name": "eRw0sTEiCC", "phone": "lAsU0SKpWK", "credential_numb": "ZtSJhT9ZKQ", "credential_type": 1, "enc_name": "EEhhCNn6iW" } ] }, "benefit_card_info": { "left_amount": { "merchant_discount_amount": 3620710823496905700, "total_amount": 7355128694750666000, "benefit_amount": 5541492953388982000, "pay_amount": 3468128037986142000, "platform_discount_amount": 2678124614258177500, "principal_amount": 9077194403071361000, "payment_discount_amount": 1457110426622232000, "brand_discount_amount": 6126277379706896000, "provider_discount_amount": 6019840751576073000 }, "total_amount": { "merchant_discount_amount": 73783773438331760, "total_amount": 4241844656028881000, "platform_discount_amount": 8481939825039788000, "payment_discount_amount": 1097125870879341600, "benefit_amount": 8338453346389575000, "pay_amount": 8949434036373080000, "provider_discount_amount": 9169627464215720000, "principal_amount": 1356843811269119700, "brand_discount_amount": 724382129278481200 } }, "pay_bill_info": { "bill_total_amount": 1959255799089897500, "bill_amount": 6941877507567593000, "order_source": 1 }, "encrypted_code": "SKLDyWlID8", "verify_records": [ { "verify_time": 5343552047756863000, "can_cancel": false, "poi_id": 1939373151808995000, "benefit_amount": { "platform_discount_amount": 624542846861653100, "payment_discount_amount": 3435889697110777000, "merchant_discount_amount": 938801056003316500, "principal_amount": 8613540052404905000, "benefit_amount": 4307019421434108000, "pay_amount": 6915353915774390000, "total_amount": 1406593985096916500, "provider_discount_amount": 723153721243475000, "brand_discount_amount": 441696785051008500 }, "verifier_unique_id": "e9D7PLvgzz", "times_card_serial_num": 3800648347611261000, "verify_id": "Ga3HXqvsB0", "extra": { "open_order_id": "o4dK6WIDFW" }, "verify_type": 1, "certificate_id": "HCu52tl0Ig" } ], "cancel_verify_records": [ { "verify_type": 1, "verifier_unique_id": "Yq0t5cfiA9", "times_card_serial_num": 3260092754474656000, "verify_id": "Ftf2c3H1o1", "certificate_id": "VwHV6MwPPp", "extra": { "open_order_id": "XWqIwxtBBZ" }, "verify_time": 5998769844402697000, "can_cancel": false, "poi_id": 3486105745511267000, "benefit_amount": { "payment_discount_amount": 8735293090739062000, "brand_discount_amount": 8501176426417431000, "platform_discount_amount": 8204444296149271000, "provider_discount_amount": 8545558152815800000, "pay_amount": 5897835369490043000, "principal_amount": 1071840058650833900, "total_amount": 3271061631547682000, "benefit_amount": 4081630839296878600, "merchant_discount_amount": 7072513247605814000 } } ], "deduction_info_list": [ { "source_brand_discount_amount": 4356642782364173000, "source_order_id": "trI5qqrKEo", "source_user_pay_amount": 8784593014822662000, "source_platform_discount_amount": 1161376021515371000, "groupon_type": 1, "voucher_type": 1, "source_certificate_id": "EpyHGfJcTx", "source_selling_price": 4982056879967376000, "source_provider_discount_amount": 3822162366545956400, "source_certificate_code": "vBFFh70Dzn", "source_amount": 2381030135863527400, "source_sku_id": 803893806036436600, "source_sku_name": "Y08gtPaz6j", "order_source": 1, "is_one_time_buy": false, "source_item_order_id": "ZkNqtKvXDx", "source_merchant_discount_amount": 2565138791055875000, "source_payment_discount_amount": 2280686092417475000 } ], "can_verify_status": 1, "period_card": { "period_type": 1 }, "off_peak_discount_info": { "has_off_peak_discount": false, "off_peak_time_range": [ { "start_time": 6026986204992881000, "end_time": 3374845902213603000, "daily_time_range_list": [ { "end_time": "YvO0vYemvu", "end_time_is_next_day": false, "start_time": "lLKtyiRLcT" } ], "week_day_list": [ 1 ] } ], "idle_time_limit_type": 1 }, "time_card": { "times_count": 5569665013346757000, "times_used": 560550754830105540, "serial_amount_list": [ { "amount": { "origin_list_market_amount": 7097200679766166000, "coupon_pay_amount": 8598532411025405000, "merchant_discount_detail_list": [ { "discount_id": "8d8uPIlLGw", "discount_name": "7hTaA3hRFO", "discount_amount": 6774771791002752000 } ], "payment_discount_amount": 3435698731843473400, "original_amount": 3739681563172809000, "platform_discount_amount": 6538768315158387000, "list_market_amount": 2478518221627228000, "original_currency": "nxVkiSx39K", "merchant_ticket_amount": 5916522505570483000, "brand_ticket_amount": 5625857823425700000, "pay_amount": 3571309208537118700 }, "serial_numb": 3016570434553698300 } ], "time_card_type": 1 }, "code": "ZqutX0ivAM", "additional_map": { "1": "x1NiWgxA3p" }, "buyer_reserve_info": { "credential_numb": "zd4m1m2CkC", "credential_type": 5785914268073639000, "name": "xgAJL3Q4g7", "enc_credential_numb": "7qT90zHExk", "enc_name": "CeuXqurHs5" }, "status": 1 } ], "error_code": 0, "description": "" } }
    切换单列布局

    错误码

    HTTP 状态码错误码错误码描述排查建议
    2002100001
    未知错误
    重试接口,重试3次仍报错联系抖音生活服务技术支持
    2002100004
    系统繁忙,此时请开发者稍候再试
    重试接口,重试3次仍报错联系抖音生活服务技术支持
    2002100005
    参数不合法
    更换参数
    2002190002
    access_token无效
    调用接口重新生成access_token
    2002190004
    应用未获得该能力, 请去https://open.douyin.com/申请
    应用申请接口权限
    2002190008
    access_token过期,请刷新或重新授权
    规范token刷新机制,检查是否有测试环境在同步刷新token
    2002119001
    参数不合法
    更换参数
    2002119002
    系统繁忙,请稍候再试
    重试
    2002119003
    请求太过频繁,请稍后再试
    重试
    2002119005
    应用未获商家授权
    联系合作商家在商家后台发起授权,并在服务商后台同意授权
    2003000001
    根据实际业务错误返回
    对照接口文档规范参数并重试
    2004000001
    根据实际业务错误返回
    补充参数
    2004000002
    根据实际业务错误返回
    对照接口文档规范参数并重试
    2005000001
    根据实际业务错误返回
    联系抖音处理
    2004000001
    以实际错误信息为准
    2005000001
    服务器打瞌睡了,请稍后再试。
    2003000001
    以实际错误信息为准