Java API Client for integrating with ChargeBee
Failed to load latest commit information.
dist * * * Oct 27, 2016
src * * * Oct 27, 2016
.gitignore initial version Apr 5, 2012 * * * Oct 27, 2016
LICENSE ** APIs added**: Feb 25, 2016 * * * Apr 11, 2016
pom.xml [maven-release-plugin] prepare for next development iteration Oct 27, 2016

Chargebee Java Client Library - API V2

The java library for integrating with Chargebee Recurring Billing and Subscription Management solution.

Chargebee now supports two API versions - V1 and V2, of which V2 is the latest release and all future developments will happen in V2.

This library is for our API version V2. The library for V1 can be found in chargebee-v1 branch.


Maven users

Add the below dependency to your pom.xml:


To get the latest jar

ChargeBee java jar is distributed as part of the release under the dist directory. Just checkout the latest version for 2.x.x by git checkout [latest 2.x.x release tag]


Build the jar by running maven as follows in latest release tag for 2.x.x:

git checkout [latest 2.x.x release tag]
mvn clean package


API Reference


You can also copy the below code snippet from our API Reference documentation. We have provided downloadable code for each API operation.

import com.chargebee.*;
import com.chargebee.models.*;
import com.chargebee.models.enums.*;

public class Sample{

  public static void main(String args[]) throws IOException{
    Result result = Subscription.create()
    Subscription subscription = result.subscription();
    Customer customer = result.customer();
    Card card = result.card();


See the LICENSE file.