Releases: line/line-bot-sdk-java
v9.10.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
- Add Coupon API Support to Messaging API by @github-actions[bot] in #1684
Dependency updates
- chore(deps): update dependency gradle to v8.14.2 by @renovate[bot] in #1642
- fix(deps): update junit5 monorepo by @renovate[bot] in #1643
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.2.0 by @renovate[bot] in #1644
- fix(deps): update dependency org.wiremock:wiremock-standalone to v3.13.1 by @renovate[bot] in #1645
- fix(deps): update jackson monorepo to v2.19.1 by @renovate[bot] in #1646
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.5.1 by @renovate[bot] in #1648
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.5.2 by @renovate[bot] in #1649
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.5.3 by @renovate[bot] in #1650
- fix(deps): update dependency org.junit.platform:junit-platform-launcher to v1.13.2 by @renovate[bot] in #1652
- fix(deps): update junit to v5.13.2 by @renovate[bot] in #1653
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.2.1 by @renovate[bot] in #1654
- chore(deps): update dependency org.openapitools:openapi-generator to v7.14.0 by @renovate[bot] in #1655
- chore(deps): update dependency org.openapitools:openapi-generator-gradle-plugin to v7.14.0 by @renovate[bot] in #1656
- fix(deps): update openapi-generator-version to v7.14.0 by @renovate[bot] in #1657
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.3.1 by @renovate[bot] in #1659
- chore(deps): update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.0 by @renovate[bot] in #1660
- fix(deps): update dependency io.github.littleproxy:littleproxy to v2.4.3 by @renovate[bot] in #1661
- chore(deps): update dependency gradle to v8.14.3 by @renovate[bot] in #1663
- fix(deps): update junit-framework monorepo by @renovate[bot] in #1664
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.2.2 by @renovate[bot] in #1665
- chore(deps): update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.6.1 by @renovate[bot] in #1667
- fix(deps): update jackson to v2.19.2 by @renovate[bot] in #1669
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.4 by @renovate[bot] in #1670
- fix(deps): update junit-framework monorepo by @renovate[bot] in #1671
- fix(deps): update dependency com.ocadotechnology.gembus:test-arranger to v1.6.4.1 by @renovate[bot] in #1672
- fix(deps): update okhttp monorepo to v5 (major) by @renovate[bot] in #1662
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.5.4 by @renovate[bot] in #1673
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.2.3 by @renovate[bot] in #1682
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.4.1 by @renovate[bot] in #1683
Other Changes
- Fix pebble for array-type query parameter by @habara-k in #1629
- Add option to skip signature verification by @habara-k in #1635
- Update Kotlin version to 2.2.0 and adjust compiler options by @eucyt in #1658
- Update CONTRIBUTING.md to enhance development guidelines by @eucyt in #1666
- OSSRH is deprecated by @habara-k in #1674
Full Changelog: v9.8.0...v9.10.0
v9.8.0 Allow setting a custom EventListener in ApiClientBuilder
What's Changed
With this release, SDK users will be able to set a custom EventListener to suit their needs when creating the API client. For Example, to enhance the observability of API calls in your system, you can leverage the OkHttpMetricsEventListener
provided by Micrometer
to record HTTP request metrics:
OkHttpMetricsEventListener okHttpMetricsEventListener = OkHttpMetricsEventListener
.builder(registry, "okhttp.requests")
.build();
MessagingApiClient messagingApiClient = MessagingApiClient.builder("your access token")
.setEventListener(okHttpMetricsEventListener)
.build();
- Allow setting a custom EventListener in ApiClientBuilder by @kabigon-sung in #1621
line-openapi updates
- chore(deps): update line-openapi digest to 3e09054 by @renovate in #1619
- chore(deps): update line-openapi digest to 69a12e8 by @renovate in #1627
- chore(deps): update line-openapi digest to 92f9320 by @renovate in #1636
Dependency updates
- fix(deps): update dependency org.wiremock:wiremock-standalone to v3.13.0 by @renovate in #1609
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.5 by @renovate in #1611
- fix(deps): update jackson monorepo to v2.19.0 by @renovate in #1612
- chore(deps): update dependency gradle to v8.14 by @renovate in #1614
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.10 by @renovate in #1615
- chore(deps): update dependency org.openapitools:openapi-generator to v7.13.0 by @renovate in #1616
- chore(deps): update dependency org.openapitools:openapi-generator-gradle-plugin to v7.13.0 by @renovate in #1617
- fix(deps): update openapi-generator-version to v7.13.0 by @renovate in #1618
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.11 by @renovate in #1620
- fix(deps): update dependency io.github.littleproxy:littleproxy to v2.4.2 by @renovate in #1622
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.3 by @renovate in #1623
- chore(deps): update kotlin monorepo to v2.1.21 by @renovate in #1624
- fix(deps): update retrofit monorepo to v3 (major) by @renovate in #1626
- fix(deps): update dependency org.mockito:mockito-core to v5.18.0 by @renovate in #1628
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.12 by @renovate in #1630
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.6 by @renovate in #1632
- chore(deps): update dependency gradle to v8.14.1 by @renovate in #1631
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.13 by @renovate in #1637
- fix(deps): update junit5 monorepo by @renovate in #1639
- chore(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.1 by @renovate in #1640
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.5.0 by @renovate in #1633
Other Changes
- Improve issue triage and issue template by @eucyt in #1634
- Skip specific test generation by @habara-k in #1638
New Contributors
- @kabigon-sung made their first contribution in #1621
Full Changelog: v9.7.1...v9.8.0
This release is prepared by @eucyt
v9.7.1 Fix type of CreateAudienceGroupResponse#expireTimestamp
What's Changed
Type for CreateAudienceGroupResponse#expireTimestamp
is not float or double, but integer actually. This release fixes type as bugfix.
- Fix type of expireTimestamp by @github-actions in #1608
(original PR is line/line-openapi#106)
line-openapi updates
Dependency updates
Other Changes
- Replace dependency xyz.rogfam:littleproxy with io.github.littleproxy:littleproxy 2.4.0 by @Yang-33 in #1605
Full Changelog: v9.7.0...v9.7.1
This release is prepared by @Yang-33
v9.7.0 Add includesOwnedAudienceGroups Parameter to Audience API
What's Changed
- Add includesOwnedAudienceGroups Parameter to Audience API by @github-actions in #1602
Enhancement to Shared Audiences API
Support a new query parameter includesOwnedAudienceGroups
to the client.getSharedAudienceGroups
(GET /v2/bot/audienceGroup/shared/list
). This enhancement allows users to specify whether to include audience groups owned by the user in the response. It is especially useful for users who manage both shared and owned audience groups.
Specifications
- Added the
includesOwnedAudienceGroups
parameter to the API endpoint.- Type: Boolean
- Default: false
- Description:
true
: Include audience groups owned by the LINE Official Account Manager.false
: Respond only with audience groups shared by Business Manager.
Remove deprecated API
- Removed the
/v2/bot/audienceGroup/{audienceGroupId}/activate
and/v2/bot/audienceGroup/authorityLevel
endpoints.
Documents and Reference
For more information, please refer to the links provided above.
(original PR is line/line-openapi#105)
line-openapi updates
- chore(deps): update line-openapi digest to 954b163 by @renovate in #1586
- chore(deps): update line-openapi digest to 0e669d0 by @renovate in #1590
- chore(deps): update line-openapi digest to 31fa3c7 by @renovate in #1593
- chore(deps): update line-openapi digest to 2f38058 by @renovate in #1597
Dependency updates
- chore(deps): update suzuki-shunsuke/pinact-action action to v0.2.2 by @renovate in #1583
- chore(deps): update suzuki-shunsuke/pinact-action action to v1 by @renovate in #1584
- chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.3 by @renovate in #1585
- fix(deps): update dependency io.pebbletemplates:pebble to v3.2.4 by @renovate in #1587
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.1 by @renovate in #1589
- fix(deps): update dependency org.mockito:mockito-core to v5.17.0 by @renovate in #1591
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.2 by @renovate in #1595
- chore(deps): update actions/setup-java action to v4.7.1 by @renovate in #1596
- chore(deps): update actions/setup-node action to v4.4.0 by @renovate in #1599
Other Changes
- Skip creating PR when only git submodule is updated by @Yang-33 in #1582
- Remove deprecated link by @eucyt in #1588
- Require more jobs in merge queue by @Yang-33 in #1592
- Do not create another auto PR when a job runs for PR or merge queue by @Yang-33 in #1598
- Remove audience group authority level test for cross targeting sunset by @asari-mtr in #1600
- Remove unused audience group activation and authority level tests by @asari-mtr in #1601
New Contributors
- @asari-mtr made their first contribution in #1600
Full Changelog: v9.6.1...v9.7.0
This release is prepared by @eucyt
v9.6.1 Support new Membership API and Webhook
What's Changed
Note this patch is not related to sdk users. This release is just for our test. See https://github.com/line/line-bot-sdk-java/releases/tag/v9.6.0 about new features.
line-openapi updates
- chore(deps): update line-openapi digest to 0af4f53 by @renovate in #1569
- chore(deps): update line-openapi digest to 9dec0f8 by @renovate in #1571
- chore(deps): update line-openapi digest to cc542e3 by @renovate in #1578
Dependency updates
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.5 by @renovate in #1549
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.3 by @renovate in #1550
- chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.14.0 by @renovate in #1551
- chore(deps): update dependency gradle to v8.13 by @renovate in #1553
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.17 by @renovate in #1554
- fix(deps): update slf4j monorepo to v2.0.17 by @renovate in #1555
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.0.2 by @renovate in #1557
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.6 by @renovate in #1558
- chore(deps): update dependency org.openapitools:openapi-generator to v7.12.0 by @renovate in #1559
- chore(deps): update dependency org.openapitools:openapi-generator-gradle-plugin to v7.12.0 by @renovate in #1560
- fix(deps): update openapi-generator-version to v7.12.0 by @renovate in #1562
- fix(deps): update jackson monorepo to v2.18.3 by @renovate in #1563
- fix(deps): update jackson to v2.18.3 by @renovate in #1564
- fix(deps): update mockito monorepo to v5.16.0 by @renovate in #1565
- fix(deps): update dependency org.wiremock:wiremock-standalone to v3.12.1 by @renovate in #1566
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.17 by @renovate in #1556
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.7 by @renovate in #1568
- fix(deps): update mockito monorepo to v5.16.1 by @renovate in #1572
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.18 by @renovate in #1573
- chore(deps): update kotlin monorepo to v2.1.20 by @renovate in #1574
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.4 by @renovate in #1575
Other Changes
- Auto generate unknown fallback by @habara-k in #1561
- Add EoL and new release reminder by @Yang-33 in #1570
- Pin commit hash of github actions to avoid supply chain attacks by @Yang-33 in #1576
- Grant minimum permissions to github acitons workflow jobs by @Yang-33 in #1577
- Migrate renovate config by @Yang-33 in #1581
Full Changelog: v9.6.0...v9.6.1
This release is prepared by @Yang-33
v9.6.0 Support new Membership API and Webhook
What's Changed
- Support new Membership API and Webhook by @github-actions in #1548
Support new Membership API and Webhook
We have implemented and supported new API and Webhook about Membership.
API to get a list of users who joined the membership
You can obtain a list of user IDs for users who have joined the membership of your LINE Official Account by calling client.getJoinedMembershipUsers(...)
.
Documents: https://developers.line.biz/en/reference/messaging-api/#get-membership-user-ids
Membership Webhook
We have introduced new Webhook events MembershipEvent
that indicates that a user has joined, left or renewed a membership of your LINE Official Account.
Documents: https://developers.line.biz/en/reference/messaging-api/#membership-event
For more details
For more details, check out the announcement: https://developers.line.biz/en/news/2025/02/13/membership-api/
(original PR is line/line-openapi#86)
Dependency updates
Full Changelog: v9.5.0...v9.6.0
This release is prepared by @eucyt
v9.5.0 Support API of Shared Audiences in Business Manager
What's Changed
Add /v2/bot/audienceGroup/shared path by @github-actions in #1546
Shared Audiences in Business Manager API Support
We have added and supported new API endpoints related to Shared Audiences in Business Manager.
API to Get Shared Audience Information
You can obtain detailed information about a specific audience shared in Business Manager by calling the endpoint:
- GET
https://api.line.me/v2/bot/audienceGroup/shared/{audienceGroupId}
API to Get List of Shared Audiences
You can acquire a list of audiences shared in Business Manager using the following endpoint:
- GET
https://api.line.me/v2/bot/audienceGroup/shared/list
By using the "Get Shared Audience Information" endpoint, you can retrieve more detailed data about each audience.
Documents and Reference
- News Announcement: Shared Audience Feature Release
- API Reference:
- Documentation on Audience Sharing: Using Audience Sharing
For more information, please refer to the links provided above.
(original PR is line/line-openapi#85)
line-openapi updates
Dependency updates
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.2 by @renovate in #1538
- chore(deps): update dependency gradle to v8.12.1 by @renovate in #1539
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.3 by @renovate in #1540
- chore(deps): update kotlin monorepo to v2.1.10 by @renovate in #1541
- fix(deps): update dependency org.wiremock:wiremock-standalone to v3.11.0 by @renovate in #1542
- fix(deps): update dependency io.pebbletemplates:pebble to v3.2.3 by @renovate in #1543
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.4 by @renovate in #1545
Full Changelog: v9.4.3...v9.5.0
This release is prepared by @eucyt
v9.4.3 Remove obsolete GET /v2/bot/message/delivery/ad_phone
What's Changed
- Retire GET /v2/bot/message/delivery/ad_phone by @github-actions in #1535
GET /v2/bot/message/delivery/ad_phone
was sunset.
This change removes it as it's no longer necessary to include it in line-openapi.
(original PR is line/line-openapi#82)
line-openapi updates
- Retire GET /v2/bot/message/delivery/ad_phone by @github-actions in #1535
Dependency updates
- chore(deps): update dependency org.openapitools:openapi-generator to v7.11.0 by @renovate in #1532
- fix(deps): update openapi-generator-version to v7.11.0 by @renovate in #1534
- chore(deps): update dependency org.openapitools:openapi-generator-gradle-plugin to v7.11.0 by @renovate in #1533
Other Changes
- Fix renovate config for gitsubmodule by @Yang-33 in #1531
- Fix double-quote handling in release creation workflow by @Yang-33 in #1536
Full Changelog: v9.4.2...v9.4.3
v9.4.2 Remove obsolete feature: Audience Match
What's Changed
- Remove obsolete feature: Audience Match by @github-actions in #1528
The Audience Match feature (/bot/ad/multicast/phone) was sunset in October 2023. This change removes it as it's no longer necessary to include it in line-openapi.
(original PR is line/line-openapi#80)
Dependency updates
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.1 by @renovate in #1525
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.2 by @renovate in #1526
- fix(deps): update dependency org.assertj:assertj-core to v3.27.3 by @renovate in #1527
- chore(deps): update line-openapi digest to 5ae51b6 by @renovate in #1529
Other Changes
- Limit the timing of git submodule updates by renovate to avoid disrupting work during working hours by @Yang-33 in #1524
Full Changelog: v9.4.1...v9.4.2
This release is prepared by @Yang-33
v9.4.1 Add new errorCode 4 of NarrowcastProgressResponse
What's Changed
A new value in "NarrowcastProgressResponse#errrorCode" was defined and comments have been added to the SDK.
https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status
- Add new errorCode 4 of NarrowcastProgressResponse by @github-actions in #1519
Dependency updates
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.27 by @renovate in #1502
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.1 by @renovate in #1503
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.14 by @renovate in #1504
- fix(deps): update dependency org.assertj:assertj-core to v3.27.0 by @renovate in #1505
- chore(deps): update dependency gradle to v8.12 by @renovate in #1506
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v9.48 by @renovate in #1507
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.15 by @renovate in #1508
- fix(deps): update dependency org.assertj:assertj-core to v3.27.1 by @renovate in #1510
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10 by @renovate in #1511
- fix(deps): update mockito monorepo to v5.15.2 by @renovate in #1512
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.0.1 by @renovate in #1513
- fix(deps): update dependency org.assertj:assertj-core to v3.27.2 by @renovate in #1515
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.16 by @renovate in #1516
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.28 by @renovate in #1517
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.0 by @renovate in #1518
- chore(deps): update line-openapi digest to 491e118 by @renovate in #1520
Other Changes
Full Changelog: v9.4.0...v9.4.1
This release is prepared by @eucyt