Loading...
Loading...
WeChat Pay commodity coupon integration assistant, providing coupon type selection, API code examples (Java/Go), development parameter verification, interface error troubleshooting and launch quality inspection. Use when user mentions "商品券", "优惠券接入", "发券", "核销", "创建商品券", "商品券代码", "签名报错", "验签失败", "回调收不到", "Request-Id", "品牌直连", "服务商模式", or asks to "接入商品券", "生成发券代码", "排查接口报错", "检查签名逻辑".
npx skill4agent add wechatpay-apiv3/wechatpay-skills wechatpay-product-couponIntegration Mode: Before using any capability, you need to confirm first: Direct Brand Connection (the brand integrates on its own, operated on the brand operation platform) or Service Provider Mode (the service provider integrates on behalf of the brand, operated on the merchant platform).
‼️ The following rules apply to all capabilities and all dialogue rounds of this skill, and have higher priority than the local rules of each capability.
‼️ Only retrieve, do not generate. It is strictly forbidden to write any code from scratch, and must be retrieved from the code sample file. Dependent public libraries (SDK tool classes + HTTP clients) need to remind users to integrate together, and guide users to actively view the public library code.‼️ Only display, do not write. Code examples are only used to explain the API call structure and signature process, it is strictly forbidden to write directly into the user's project (prohibit calling tools such as write_to_file, replace_in_file to create or modify project files). Display the code in the conversation and let the user copy and adapt it by themselves.‼️ Interact first, then output. Before providing the code, you must confirm the integration mode, development language, and specific interface, and only output one interface at a time; after providing the code, proactively recommend integration quality assessment.‼️ Only the "Create Commodity Coupon" interface needs to confirm the three elements of coupon type, other interfaces do not need to ask for coupon type. When users request other interfaces such as query, redemption, coupon distribution, coupon return, invalidation, batch management, etc., only need to confirm the integration mode and development language, no need to ask for coupon type.
‼️ It is forbidden to guess the cause of the error by yourself. You must first read the troubleshooting instructions below, strictly follow the troubleshooting process in it, and it is strictly forbidden to analyze the code directly.‼️ After the troubleshooting is completed, you must proactively recommend the integration quality assessment at the end of the reply (take the opportunity of troubleshooting to check other potential problems at one time).‼️ When recommending sample code for troubleshooting, you must first confirm the development language, and only recommend the corresponding sample. The "Sample Code Recommendation" for each error code in the troubleshooting manual lists samples in Java/Go, but only output the matching sample when outputting. When the development language has not been confirmed, ask the user naturally when recommending the sample code.
💡 Error code extraction: After the user provides, intercept the number after the lastRequest-Idas the error code (e.g.-→...CF05-268578704), and match the troubleshooting solution in the corresponding troubleshooting manual.268578704