券状态查询
收藏
我的收藏接口说明
在核销的异常场景情况下,对抖音码团购、次卡券进行状态查询。
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/fulfilment/certificate/get/ |
HTTP Method | GET |
Scope | life.capacity.fulfilment |
权限要求 | 团购核销 1.需要申请权限 路径:抖音开放平台-开发者平台/服务商平台>控制台>应用详情>解决方案 2.需要商家授权,路径:抖音来客>店铺管理>第三方应用授权 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Query
encrypted_code必填String
验券准备接口返回的加密券码
(传参前需要先进行URL编码,注意不要有空格)
account_idString
核销商户根账户ID(云连锁场景接入需传入,其余场景可不传)
请求示例
curl --location --request GET '/goodlife/v1/fulfilment/certificate/get/?encrypted_code=0DOIYNLNFC&account_id=yZswppDqX0' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \
响应参数
Body展开全部子属性
data必填Struct
团购券的信息
展开子属性
extraStruct
展开子属性
响应示例
正常响应示例异常响应示例
{ "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "20241205143740CCD2274C52EEDD750E2A", "now": 1733380660 }, "data": { "certificate": { "code": "E9RFq2xnKC", "used_status_type": 1, "use_time_info": { "use_time_type": 1, "time_period_list": [ { "end_time_is_next_day": false, "start_time": "CBHuSiu0it", "end_time": "PEKtDWnKTZ" } ] }, "additional_map": { "1": "d2PvAbc7fw" }, "period_card": { "period_type": 1 }, "off_peak_discount_info": { "has_off_peak_discount": false, "off_peak_time_range": [ { "week_day_list": [ 1 ], "start_time": 357819979311833200, "end_time": 1299040728172695300, "daily_time_range_list": [ { "end_time_is_next_day": false, "start_time": "VI3Y3ZDYvk", "end_time": "o0sL674tu0" } ] } ], "idle_time_limit_type": 1 }, "expire_time": 3285720711667748000, "amount": { "merchant_ticket_amount": 6357060084693609000, "payment_discount_amount": 3524074055282650600, "origin_list_market_amount": 4198727329686524400, "pay_amount": 7780706663222599000, "list_market_amount": 3319353043169059300, "brand_ticket_amount": 6427829139346985000, "original_currency": "30FBpKrwuN", "original_amount": 2262769428063589600, "coupon_pay_amount": 5586646706840415000, "platform_discount_amount": 4705055497013452000 }, "start_time": 2097653586330276900, "verify": { "poi_id": 9078478488743092000, "times_card_serial_num": 5229050898166015000, "verify_id": "7VgjJArtNz", "certificate_id": "SpsqkImfLK", "verify_time": 455085795833543360, "can_cancel": false, "verify_type": 1, "verifier_unique_id": "U06FpNNcHw" }, "verify_records": [ { "verify_type": 1, "verifier_unique_id": "8cEuWMSiW4", "poi_id": 8325588094536144000, "times_card_serial_num": 2410365046562063400, "verify_id": "FydMlsBGM5", "certificate_id": "50sEOi8WXZ", "verify_time": 8323417540242364000, "can_cancel": false } ], "sku": { "sold_start_time": 899082671970249100, "product_id": "eoZEob1otO", "sku_id": "2NfjVlymTy", "product_out_id": "KZW5uWnZWb", "groupon_type": 1, "market_price": 3654662482279869400, "sku_out_id": "zuFq6FCCDA", "title": "Whmr1iOaFz", "third_sku_id": "xliaceat4N", "account_id": "jvBIzIhn1o", "voucher_type": 1 }, "reserve_info": { "order_reserve_user_info_list": [ { "credential_numb": "imxflNWx3H", "credential_type": 1, "name": "fflSFRhwJJ", "phone": "hRDZFNuvwt" } ] }, "encrypted_code": "ZzTww5CCki", "status": 1, "certificate_id": 7513281167814822000, "not_available_time_info": { "fulfil_enable": false, "can_no_use_week_day": [ 140287536505084430 ], "can_no_use_date": [ { "start_time": 7823586276264526000, "end_time": 4342390462359539700 } ] }, "time_card": { "times_used": 7391802945200775000, "serial_amount_list": [ { "amount": { "origin_list_market_amount": 4257512085125083000, "pay_amount": 7426795408326887000, "merchant_ticket_amount": 4956494820796857000, "payment_discount_amount": 2967232573126060500, "original_amount": 1139394889446956700, "list_market_amount": 5193793001400228000, "platform_discount_amount": 4442300137470351000, "coupon_pay_amount": 2034482842032270000, "brand_ticket_amount": 2585310472396836400, "original_currency": "WjC0aoM4Nd" }, "serial_numb": 4972254242264409000 } ], "times_count": 6594974968900685000 }, "book_info": { "book_poi_id": "olqSdBHBRs", "book_product_number": 7266678146927797000 } }, "certificate_v2": { "code": "qHGzpPi5Yz", "status": 1, "time_card": { "times_used": 8840436239901416000, "serial_amount_list": [ { "amount": { "list_market_amount": 3224987198929425400, "original_currency": "eMO4tmkBAF", "pay_amount": 8224172068729320000, "merchant_ticket_amount": 6071513325489530000, "coupon_pay_amount": 3157318029964280000, "brand_ticket_amount": 2373869713701496000, "payment_discount_amount": 5562819787880493000, "platform_discount_amount": 4574662495666481700, "original_amount": 4804965740551528000, "origin_list_market_amount": 754138780259101800 }, "serial_numb": 3880671295912281000 } ], "times_count": 6843882403571205000 }, "certificate_id": 3040657715297958400, "book_info": { "book_poi_id": "B2nQgQOMqn", "book_product_number": 4362125493928524300 }, "used_status_type": 1, "additional_map": { "1": "fCXeFwVQPL" }, "off_peak_discount_info": { "idle_time_limit_type": 1, "has_off_peak_discount": false, "off_peak_time_range": [ { "start_time": 813350341896141800, "end_time": 6832540884106492000, "daily_time_range_list": [ { "start_time": "QbuGvVTORD", "end_time": "bp2fuVOX5W", "end_time_is_next_day": false } ], "week_day_list": [ 1 ] } ] }, "encrypted_code": "4x4JdMOybR", "period_card": { "period_type": 1 }, "expire_time": 5439768680195573000, "use_time_info": { "time_period_list": [ { "end_time_is_next_day": false, "start_time": "uioheG2Cvv", "end_time": "GrabWfJPdk" } ], "use_time_type": 1 }, "not_available_time_info": { "can_no_use_date": [ { "start_time": 5392601401994692000, "end_time": 694142390897542300 } ], "fulfil_enable": false, "can_no_use_week_day": [ 8294475429803305000 ] }, "amount": { "original_amount": 7402094233871099000, "merchant_ticket_amount": 4918884828613885000, "original_currency": "2eOtDFkQYJ", "list_market_amount": 8529834515121539000, "payment_discount_amount": 7935699363755259000, "platform_discount_amount": 2115006634352746000, "origin_list_market_amount": 1166720860734298600, "coupon_pay_amount": 5836688300216048000, "pay_amount": 4706414465447823000, "brand_ticket_amount": 8373554249947673000 }, "verify_records": [ { "verify_type": 1, "verifier_unique_id": "sIRmiitePW", "poi_id": 7077049498961538000, "times_card_serial_num": 7460929779432612000, "verify_id": "7VwhaQB0D9", "certificate_id": "aV9XfHRMe5", "verify_time": 7720059448726096000, "can_cancel": false } ], "start_time": 496363139195497800, "reserve_info": { "order_reserve_user_info_list": [ { "credential_type": 1, "name": "F0ES83NapG", "phone": "Zuv3PH52zZ", "credential_numb": "bcz0zoF0FZ" } ] }, "verify": { "times_card_serial_num": 1941391273238247400, "verify_id": "XOQMef9Wch", "certificate_id": "ww0CqChbT4", "verify_time": 2051071189620407000, "can_cancel": false, "verify_type": 1, "verifier_unique_id": "CwfN6eKBmZ", "poi_id": 4189571656366110000 }, "sku": { "voucher_type": 1, "sku_out_id": "NmTT17AsNM", "market_price": 6600023651623575000, "sold_start_time": 4299953786633614000, "sku_id": "0ud5JtEgZ6", "account_id": "3nTCfkaQbx", "title": "nADfzPpYaH", "groupon_type": 1, "third_sku_id": "nQuTNxPNMx", "product_id": "NjnJJHsLsh", "product_out_id": "RoPkGq7K53" } }, "error_code": 0, "description": "" } }
错误码
HTTP 状态码 | 错误码 | 错误码描述 | 排查建议 |
---|---|---|---|
200 | 2190002 | access_token无效 | 调用接口重新生成access_token |
200 | 2190004 | 应用未获得该能力, 请去https://open.douyin.com/申请 | 应用申请接口权限 |
200 | 2190008 | access_token过期,请刷新或重新授权 | 规范token刷新机制,检查是否有测试环境在同步刷新token |
200 | 2119001 | 参数不合法 | 更换参数 |
200 | 2119002 | 系统繁忙,请稍候再试 | 重试 |
200 | 2119003 | 请求太过频繁,请稍后再试 | 重试 |
200 | 2119005 | 应用未获商家授权 | 联系合作商家在商家后台发起授权,并在服务商后台同意授权 |
200 | 3000001 | 根据实际业务错误返回 | 对照接口文档规范参数并重试 |
200 | 4000001 | 根据实际业务错误返回 | 补充参数 |
200 | 4000002 | 根据实际业务错误返回 | 对照接口文档规范参数并重试 |
200 | 5000001 | 根据实际业务错误返回 | 联系抖音处理 |
200 | 2100001 | 未知错误 | 重试接口,重试3次仍报错联系抖音生活服务技术支持 |
200 | 2100004 | 系统繁忙,此时请开发者稍候再试 | 重试接口,重试3次仍报错联系抖音生活服务技术支持 |
200 | 2100005 | 参数不合法 | 更换参数 |
200 | 5000001 | 服务器打瞌睡了,请稍后再试。 | |
200 | 3000001 | 以实际错误信息为准 |
点击纠错