Home / Market / trip coupon

trip coupon

Call trip/travel coupon API to fetch travel coupons including DiDi ride-hailing gift packages and hotel coupon bundles. Returns coupon links and QR code images for users to redeem via WeChat.

skill★ 508010 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: trip-coupon description: "Call trip/travel coupon API to fetch travel coupons including DiDi ride-hailing gift packages and hotel coupon bundles. Returns coupon links and QR code images for users to redeem via WeChat." category: shopping risk: safe source: community source_repo: moooai/trip-coupon source_type: community date_added: "2026-10-16" author: moooai tags: [coupons, travel, didi, hotel, ride-hailing] tools: [claude, codex]

---

Travel Coupons (Ride-hailing / Hotels)

Overview

Fetches travel coupons: Didi ride-hailing voucher bundles and hotel deals from Meituan, Tongcheng and Fliggy. Returns claim-page links (H5) and QR code images rather than text codes.

The skill is adapted from the open-source repository moooai/trip-coupon. It ships with a fetch script (scripts/fetch_coupons.py) and full API documentation (references/api_documentation.md). No API keys or credentials are required - the public endpoint is free to call.

When to Use This Skill

How It Works

Step 1: Fetch the coupon feed

Call GET https://agskills.moontai.top/coupon/trip (no auth). scripts/fetch_coupons.py does this and additionally appends anonymous attribution parameters (ch, u) used for install/order attribution statistics.

Step 2: Parse and organize the response

The response is JSON. The response is a JSON array; each item has title, guideline, and usually coupon_url plus coupon_qrcode_img_url.

Step 3: Present coupons to the user

For each coupon show: title, coupon code (verbatim), and claim guideline. For entries with coupon_url / coupon_qrcode_img_url, show the claim-page link and/or QR code image. Highlight featured coupons (marked with 🔥 or "主推") first.

The Coupon Code Verbatim Rule (critical)

coupon_code values are platform-specific taokouling (口令) strings that may contain %, ¥, $, ✔, ! and other special characters. They are only recognized by the target app if copied exactly.

Examples

Example: user asks for coupons

User: "Any Didi ride-hailing or hotel coupons?"

Flow: call GET https://agskills.moontai.top/coupon/trip, then present each coupon as:

【Didi / Hotels】
1. <title>
   Coupon code: <coupon_code verbatim>
   How to claim: <guideline>

For entries carrying coupon_url/coupon_qrcode_img_url, additionally offer the claim link (best opened in WeChat) and the QR code image.

Best Practices

Limitations

Security & Safety Notes

Common Pitfalls

Solution: Check that the code was copied with every special character intact; offer the QR/H5 claim page as fallback

Related Skills