Connect to AI
Billing API Key

Chargebee REST API

Subscription billing and revenue management API

Chargebee is a subscription billing and revenue management platform that automates recurring billing, invoicing, and subscription lifecycle management. Developers use it to build flexible subscription models, handle complex pricing scenarios, manage customer billing, process payments across multiple gateways, and generate revenue analytics for SaaS and subscription-based businesses.

Base URL https://{site}.chargebee.com/api/v2

API Endpoints

MethodEndpointDescription
POST/customersCreate a new customer with billing details and contact information
GET/customers/{customer_id}Retrieve detailed information about a specific customer
POST/subscriptionsCreate a new subscription for a customer with plan and billing cycle
GET/subscriptions/{subscription_id}Retrieve subscription details including status, billing period, and items
POST/subscriptions/{subscription_id}/cancelCancel a subscription immediately or at end of billing period
POST/invoices/{invoice_id}/collect_paymentAttempt to collect payment for an invoice using stored payment method
GET/invoicesList all invoices with optional filters for customer, status, and date range
POST/payment_sourcesAdd a payment source (card, bank account) to a customer
GET/plansRetrieve all subscription plans with pricing and billing frequency
POST/subscriptions/{subscription_id}/change_term_endModify the subscription term end date for billing adjustments
GET/credit_notesList credit notes issued for refunds, adjustments, or account credits
POST/hosted_pages/checkout_newGenerate a hosted checkout page for customer subscription signup
GET/eventsRetrieve webhook events for subscription and billing changes
POST/unbilled_chargesAdd one-time or usage-based charges to a customer's upcoming invoice
GET/transactionsList payment transactions with gateway responses and settlement status

Code Examples

curl https://yoursite.chargebee.com/api/v2/customers \
  -u your_api_key: \
  -H 'Content-Type: application/json' \
  -d '{
    "first_name": "John",
    "last_name": "Doe",
    "email": "john.doe@example.com",
    "billing_address": {
      "line1": "123 Main St",
      "city": "San Francisco",
      "state": "CA",
      "zip": "94105",
      "country": "US"
    }
  }'

Use Chargebee from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for Chargebee. Paste your Chargebee API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Chargebee directly with your credentials — no local install, works on mobile.

create_subscription Create and manage customer subscriptions with plans, pricing, and billing cycles automatically
manage_billing Handle invoicing, payment collection, refunds, and credit note generation for customers
track_revenue Retrieve revenue metrics, MRR, ARR, churn data, and subscription analytics for reporting
handle_dunning Manage failed payment retries, customer notifications, and subscription suspension workflows
sync_customer_data Synchronize customer information, payment methods, and subscription status across systems

Connect in 60 seconds

Paste your Chargebee key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect Chargebee to your AI →

Related APIs