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 #808
- chore(deps): update line-openapi digest to 69a12e8 by @renovate[bot] in #811
- chore(deps): update line-openapi digest to 92f9320 by @renovate[bot] in #813
- Add Coupon API Support to Messaging API by @github-actions[bot] in #832
Dependency updates
- chore(deps): update actions/download-artifact action to v4.3.0 by @renovate[bot] in #805
- fix(deps): update dependency org.openapitools:openapi-generator to v7.13.0 by @renovate[bot] in #806
- chore(deps): update dependency tox to v4.26.0 by @renovate[bot] in #809
- chore(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.1 by @renovate[bot] in #815
- chore(deps): update dependency pytest to v8.4.0 by @renovate[bot] in #814
- chore(deps): update dependency pytest-cov to v6.2.0 by @renovate[bot] in #816
- chore(deps): update dependency pytest-cov to v6.2.1 by @renovate[bot] in #817
- chore(deps): update dependency tox to v4.27.0 by @renovate[bot] in #818
- chore(deps): update dependency pytest to v8.4.1 by @renovate[bot] in #819
- fix(deps): update dependency org.openapitools:openapi-generator to v7.14.0 by @renovate[bot] in #820
- chore(deps): update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.0 by @renovate[bot] in #822
- chore(deps): update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.1 by @renovate[bot] in #826
- chore(deps): update dependency pytest-asyncio to v1.1.0 by @renovate[bot] in #827
- chore(deps): update dependency tox to v4.28.0 by @renovate[bot] in #828
- chore(deps): update dependency tox to v4.28.1 by @renovate[bot] in #829
- chore(deps): update dependency tox to v4.28.2 by @renovate[bot] in #830
- chore(deps): update dependency tox to v4.28.3 by @renovate[bot] in #831
- chore(deps): update dependency tox to v4.28.4 by @renovate[bot] in #833
- chore(deps): update actions/download-artifact action to v5 by @renovate[bot] in #834
Other Changes
- Improve issue triage and issue template by @eucyt in #812
- Update CONTRIBUTING.md to enhance development guidelines by @eucyt in #824
Full Changelog: v3.17.1...v3.18.0