v2.1.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
- Update line-openapi digest to 69a12e8 by @renovate[bot] in #607
- Update line-openapi digest to 92f9320 by @renovate[bot] in #610
- Add Coupon API Support to Messaging API by @github-actions[bot] in #637
Dependency updates
- Update ruby/setup-ruby action to v1.239.0 by @renovate[bot] in #598
- Update dependency rubocop to v1.75.6 by @renovate[bot] in #600
- Update dependency rbs to v3.9.4 by @renovate[bot] in #599
- Update ruby/setup-ruby action to v1.240.0 by @renovate[bot] in #602
- Update ruby/setup-ruby action to v1.241.0 by @renovate[bot] in #603
- Update dependency rack to v3.1.15 by @renovate[bot] in #604
- Update ruby/setup-ruby action to v1.242.0 by @renovate[bot] in #605
- Update ruby/setup-ruby action to v1.243.0 by @renovate[bot] in #606
- Update ruby/setup-ruby action to v1.244.0 by @renovate[bot] in #608
- Update dependency rubocop to v1.75.7 by @renovate[bot] in #609
- Update dependency rspec to v3.13.1 by @renovate[bot] in #612
- Update dependency rubocop to v1.75.8 by @renovate[bot] in #613
- Update dependency rake to v13.3.0 by @renovate[bot] in #614
- Update dependency rubocop to '~> 1.76.0' by @renovate[bot] in #615
- Update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.1 by @renovate[bot] in #616
- Update dependency rack to v3.1.16 by @renovate[bot] in #617
- Update dependency rubocop to v1.76.1 by @renovate[bot] in #618
- Update ruby/setup-ruby action to v1.245.0 by @renovate[bot] in #619
- Update dependency rubocop to v1.76.2 by @renovate[bot] in #620
- Update dependency rubocop to '~> 1.77.0' by @renovate[bot] in #621
- Update openapi-generator-version to v7.14.0 by @renovate[bot] in #622
- Update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.0 by @renovate[bot] in #623
- Update dependency rubocop to '~> 1.78.0' by @renovate[bot] in #624
- Update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.1 by @renovate[bot] in #625
- Update ruby/setup-ruby action to v1.246.0 by @renovate[bot] in #626
- Update ruby/setup-ruby action to v1.247.0 by @renovate[bot] in #627
- Update ruby/setup-ruby action to v1.248.0 by @renovate[bot] in #628
- Update dependency rubocop to '~> 1.79.0' by @renovate[bot] in #629
- Update ruby/setup-ruby action to v1.249.0 by @renovate[bot] in #630
- Update ruby/setup-ruby action to v1.252.0 by @renovate[bot] in #631
- Update ruby/setup-ruby action to v1.253.0 by @renovate[bot] in #632
- Update ruby/setup-ruby action to v1.254.0 by @renovate[bot] in #633
- Update dependency rack to v3.2.0 by @renovate[bot] in #634
- Update dependency rubocop to v1.79.1 by @renovate[bot] in #635
- Update dependency rubocop to v1.79.2 by @renovate[bot] in #636
Other Changes
- Try to use github pages instead of rubydoc.info by @Yang-33 in #588
- Add migration guide of v1 to v2 by @mokuzon in #587
- Update dependency rbs to v3.9.3 by @Yang-33 in #589
- Deploy docs on release by @Yang-33 in #591
- Clean up test fixtures for v1 code and dev dependency by @Yang-33 in #593
- Replace old url with new url, show client urls by @Yang-33 in #592
- Move up example link in README by @Yang-33 in #594
- Fix namespaces in migration guide by @Yang-33 in #596
- Improve issue triage and issue templates by @Yang-33 in #597
- Ignore unused gems for rbs by @Yang-33 in #601
- Improve contribution guide by @Yang-33 in #595
- Fix pebble for array-type query parameter by @habara-k in #611
New Contributors
Full Changelog: v2.0.0...v2.1.0