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

# Chargebee billing

> Observe Chargebee billing resources and write subscriptions.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md). Use a separate `providerEndpoint` and mount per mode. Bind the origin `https://SITE.chargebee.com` and seal the Base64 value of the read-only API key followed by a colon as `Authorization` header auth with prefix `Basic `. Pass the same protected label to the receiver binder and as the app's `data`.

| Provider mode | Path |
| - | - |
| `chargebee.subscriptions.observations` | `/api/v2/subscriptions` |
| `chargebee.invoices.observations` | `/api/v2/invoices` |
| `chargebee.transactions.observations` | `/api/v2/transactions` |

Initialize with `{ profile: { mode: "provider", provider, limit: 20 } }`. Each source unwraps the named entity, keys its JSON by ID, and retains `next_offset` for the next page. An absent offset ends the live sweep. The next sweep restarts from the first page. Missing records remain landed. Each response supports up to 100 records and 36 KiB and requires the bundled parser artifact.

## Write subscriptions

Use `providerWriter` with `chargebee.subscriptions.create-update` in `receivers.writers[mode]`. Use a write-scoped Basic credential, the same protected label, and `scope: ["CUSTOMER_ID"]` for the Product Catalog 2.0 create route `/api/v2/customers/CUSTOMER_ID/subscription_for_items`. Updates target the command's exact subscription ID at `/api/v2/subscriptions/ID/update_for_items`. The customer scope applies to creation.

Supply scalar fields with Chargebee's bracket notation, such as `"subscription_items[item_price_id][0]"`, and use an existing payment source. The request and encoded form each allow up to 24 KiB. HTTP 200 must return a subscription ID, and updates require the returned ID to match the target. The unkeyed contract uses the exact caller command key and preserves unknown outcomes. Commands perform no deletes and carry no read cursor.

[Chargebee list operations](https://apidocs.chargebee.com/docs/api/list-ops) · [Create a subscription](https://apidocs.chargebee.com/docs/api/subscriptions/create-subscription-for-items)


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