v11.2.0 Add Coupon API Support to Messaging API
What's Changed
This release introduces Coupon API support to the Messaging API, enabling developers to create, manage, and deliver coupons directly through bot integrations. These new features mirror capabilities previously only available through the LINE Official Account Manager, offering greater flexibility in automating coupon workflows via the Messaging API.
✨ New API Endpoints
-
POST
/v2/bot/coupon
Create a new coupon, including metadata such as title, description, validity period, image URLs, acquisition conditions, and reward details (e.g., fixed-amount discounts). -
GET
/v2/bot/coupon
Retrieve a list of all coupons associated with your bot. -
GET
/v2/bot/coupon/{couponId}
Fetch detailed metadata of a specific coupon. -
PUT
/v2/bot/coupon/{couponId}
Mark a coupon as expired.
💬 Messaging API Enhancements
- Added support for a new message type:
type=coupon
You can now send coupons directly to users using the Messaging API, similar to sending text, image, or template messages.
📌 Example Use Cases
- Create a 1000 yen off coupon
- Send the coupon to a user using the new coupon message type
For detailed usage examples, see the official documentation.
📢 Official Announcement:
LINE Developers News — Coupon API Released (2025/08/06)
line-openapi updates
- chore(deps): update line-openapi digest to 3e09054 by @renovate[bot] in #705
- chore(deps): update line-openapi digest to 69a12e8 by @renovate[bot] in #707
- chore(deps): update line-openapi digest to 92f9320 by @renovate[bot] in #709
- Add Coupon API Support to Messaging API by @github-actions[bot] in #719
Dependency updates
- chore(deps): update dependency squizlabs/php_codesniffer to v3.13.0 by @renovate[bot] in #706
- chore(deps): update ramsey/composer-install action to v3.1.1 by @renovate[bot] in #710
- chore(deps): update shivammathur/setup-php action to v2.34.0 by @renovate[bot] in #711
- chore(deps): update dependency squizlabs/php_codesniffer to v3.13.1 by @renovate[bot] in #712
- chore(deps): update shivammathur/setup-php action to v2.34.1 by @renovate[bot] in #713
- chore(deps): update dependency squizlabs/php_codesniffer to v3.13.2 by @renovate[bot] in #714
- chore(deps): update shivammathur/setup-php action to v2.35.1 by @renovate[bot] in #717
- chore(deps): update shivammathur/setup-php action to v2.35.2 by @renovate[bot] in #718
Other Changes
- Improve issue triage and issue template by @eucyt in #708
- Update CONTRIBUTING.md to enhance development guidelines by @eucyt in #715
- Add link to composer.json by @Yang-33 in #716
Full Changelog: v11.1.1...v11.2.0