Add Coupon API Support to Messaging API #1684
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
line/line-openapi#111
Add Coupon API Support to Messaging API
We've supported a set of new APIs that make it possible to create, manage, and deliver coupons via the Messaging API. These features provide functionality similar to what's available through the LINE Official Account Manager interface (see here), allowing developers to integrate coupon-related workflows into their bots more flexibly.
For more details, see the official announcement:
LINE Developers News — Coupon API Released (2025/08/06)
New API Endpoints
POST /v2/bot/coupon
Create a new coupon.
The request includes metadata such as the coupon title, description, image URLs, validity period, reward details(e.g. 1000yen discount), acquisition requirements, time zone, etc.
GET /v2/bot/coupon
Retrieve a list of coupons associated with the bot.
GET /v2/bot/coupon/{couponId}
Fetch detailed information about a specific coupon.
PUT /v2/bot/coupon/{couponId}
Mark a coupon as expired.
Messaging API Update
Message Object now supports a new type:
type=coupon
This allows developers to send coupons directly to users via the Messaging API, similar to sending text, image, or template messages.
Example Requests
Create a Coupon
Request body
Response
Send a Coupon Message