Maton

Chargebee

Access the Chargebee API with managed OAuth authentication. Manage subscriptions, customers, invoices, and billing workflows.

Reference

List Customers

GET /chargebee/api/v2/customers?limit=10

Get Customer

GET /chargebee/api/v2/customers/{customerId}

Create Customer

POST /chargebee/api/v2/customers
Content-Type: application/x-www-form-urlencoded

first_name=John&last_name=Doe&email=john@example.com

Update Customer

POST /chargebee/api/v2/customers/{customerId}
Content-Type: application/x-www-form-urlencoded

first_name=Jane

List Subscriptions

GET /chargebee/api/v2/subscriptions?limit=10

Get Subscription

GET /chargebee/api/v2/subscriptions/{subscriptionId}

Create Subscription

POST /chargebee/api/v2/subscriptions
Content-Type: application/x-www-form-urlencoded

plan_id=basic-plan&customer[email]=john@example.com&customer[first_name]=John

Cancel Subscription

POST /chargebee/api/v2/subscriptions/{subscriptionId}/cancel
Content-Type: application/x-www-form-urlencoded

end_of_term=true

List Item Prices

GET /chargebee/api/v2/item_prices?limit=10

List Items

GET /chargebee/api/v2/items?limit=10

List Invoices

GET /chargebee/api/v2/invoices?limit=10

Download Invoice PDF

POST /chargebee/api/v2/invoices/{invoiceId}/pdf

Checkout New Subscription

POST /chargebee/api/v2/hosted_pages/checkout_new_for_items
Content-Type: application/x-www-form-urlencoded

subscription[plan_id]=basic-plan&customer[email]=john@example.com

Create Portal Session

POST /chargebee/api/v2/portal_sessions
Content-Type: application/x-www-form-urlencoded

customer[id]=cust_123

Resources

On this page