> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neoagent.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Chargebee API

> Answer billing questions, report on unpaid invoices, and change subscriptions, invoices and payments in your Chargebee site as you allow

The Chargebee API tool gives Neo agents access to your Chargebee site through Chargebee's API. The common uses are a client's billing question on a ticket, a seat change, and a report on unpaid and overdue invoices: the agent finds the client's customer, reads their subscriptions and invoices, and answers with each invoice's status, amount due, due date and PDF link, or changes the subscription after showing what it will cost.

> [!NOTE]
>
> Automatically enabled when you configure Chargebee permissions in your agent workflow.

## What It Does

* Find a client's subscriptions, invoices, credit notes, transactions and balances
* Report on unpaid and overdue invoices with totals per client and currency
* Preview the cost of a subscription change, then change quantities and add-ons, pause, resume, cancel or reactivate
* Raise a one-off charge, a charge on the next invoice or a credit note; void or write off an invoice
* Record a payment made outside Chargebee, collect a payment from the card on file, or refund one
* Update a client's billing contacts and address, and send them a link to pay or update their card
* Read and change the product catalog, coupons and site settings, when you turn those areas on

## Permission Groups

| Group | Covers |
| - | - |
| **Customers & Contacts** | Customers, contacts, billing address, billing date, hierarchy, balances and notes |
| **Subscriptions & Usage** | Subscriptions, items, scheduled changes, contract terms, discounts, ramps, usage, alerts, credit ledgers and gifts |
| **Invoices, Credit Notes & Quotes** | Invoices, credit notes, quotes, estimates, orders, e-invoices, unbilled charges and payment schedules |
| **Billing Emails** | Sending a customer an invoice, credit note, e-invoice or payment request, and any write that sets an email address or who gets billing emails |
| **Payments & Credits** | Transactions, collecting, recording and refunding payments, applying credits, promotional credits, disputes, payment promises and gateway logs |
| **Payment Methods** | Cards, bank accounts and payment sources, and any write that sets one |
| **Product Catalog & Coupons** | Items, prices, plans, add-ons, features, entitlements, currencies, coupons |
| **Checkout & Payment Links** | Hosted checkout and payment pages, pricing pages and Retention offers |
| **Site Settings & Events** | Configuration, business entities and rules, custom fields, webhook endpoints, the event log, tax rules and the time machine |

Each group has an access level: **Disabled**, **Read Only**, or **Read/Write**; Billing Emails offers only Disabled and Read/Write. The estimates and PDF links only read, so Read Only covers them.

## Access Profiles

> [accordion] Read Only
>
> Every group Read Only except Billing Emails and Payment Methods, which are Disabled. The agent reads and previews, and never changes anything.

> [accordion] Helpdesk
>
> Customers & Contacts, Invoices, Credit Notes & Quotes, Billing Emails, and Checkout & Payment Links at Read/Write, every other group Read Only, Payment Methods Disabled. Every write in the three Read/Write groups requires technician approval.

> [accordion] IT Admin
>
> Every group at Read/Write. Payments & Credits, Payment Methods, Billing Emails, Product Catalog & Coupons, and Site Settings & Events writes require technician approval.

> [accordion] Full Automation
>
> Every supported write runs autonomously, payments, refunds and payment methods included. Deleting a customer, clearing its personal data, merging two customers, and creating or changing a webhook endpoint still require approval.

## Safety Controls

| Control | Behavior |
| - | - |
| **Technician-in-the-Loop** | Require human approval for writes, configurable per group |
| **Always asks** | Deleting a customer, clearing its personal data, merging two customers, and creating or changing a webhook endpoint (which sends every event of the site to its address) always require approval |
| **Collections and refunds** | A write that turns on automatic collection (`auto_collection=on`), or a subscription resume or cancellation whose body schedules a payment collection or a refund, needs Payments & Credits at Read/Write as well, and requires approval when either group does |
| **Billing emails** | A write whose body sets an email address or who gets billing emails needs Billing Emails at Read/Write as well as its own group, and requires approval when either group does: a changed billing email sends a client's invoices there from then on |
| **Payment methods** | A write whose body sets a card, a bank account or a payment token needs Payment Methods at Read/Write as well as its own group, and requires approval when either group does |
| **No card numbers** | A full card number or security code is refused anywhere in a body; the client enters a card on a hosted page |
| **Ticket scope** | On a ticket, a call reaches only the customers the ticket's company is mapped to, and a call on one subscription, invoice or other record runs only after Neo confirms the record is theirs |
| **Documented operations only** | Every call must match an operation in Chargebee's published OpenAPI definitions, and any other is refused |
| **Refused** | Exports, customer portal sign-in links and the test site's Start afresh |

## How to Configure

**1. Connect Chargebee**

Save your site name and API key in the Neo Dashboard under the **Accounting** integrations category. See [Connecting Chargebee to Neo](https://docs.neoagent.io/integrations/chargebee/connecting-to-neo.md).

**2. Configure permissions**

On the agent's **Tools & Settings** tab, click **Accounting** and expand the **Chargebee** block. Pick one of its **Presets**, which are the access profiles above, or set each permission group yourself.

**3. Set approval requirements**

Decide per permission group whether writes need a technician.

> [!TIP]
>
> To answer clients' billing questions and report on unpaid invoices, **Read Only** is enough. For seat changes on their own, use **IT Admin**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.