Chargebee MCP server
546 operations0 webhooks
Subscription billing with Chargebee: customers, subscriptions, items and prices, invoices, credit notes, payments, coupons, quotes, estimates, hosted pages, usage, entitlements and exports, on Product Catalog 2.0 and 1.0 sites (546 operations).
Try Chargebee with your agent
Connect Chargebee, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Chargebee on my account, then run one read-only example and show me the result.
Chargebee tools and triggers
Tools are what your agent can do in Chargebee through Corsair's MCP server. Triggers are the Chargebee events a routine can start from.
Subscriptions
- Add Charge At Term EndDestructive
Add charge at term end. Adds a one time charge to the subscription which will be added to the invoice generated at the end of the current term. If there are any applicable coupons in the subscription, an appropriate discount will be applied. To collect a charge immediately, use this API.
subscriptions.addChargeAtTermEnd
- Advance Invoice EstimateRead-only
Advance invoice estimate. This API is used to generate an invoice estimate for preview. Estimate details include the number of billing cycles to be invoiced in advance, the number of billing cycles in one interval, advance invoicing schedules, and so on.
subscriptions.advanceInvoiceEstimate
- CancelDestructive
Cancel a subscription. Cancelling a subscription will move the subscription from its current state to Cancelled, and will stop all recurring actions. You could schedule the cancellation by passing end_of_term parameter as true . Product Catalog 1.0 sites only.
subscriptions.cancel
- Cancel For ItemsDestructive
Cancel a subscription. Cancels the specified subscription. ### Prerequisites \& Constraints * The subscription status must not be cancelled or transferred. * If the subscription has a contract term, specify contract_term_cancel_option instead of cancel_option.
subscriptions.cancelForItems
- Cancel Subscription EstimateRead-only
Cancel subscription estimate. Generates an estimate for the 'cancel subscription' operation. This is similar to the Cancel a subscription API, but the subscription will not be cancelled. Only an estimate for this operation is created. In the response, * estimate.subscription_estimate has the subscription details. Product Catalog 1.0 sites only.
subscriptions.cancelSubscriptionEstimate
- Cancel Subscription For Items EstimateRead-only
Cancel subscription for items estimate. Creates an estimate for canceling the specified subscription.
subscriptions.cancelSubscriptionForItemsEstimate
- Change Term EndDestructive
Change term end. Use this endpoint to adjust when a subscription's current term or trial ends without altering the plan or billing frequency. It is helpful when you need to align renewals to a specific calendar date or extend a trial.
subscriptions.changeTermEnd
- Change Term End EstimateRead-only
Subscription change term end estimate. Generates an estimate for the 'change term end' operation. This is similar to the Change term end API but the subscription's term end will not be changed, only an estimate for this operation is created. This is applicable only for subscriptions in 'in-trial', 'active' and 'non-renewing' states.
subscriptions.changeTermEndEstimate
- Charge Addon At Term EndDestructive
Charge addon at term end. Adds a "non-recurring addon" charge to a subscription which will be added to the invoice generated at the end of the current term. If there are any applicable coupons in the subscription, an appropriate discount will be applied. Product Catalog 1.0 sites only.
subscriptions.chargeAddonAtTermEnd
- Charge Future RenewalsDestructive
Charge future renewals. Creates a single advance invoice or an advance invoicing schedule for a subscription. Use this operation to bill future renewals in advance, enabling customers to prepay for upcoming billing cycles. ### Prerequisites \& Constraints * The Advance Invoicing feature must be enabled on the site.
subscriptions.chargeFutureRenewals
- CreateDestructive
Create a subscription. Note: This operation optionally supports 3DS verification flow. To achieve the same, create the Payment Intent and pass it as input parameter to this API. Creates a new subscription along with the customer. Product Catalog 1.0 sites only.
subscriptions.create
- Create RampDestructive
Create a subscription ramp. Creates a ramp for a subscription. Note * Subscription status : You cannot create ramps for subscriptions in the paused or cancelled status. * Advance invoice : You cannot create ramps for subscriptions that have an advance invoice schedule.
subscriptions.createRamp
- Create UsageDestructive
Advanced Usage-Based Billing For high-scale usage ingestion, use Advanced Usage-Based Billing with the Usage Events API. The Usage Events API supports schemaless event ingestion at scale, including individual events, batch ingestion, and usage file ingestion.
subscriptions.createUsage
- DeleteDestructive
Delete a subscription. Deletes a specified subscription. This operation schedules the subscription resource for deletion, and it is permanently deleted after a few minutes. If you wish to retain the subscription data but stop further renewals, consider canceling or pausing the subscription instead.
subscriptions.delete
- Delete UsageDestructive
Advanced Usage-Based Billing For high-scale usage ingestion, use Advanced Usage-Based Billing with the Usage Events API. The Usage Events API supports schemaless event ingestion at scale, including individual events, batch ingestion, and usage file ingestion. Deletes a usage record.
subscriptions.deleteUsage
- Edit Advance Invoice ScheduleWrite
Edit advance invoice schedule. Caution This API will return an error when multi-frequency billing is enabled. Modifies the advance invoicing schedule for a subscription.
subscriptions.editAdvanceInvoiceSchedule
- GetRead-only
Retrieve a subscription. Retrieves a subscription.
subscriptions.get
- Get Advance Invoice ScheduleRead-only
Retrieve advance invoice. Caution * This API will return an error when multi-frequency billing is enabled. Retrieves the *advance_invoice_schedule* for a subscription. Note that this endpoint is only applicable for *schedule_type = specific_dates* or fixed_intervals.
subscriptions.getAdvanceInvoiceSchedule
- Get Scheduled ChangesRead-only
Scheduled_changes a subscription_scheduled_change.
subscriptions.getScheduledChanges
- Get UsageRead-only
Advanced Usage-Based Billing For high-scale usage ingestion, use Advanced Usage-Based Billing with the Usage Events API. The Usage Events API supports schemaless event ingestion at scale, including individual events, batch ingestion, and usage file ingestion.
subscriptions.getUsage
- Get Usage ChargesRead-only
Retrieve usage charges for a subscription. Returns the current, unbilled usage charges for the metered features on a subscription. This endpoint returns usage for each feature's current usage period.
subscriptions.getUsageCharges
- Get Usage SummaryRead-only
Retrieve usage summary for a subscription. Retrieves aggregated usage data for a metered feature in a subscription over a specified reporting window.
subscriptions.getUsageSummary
- Get With Scheduled ChangesRead-only
Retrieve a subscription with scheduled changes. Note If the ramps feature is enabled and there is more than one ramp on a subscription, this API will return the subscription with the upcoming ramp applied. Retrieves a subscription with the scheduled changes applied.
subscriptions.getWithScheduledChanges
- Import Contract TermDestructive
Import contract term. Imports an active or historical contract term for a subscription. Use this operation to import contract terms when migrating subscriptions from another billing system, or to add historical contract term data for existing subscriptions.
subscriptions.importContractTerm
- Import SubscriptionDestructive
Import a subscription. Imports a subscription into Chargebee. Product Catalog 1.0 sites only.
subscriptions.importSubscription
- Import Unbilled ChargesDestructive
Import unbilled charges. Imports one or more unbilled charges into an existing subscription. Use this operation to add usage-based or other unbilled charges recorded in external systems to the subscription.
subscriptions.importUnbilledCharges
- ListRead-only
List subscriptions. Returns a list of subscriptions meeting all the conditions specified in the filter parameters below.
subscriptions.list
- List Alert StatusesRead-only
List alert statuses for a subscription. Returns the runtime state of all alerts for a given subscription. Each entry in the response indicates whether the subscription is within_limit or in_alarm for a specific alert. Use this endpoint to build a subscription-level dashboard showing which thresholds have been breached and when.
subscriptions.listAlertStatuses
- List Applicable AlertsRead-only
List applicable alerts for a subscription. Returns the effective set of alert configurations for a given subscription. This includes global alerts (filtered by the subscription's plan) and any subscription-scoped alerts, giving you a single view of all threshold rules in force.
subscriptions.listApplicableAlerts
- List Contract TermsRead-only
List contract terms for a subscription. Retrieves a list of contract term resources for the subscription specified in the path. Warning This API will return an error when multi-frequency billing is enabled.
subscriptions.listContractTerms
- List DiscountsRead-only
List discounts for a subscription. Retrieves a list of discount resources currently attached to a specific subscription. The list is sorted in descending order based on the created_at timestamp. Note This endpoint does not return coupon or coupon_code resources.
subscriptions.listDiscounts
- List Entitlement OverridesRead-only
List entitlement overrides for a subscription. Retrieve the list of entitlement overrides for a subscription.
subscriptions.listEntitlementOverrides
- List EntitlementsRead-only
List subscription entitlements. Retrieves the list of subscription_entitlements for the subscription. Note: The components attribute is not returned for any of the subscription_entitlements. Use the retrieve operation(coming soon) to obtain the components.
subscriptions.listEntitlements
- MoveDestructive
Move a subscription. Moves a subscription from one customer to another asynchronously. All related resources such as unbilled_charge, invoice, credit_note, and transaction are also moved to the new customer.
subscriptions.move
- Override Billing ProfileWrite
Override billing profile. Assigns the payment source and sets auto collection state for the subscription. When you don't pass any input param for this API, payment source and auto collection for the subscription will be the same as the customer's default settings.
subscriptions.overrideBillingProfile
- PauseDestructive
Pause a subscription. Use this API to pause an active or non-renewing subscription. When a subscription is paused, it does not renew, and Chargebee does not generate renewal invoices for it. This allows you to temporarily suspend a customer's service without canceling the subscription.
subscriptions.pause
- Pause Subscription EstimateRead-only
Pause subscription estimate. This API provides an estimate of the details pertaining to the pause_subscription operation. It returns attributes such as pause_date and resume_date. This is similar to the Pause a subscription API with the exception that the subscription is not paused.
subscriptions.pauseSubscriptionEstimate
- ReactivateDestructive
Reactivate a subscription. Reactivates a canceled subscription. Use this operation to restore a canceled subscription to an active or in-trial state. #### Extend non-renewing subscriptions To extend the billing cycles of a non_renewing subscription, use the Remove scheduled cancellation API.
subscriptions.reactivate
- Regenerate InvoiceDestructive
Regenerate an invoice. Use this API to regenerate the current-term invoice for a subscription. The new invoice will contain non-metered charges from the current term and metered charges from the previous term.
subscriptions.regenerateInvoice
- Regenerate Invoice EstimateRead-only
Regenerate invoice estimate. Regenerates the invoice for the current term of the subscription. The subscription must have status as active or non_renewing. This operation is not allowed when any of the following conditions hold true for the subscription: * An invoice exists for the current term and its status is not voided.
subscriptions.regenerateInvoiceEstimate
- Remove Advance Invoice ScheduleWrite
Remove an advance invoice schedule. Caution * This API will return an error when multi-frequency billing is enabled. Deletes an advance invoicing schedule. When *schedule_type = specific_dates*, you also have the option of deleting a part of the schedule.
subscriptions.removeAdvanceInvoiceSchedule
- Remove CouponsDestructive
Remove coupons. Caution If there are scheduled ramps for the subscription, this operation can move the ramps to the draft status when it conflicts with any upcoming ramps. Removes coupons associated with the subscription.
subscriptions.removeCoupons
- Remove Scheduled CancellationDestructive
Remove scheduled cancellation. Removes a scheduled cancellation from a subscription so that it continues billing for the specified number of billing cycles. Use this operation when a customer changes their mind about canceling their subscription.
subscriptions.removeScheduledCancellation
- Remove Scheduled ChangesDestructive
Remove scheduled changes from a subscription. Removes a scheduled change from a subscription. ##### Review the changes before removing them To review the scheduled subscription change before removing it, call Retrieve with scheduled changes before calling this API to retrieve the subscription resource with the scheduled change applied.
subscriptions.removeScheduledChanges
- Remove Scheduled PauseDestructive
Remove scheduled pause. If the subscription is in Active or Non Renewing state and is also scheduled to pause at the end_of_term/specific_date, this API can be used to remove the scheduled pause. Warning This API will return an error when multi-frequency billing is enabled.
subscriptions.removeScheduledPause
- Remove Scheduled ResumptionDestructive
Remove scheduled resumption. If the subscription is in Paused state and is scheduled to resume on a specific_date, this API can be used to remove the scheduled resumption. When the scheduled resumption is removed, the subscription will remain Paused. Warning This API will return an error when multi-frequency billing is enabled.
subscriptions.removeScheduledResumption
- Renewal EstimateRead-only
Subscription renewal estimate. This returns an estimate of the amount that will be charged when the subscription is billed next. The estimate is calculated based on the current recurring items of the subscription - plan, addons, and coupons.
subscriptions.renewalEstimate
- ResumeDestructive
Resume a subscription. Note: This operation optionally supports 3DS verification flow. To achieve the same, create the Payment Intent and pass it as input parameter to this API. This API is used to resume a paused subscription. On resumption the subscription will be activated and any applicable charges will be initiated.
subscriptions.resume
- Resume Subscription EstimateRead-only
Resume subscription estimate. Generates an estimate for the 'resume subscription' operation. This is similar to the Resume a subscription API, but the subscription will not be resumed. Only an estimate for this operation is created. In the response, * estimate.subscription_estimate has the subscription details.
subscriptions.resumeSubscriptionEstimate
- Set AvailabilityWrite
Enable or disable subscription entitlements. Enables or disables specific subscription_entitlements for a subscription.
subscriptions.setAvailability
- UpdateDestructive
Update a subscription. Note: * This operation optionally supports 3DS verification flow. To achieve the same, create the Payment Intent and pass it as input parameter to this API. Product Catalog 1.0 sites only.
subscriptions.update
- Update For ItemsDestructive
Update a subscription. Updates a subscription by modifying its item prices, coupons, billing configuration, payment method, and other attributes. Any parameters not provided remain unchanged. The changes can be applied immediately, scheduled for a future date, or even backdated to a past date.
subscriptions.updateForItems
- Update Scheduled ChangesWrite
Update_scheduled_changes a subscription_scheduled_change.
subscriptions.updateScheduledChanges
- Upsert Entitlement OverridesWrite
Upsert or remove entitlement overrides for a subscription. Upserts or removes a set of entitlement_overrides for a subscription depending on the action specified. The API returns the upserted or deleted entitlement_overrides after successfully completing the operation.
subscriptions.upsertEntitlementOverrides
Invoices
- Add Addon ChargeDestructive
Add non-recurring addon to a pending invoice. Product Catalog 1.0 sites only.
invoices.addAddonCharge
- Add ChargeDestructive
Add one-time charge to a pending invoice. Adds a one-time charge to a pending invoice. A one-time charge is a charge that is added ad hoc to the invoice and does not represent a predefined item price. It appears in the invoice as a line_item of entity_type adhoc.
invoices.addCharge
- Add Charge ItemDestructive
Add a charge-item to a pending invoice. This endpoint is used when metered billing is enabled and it adds a charge-item price to a pending invoice. To collect the accumulated charges by closing the invoice, call Close a pending invoice.
invoices.addChargeItem
- Apply CreditsDestructive
Apply credits for an invoice. Applies a customer's refundable credits to a specified invoice. You can either specify the credit notes to be applied, or let Chargebee apply the available credit notes automatically. ### Prerequisites \& Constraints * The customer must have refundable credits available.
invoices.applyCredits
- Apply Payment Schedule SchemeWrite
Apply payment schedule scheme to an invoice. Applying a payment schedule scheme to an invoice creates payment schedules, enabling the invoice to be paid in multiple, scheduled payments. Note: The invoice must be in payment_due .
invoices.applyPaymentScheduleScheme
- Apply PaymentsDestructive
Apply payments for an invoice. Applies payment to a single invoice. You can either specify individual payment transactions as parameters, or Chargebee applies any available excess payments for that customer. If you specify individual transactions then any un-applied amount in those transactions will be used.
invoices.applyPayments
- ChargeDestructive
Create invoice for a one-time charge. Generate invoices for a one-time charge using this API. Product Catalog 1.0 sites only.
invoices.charge
- Charge AddonDestructive
Create invoice for a non-recurring addon. Generate invoices for a non-recurring addon using this API. Product Catalog 1.0 sites only.
invoices.chargeAddon
- CloseDestructive
Close a pending invoice. Invoices for a subscription are created with a pending status when the subscription has create_pending_invoices attribute set to true. This API call finalizes a pending invoice.
invoices.close
- Collect PaymentDestructive
Collect payment for an invoice. Collects a specified amount of payment for an invoice, via a specified online payment method. #### Offline payments When there is no payment method available, and if you wish to record an offline payment, use the Record an offline payment API instead. Charges the customer's payment method for the invoice.
invoices.collectPayment
- CreateDestructive
Create an invoice. Note: This operation optionally supports 3DS verification flow. To achieve the same, create the Payment Intent and pass it as input parameter to this API. Creates a one-off invoice for multiple 'Non Recurring' add-on \& ad-hoc charges for a customer. Product Catalog 1.0 sites only.
invoices.create
- Create For Charge Items And ChargesDestructive
Create invoice for items and one-time charges. Creates an invoice for charge-items and one-time charges. The item prices must belong to items of type charge. You can optionally override the line item name and description displayed on the invoice for charge-item prices and one-time charges.
invoices.createForChargeItemsAndCharges
- DeleteDestructive
Delete an invoice. Deletes the specified invoice. #### Void the invoice If the invoice was generated incorrectly, void it instead of deleting it. Voiding preserves the audit trail and allows for future reference and compliance without removing the original record.
invoices.delete
- Delete Line ItemsDestructive
Delete line items. This endpoint is used to delete line items from "Pending" invoice.
invoices.deleteLineItems
- Download EinvoiceRead-only
Download e-invoice. Download the e-invoice in both XML and PDF formats. The response consists of a download object for each format. The XML format follows the structure as per Peppol BIS Billing v3.0. Note * You can only download e-invoices when their status is success.
invoices.downloadEinvoice
- GetRead-only
Retrieve an invoice. Retrieve the invoice for the specified invoice id.
invoices.get
- Get Payment SchedulesRead-only
Retrieve payment schedules for an invoice. This endpoint retrieves payment schedules created for an invoice.
invoices.getPaymentSchedules
- Get PdfRead-only
Retrieve invoice as PDF. Gets the invoice as PDF. The returned URL is secure and allows download. The URL will expire in 60 minutes. #### Related Tutorial * Check out customer portal tutorial on how to download invoice as PDF.
invoices.getPdf
- ImportDestructive
Import invoice. Imports an invoice into Chargebee Billing. Use this API to import invoices from your other billing or accounting system into Chargebee Billing. You can import both current-term and historical invoices.
invoices.import
- ListRead-only
List invoices. Lists all the Invoices. (GET /invoices)
invoices.list
- List Payment Reference NumbersRead-only
List payment reference numbers. This API endpoint allows users to retrieve the payment reference numbers (PRNs) associated with an invoice. Only one PRN is allowed per payment type. You can use the invoice_id or the payment_reference_number[number] to retrieve the PRN.
invoices.listPaymentReferenceNumbers
- List Payment VouchersRead-only
List vouchers for an invoice. Retrieves vouchers for an invoice in reverse chronological order.
invoices.listPaymentVouchers
- List PaymentsRead-only
List payments for an invoice. Retrieves the payments for an invoice with the recent ones on top. This returns all the payment attempts(manual \& automatic) made for this invoice.
invoices.listPayments
- Pause DunningWrite
Pause dunning for invoice. Pause dunning for the specified invoice until expected_payment_date. Chargebee cancels all configured payment collection retry attempts and dunning email notifications for the invoice until expected_payment_date.
invoices.pauseDunning
- Record PaymentDestructive
Record an invoice payment. Records an offline payment for an invoice. Use this API to record payments that you receive outside Chargebee, such as bank transfers or checks, so that you can reconcile them against invoices. ### Prerequisites \& Constraints * The invoice status must be payment_due, posted, or not_paid.
invoices.recordPayment
- Record RefundDestructive
Record refund for an invoice. Record a full or partial offline refund for an invoice. Use this API to record refunds processed outside Chargebee (for example, directly through a payment gateway or via offline methods such as bank transfers or checks) so you can reconcile them in Chargebee.
invoices.recordRefund
- Record Tax WithheldWrite
Record tax withheld for an invoice. Records tax_withheld by the customer against the invoice specified. This operation is allowed only when all of the following conditions are true: * Tax Amount Withheld is enabled. * The invoice does not have a linked_taxes_withheld record associated with it already.
invoices.recordTaxWithheld
- RefundDestructive
Refund an invoice. Refunds online payments or online refundable credit notes applied to an invoice. If multiple transactions or credit note allocations are associated with the invoice, the refund can be processed only for one transaction or allocation at a time.
invoices.refund
- Remove Credit NoteDestructive
Remove credit note from an invoice. Removes the specified adjustment credit or refundable credit allocation applied to the invoice. ### Prerequisites \& Constraints * The invoice status must not be voided or pending. * The credit note status must not be voided. * The credit note type must be adjustment or refundable.
invoices.removeCreditNote
- Remove PaymentDestructive
Remove payment from an invoice. Removes a payment transaction that was applied to an invoice and moves the amount to the customer's excess payments balance. This API does not refund the payment to the customer. To refund a payment transaction, use one of the following APIs: * For online payments, use Refund a payment.
invoices.removePayment
- Remove Payment Schedule SchemeWrite
Remove payment schedule scheme from an invoice. Cancels remaining unpaid schedule entries on an invoice. Use this when a payment schedule was applied in error or is no longer required. Unpaid schedule entries are set to voided; paid entries and their payments are preserved.
invoices.removePaymentScheduleScheme
- Remove Tax WithheldDestructive
Remove tax withheld for an invoice. Removes a linked_taxes_withheld record from the invoice specified. This operation is allowed only when all of the following conditions are true: * invoice.status is one of the following: payment_due, not_paid, or posted. * There are no adjustment_credit_notes associated with the invoice.
invoices.removeTaxWithheld
- Resend EinvoiceDestructive
Resend failed einvoice in invoices. Resend failed einvoice of an invoice to the customer using this API.
invoices.resendEinvoice
- Resume DunningWrite
Resume dunning for invoice. Immediately resumes dunning for the specified invoice. * If the current time is within the dunning period for the invoice, Chargebee resumes any dunning retries and email notifications that remain after the pause period, and not attempt the retries or notifications that were canceled during the…
invoices.resumeDunning
- Send EinvoiceDestructive
Send an einvoice for invoices. This endpoint is used to send an e-invoice for invoice. To support cases like TDS and invoice edits, we need to stop auto e-invoice sending and be able to send e-invoices manually. This endpoint schedules e-invoices manually.
invoices.sendEinvoice
- Send EmailDestructive
Send Invoice Email. Sends the invoice email to the customer using the site's published Send Invoice Email Engage notification template. Use this operation to resend or manually trigger the invoice email for a customer outside the normal notification schedule. Async-only This operation is asynchronous only.
invoices.sendEmail
- Stop DunningDestructive
Stop dunning for invoice. This API is used to stop dunning for "Payment Due" invoices that have been enabled for Auto Collection. When dunning is stopped, the status of the invoice will be changed to "Not Paid".
invoices.stopDunning
- Sync UsagesDestructive
Sync usages. Updates the quantity for metered line_items of an invoice to reflect the latest usage data. Note: This operation is done automatically while closing the invoice.
invoices.syncUsages
- Update DetailsWrite
Update invoice details. This API allows you to update the invoice Billing/Shipping address, VAT, custom fields, and PO number. During this operation if Billing Info (Billing Address, vat_number), Shipping info and PO number are not already present in the system the data will be added.
invoices.updateDetails
- VoidDestructive
Void an invoice. Voids the specified invoice. Use this operation when: * The invoice was generated in error. * The invoice amount is incorrect. * The customer requests a change to the invoice. * The customer cancels the order.
invoices.void
- Void Before CaptureDestructive
Void authorizations before capture. Voids all outstanding scheduled-capture authorizations linked to an invoice before capture, then voids or writes off the invoice. Use this operation when an invoice has an outstanding delayed-capture authorization that must be released before the invoice is either voided or written off.
invoices.voidBeforeCapture
- Write OffDestructive
Write off an invoice. Write off the specified invoice. Use this operation to mark invoices as settled when they remain unpaid after multiple attempts to collect payment. #### Reverse a write-off You can reverse the write-off by removing the linked credit note.
invoices.writeOff
Customers
- Add ContactWrite
Add contacts to a customer. Add a contact to a customer resource. ### Prerequisites \& Constraints * The customer must have fewer than 10 contacts already added. ### Impacts Email notifications * If you set contact[send_billing_email] to true, the contact receives billing emails.
customers.addContact
- Assign Payment RoleWrite
Assign payment role. Assign or unassign the primary or backup payment role for a payment source.
customers.assignPaymentRole
- Change Billing DateWrite
Change billing date. Applicable when *calendar billing* (with customer specific billing date support) is enabled. Changes the customer's *billing_date* and/or *billing_day_of_week*. During this operation the upcoming renewal dates are not updated to align immediately with the new date.
customers.changeBillingDate
- Clear Personal DataDestructive
Clear personal data of a customer. Clear personal details of a customer using this API. Erases the customer's personal data (GDPR); it cannot be restored.
customers.clearPersonalData
- Collect PaymentDestructive
Collect payment for customer. Note: This operation optionally supports 3DS verification flow. To achieve the same, create the Payment Intent and pass it as input parameter to this API. This API can be used to collect the payments for customer's payment_due and not_paid invoices. Charges the customer's payment method.
customers.collectPayment
- Copy CardWrite
Copy card. #### deprecated The Payment Sources API , with its additional options and improvements, obsoletes the Cards APIs. This request is obsoleted by the Export payment source API . Copies the customer's card information to another payment gateway.
customers.copyCard
- CreateWrite
Create a customer. Creates a customer resource. Optionally, creates a payment source for the customer.
customers.create
- Create SubscriptionDestructive
Create subscription for customer. Note: This operation optionally supports 3DS verification flow. To achieve the same, create the Payment Intent and pass it as input parameter to this API. Creates a new subscription for an existing customer. Product Catalog 1.0 sites only.
customers.createSubscription
- Create Subscription EstimateRead-only
Create subscription for a customer estimate. Create a subscription for the existing estimate of a customer. Product Catalog 1.0 sites only.
customers.createSubscriptionEstimate
- Create Subscription For ItemsDestructive
Create a subscription. Note: This endpoint optionally supports 3DS. To use it create a payment_intent and provide it via this endpoint. Creates a new subscription for an existing customer in Chargebee. Any available credits and excess payments for the customer are automatically applied on the invoice. Creates the subscription and, unless it starts in trial or later, invoices and charges the customer at once.
customers.createSubscriptionForItems
- Create Subscription For Items EstimateRead-only
Estimate for creating a subscription. Generates an estimate without creating a subscription. This endpoint can be called when you want to preview details of a new subscription before actually creating one. The following conditions must be met or tax calculation is ignored: * The taxability attribute for the customer is true.
customers.createSubscriptionForItemsEstimate
- Create Subscription QuoteDestructive
Create quote for a new subscription. Creates a quote for a new subscription under the customer specified. To send this quote, use "Send Email" quote action in the Chargebee application. Product Catalog 1.0 sites only.
customers.createSubscriptionQuote
- Create Subscription Quote For ItemsDestructive
Create a quote for subscription creation. Create a quote for new subscription line items of a customer.
customers.createSubscriptionQuoteForItems
- DeleteDestructive
Delete a customer. Deletes a specified customer. This operation schedules the customer resource for deletion, and it is permanently deleted after a few minutes. If you wish to retain the customer data but stop further subscription renewals, consider canceling or pausing the subscriptions instead.
customers.delete
- Delete CardDestructive
Delete card for a customer. #### deprecated The Payment Sources API , with its additional options and improvements, obsoletes the Cards APIs. This request is obsoleted by the Delete a payment source API . Deletes the card for a customer.
customers.deleteCard
- Delete ContactDestructive
Delete contacts for a customer. Deletes a particular contact for a customer. You can delete a contact by giving the Contact ID as the input parameter.
customers.deleteContact
- DelinkDestructive
Unlink a customer from its parent account. When a customer belongs to an account hierarchy , this operation detaches the customer from its parent. The hierarchy, if any, beneath the customer remains unchanged.
customers.delink
- GetRead-only
Retrieve a customer. Retrieves the details of the desired customer. You can use the unique identifier for a particular customer to retrieve the desired details.
customers.get
- Get HierarchyRead-only
Get account hierarchy for a customer. Retrieves the full or partial account hierarchy for a customer.
customers.getHierarchy
- Get Upcoming Invoices EstimateRead-only
Upcoming invoices estimate. Estimate of the upcoming scheduled invoices (subscription activations, renewals etc) of a customer. For now preview of the invoices generated on the immediate upcoming date is supported.
customers.getUpcomingInvoicesEstimate
- Import SubscriptionDestructive
Import subscription for customer. Import the subscription details of a customer. Product Catalog 1.0 sites only.
customers.importSubscription
- Import Subscription For ItemsDestructive
Import a subscription. Imports a subscription for an existing customer. Use this operation when migrating subscriptions from another billing system.
customers.importSubscriptionForItems
- LinkWrite
Link a customer to an account hierarchy. Creates a hierarchical relationship between two customers. The path parameter customer_id identifies the child in this relationship, and parent_id identifies the parent.
customers.link
- ListRead-only
List customers. Retrieves a list of customers added to your Chargebee site. The list contains the necessary customer details such as First Name, Last Name and the Customer ID.
customers.list
- List ContactsRead-only
List of contacts for a customer. This API retrieves all the contacts for a customer.
customers.listContacts
- List Email LogsRead-only
List email logs for a customer. Retrieves the emails sent for a customer, newest first. Use this operation to inspect delivery status, recipient, and template for emails Chargebee sent to a customer, including those triggered by send invoice email, send credit note email, and send payment request email.
customers.listEmailLogs
- List EntitlementsRead-only
List customer entitlements. Tip To retrieve subscription entitlements for a specific subscription, use the List subscription entitlements API. Returns a list of customer_entitlement objects for the specified customer. The entitlements returned are for *active* subscriptions only.
customers.listEntitlements
- List Hierarchy DetailsRead-only
Get paginated account hierarchy for a customer. Retrieves the account hierarchy tree for the customer.
customers.listHierarchyDetails
- List Payment VouchersRead-only
List vouchers for a customer. Retrieves vouchers for a customer in reverse chronological order.
customers.listPaymentVouchers
- MergeDestructive
Merge customers. This API moves a customer's payment methods, subscriptions, invoices, credit notes, transactions, unbilled charges, and orders to another customer. Events and email logs will not be moved. The API execution is asynchronous.
customers.merge
- MoveDestructive
Move a customer. This API copies a customer object from one site to another. The destination site (the site to which the customer is copied) is specified by the path parameter {site}; whereas, the source site (the site from which the customer is copied) is specified by the query parameter from_site.
customers.move
- Record Excess PaymentDestructive
Record an excess payment for a customer. Records an offline payment for a customer and adds it to the customer's excess payments balance. ### Impacts Invoices * Chargebee automatically applies excess payments to future invoices, subject to limits set at the site level or overridden for subscriptions via subscription.billing_override.
customers.recordExcessPayment
- Send Payment RequestDestructive
Send Payment Request Email. Sends a request payment email to the customer using the site's published Collect Payment Email Engage notification template. Use this operation to manually trigger a payment request email when you want the customer to pay outstanding invoices. Async-only This operation is asynchronous only.
customers.sendPaymentRequest
- Switch GatewayWrite
Switch gateway. #### Deprecated This request is obsoleted by the Switch gateway account API for Payment Sources. Switches the gateway in which customer's card information is stored. This is applicable only if the payment method is card.
customers.switchGateway
- UpdateWrite
Update a customer. Updates the details of the specified customer. Use this API to modify customer information, including standard attributes and any configured custom attributes. * To update the billing address or VAT number, use the Update billing info for a customer API instead.
customers.update
- Update Billing InfoWrite
Update billing info for a customer. Updates a customer's billing information, including billing address and tax-related details such as VAT number. Note See Related APIs for other customer attributes that can be updated.
customers.updateBillingInfo
- Update CardWrite
Update card for a customer. #### Deprecated The Payment Sources API , with its additional options and improvements, obsoletes the Cards APIs . This operation is obsoleted by the following: * Create using temporary token * Create using permanent token * Create a card payment source Adds or replaces card details of a customer.
customers.updateCard
- Update ContactWrite
Update contacts for a customer. Updates the details of a contact for a customer. You can give the field data to be updated as input parameters along with the Contact ID to update it.
customers.updateContact
- Update Hierarchy SettingsWrite
Update account hierarchy access settings for a customer. When the customer is part of an account hierarchy, this operation updates the access privileges that both the customer and its parent have to the customer's data. Terminology The term "parent" usually refers to the customer with the ID payment_owner_id.
customers.updateHierarchySettings
- Update Payment MethodWrite
Update payment method for a customer. Payment Sources comes with additional options and improvements to the Card APIs . For this operation, use the Create using temporary token API or Create using permanent token API under Payment Sources to update payment method for the customer. Updates payment method details for a customer.
customers.updatePaymentMethod
Hosted Pages
- Accept QuoteWrite
Accept a quote. This API generates a hosted page URL for the customer to accept a quote. If the hosted page URL has expired, a new URL will be generated automatically. * Customers with existing subscriptions can generate a quote for new subscriptions.
hostedPages.acceptQuote
- AcknowledgeWrite
Acknowledge a hosted page. When a hosted page is successfully completed by the user and processed by Chargebee, its state is automatically changed to succeeded . Acknowledging a hosted page confirms that you have moved the customer details from Chargebee into your system and are ready to fulfill it.
hostedPages.acknowledge
- Checkout ExistingWrite
Checkout existing subscription. You can checkout an existing subscription(typically in the trial state) by passing in the plan, quantity and addon details(like Update a Subscription) When the redirect URL is notified of the result, we would advise you to retrieve the subscription and verify the details. Product Catalog 1.0 sites only.
hostedPages.checkoutExisting
- Checkout Existing For ItemsWrite
Create checkout to update a subscription. Create a Chargebee hosted page to accept payment details from a customer and checkout to update the subscription.
hostedPages.checkoutExistingForItems
- Checkout GiftWrite
Checkout gift subscription. Creates a hosted page for a customer (called the gifter) to gift a subscription to another customer (called the receiver). Product Catalog 1.0 sites only.
hostedPages.checkoutGift
- Checkout Gift For ItemsWrite
Checkout gift subscription for items. Creates a hosted page for a customer (called the gifter) to gift a subscription to another customer (called the receiver).
hostedPages.checkoutGiftForItems
- Checkout NewWrite
Checkout new subscription. Hosted page to accept card details from the subscriber and create a new subscription. This is similar to our server to server API Create a Subscription. When the redirect URL is notified of the result, we would advise you to retrieve the subscription and verify the details. Product Catalog 1.0 sites only.
hostedPages.checkoutNew
- Checkout New For ItemsWrite
Create checkout for a new subscription. Create a Chargebee hosted page to accept payment details from a customer and checkout a new subscription.
hostedPages.checkoutNewForItems
- Checkout One TimeWrite
Checkout one-time payments. Create a Chargebee hosted page to accept payment from a customer and checkout non-recurring addons and one-time charges. The following steps describe how best to use this API: 1. Product Catalog 1.0 sites only.
hostedPages.checkoutOneTime
- Checkout One Time For ItemsWrite
Checkout charge-items and one-time charges. Create a Chargebee hosted page to accept payment details from a customer and checkout charge-items and one-time charges. The following steps describe how best to use this API: 1.
hostedPages.checkoutOneTimeForItems
- Claim GiftWrite
Claim a gift subscription. This API generates a hosted page URL to claim a gifted subscription.
hostedPages.claimGift
- Collect NowDestructive
Collect now. This API generates a hosted page URL to collect due payments for the customer. Open the hosted page in a new browser tab or window using the url from this API's response. Do not embed it in your own iframe.
hostedPages.collectNow
- Extend SubscriptionDestructive
Extend subscription. This API generates a hosted page URL to extend the billing cycle of a subscription. Use one of the following methods to open the hosted page: * In-app modal : Use Chargebee.js openCheckout() to open the hosted page in a modal popup in your website or application.
hostedPages.extendSubscription
- GetRead-only
Retrieve a hosted page. When you retrieve a hosted page whose status is successful, the content attribute has the following objects based on the type of the hosted page.
hostedPages.get
- ListRead-only
List hosted pages. This API retrieves the list of hosted page resources.
hostedPages.list
- Manage Payment SourcesWrite
Manage payment sources. This API generates a hosted page URL to add new or update existing payment sources for the customer. Use one of the following methods to open the hosted page: * In-app modal : Use Chargebee.js openCheckout() to open the hosted page in a modal popup in your website or application.
hostedPages.managePaymentSources
- Notify EventWrite
Notify an event. Use this API to notify Chargebee about important events that occur on your web pages, such as subscription cancellations. An event contains data about affected resources and additional details such as when the change occurred.
hostedPages.notifyEvent
- Pre CancelWrite
Create a pre-cancel hosted page. Creates a hosted_page resource of type pre_cancel . Route canceling users to this page to provide them a retention experience and start saving revenue.
hostedPages.preCancel
- Retrieve Agreement PdfRead-only
Retrieve direct debit agreement PDF. This is applicable only for Direct Debit via SEPA, Bacs, Bg Autogiro, BECS (for both Australia and New Zealand) and PAD. For Direct Debit, the customer needs to accept an agreement that allows the merchant to debit their bank account.
hostedPages.retrieveAgreementPdf
- View VoucherWrite
Create a hosted page to view Boleto vouchers. Creates a hosted_page resource of type, view_voucher . When your end customers choose the Boleto payment method, you can generate a voucher for their pending invoice. Using this API, you can create a voucher_detail hosted page for your customers and email them a link to this hosted page.
hostedPages.viewVoucher
Exports
- AddonsRead-only
Export addons. This API triggers export of addon data. The exported zip file contains CSV files with addon-related data. Product Catalog 1.0 sites only.
exports.addons
- Attached ItemsRead-only
Export attached items. This API triggers export of attached item data. The exported zip file contains CSV files with attached item-related data.
exports.attachedItems
- CouponsRead-only
Export coupons. This API triggers export of coupon data. The exported zip file contains CSV files with coupon-related data.
exports.coupons
- Credit NotesRead-only
Export credit notes. This API triggers export of credit note data. The exported zip file contains CSV files with credit note-related data.
exports.creditNotes
- CustomersRead-only
Export customers. This API triggers export of customer data. The exported zip file contains CSV files with customer-related data. Starts an export job; read exports.get until its download URL is ready.
exports.customers
- Deferred RevenueRead-only
Export deferred revenue reports. Important: This report is deprecated. Therefore, the endpoint is also deprecated. This API triggers export for the Deferred Revenue Report. Note: This API call is asynchronous. You need to check if this operation has completed by checking if the export status is completed .
exports.deferredRevenue
- Differential PricesRead-only
Export differential price. This API triggers export of differential price data. The exported zip file contains CSV files with differential price-related data.
exports.differentialPrices
- GetRead-only
Retrieve an export. This API gets the status of the export job initiated by the Exports API. If the export job is completed, the downloads resource will also be obtained in the API response. The returned URL in the downloads resource is secure and can be downloaded. The URL expires after 4 hours.
exports.get
- InvoicesRead-only
Export invoices. This API triggers export of invoice data. The exported zip file contains CSV files with invoice-related data. ### Invoice Export Best Practice For a full export, Chargebee recommends exporting data in batches by using date filters.
exports.invoices
- Item FamiliesRead-only
Export item families. This API triggers export of item family data. The exported zip file contains CSV files with item family-related data.
exports.itemFamilies
- Item PricesRead-only
Export item prices. This API triggers export of item price data. The exported zip file contains CSV files with item price-related data.
exports.itemPrices
- ItemsRead-only
Export items. This API triggers export of item data. The exported zip file contains CSV files with item-related data.
exports.items
- OrdersRead-only
Export orders. This API triggers export of order data. The exported zip file contains CSV files with order-related data.
exports.orders
- PlansRead-only
Export plans. This API triggers export of plan data. The exported zip file contains CSV files with plan-related data. Product Catalog 1.0 sites only.
exports.plans
- Price VariantsRead-only
Export price variants. This API triggers export of price variant data. The exported zip file contains CSV files with price variant-related data.
exports.priceVariants
- RampsRead-only
Export Subscription Ramps. Starts an export job for subscription ramps data. The exported zip file contains CSV files with ramp-related data. ### Best practice For a full data export, use filters to export in batches, as suggested in the samples below.
exports.ramps
- Revenue RecognitionRead-only
Export revenue recognition reports. Important: This report is deprecated. Therefore, the endpoint is also deprecated. This API triggers export for the revenue recognition report. Note: This API call is asynchronous. You need to check if this operation has completed by checking if the export status is completed .
exports.revenueRecognition
- SubscriptionsRead-only
Export subscriptions. This API triggers export of subscription data. The exported zip file contains CSV files with subscription-related data.
exports.subscriptions
- TransactionsRead-only
Export transactions. This API triggers export of transaction data. The exported zip file contains CSV files with transaction-related data.
exports.transactions
Quotes
- ConvertDestructive
Convert a quote. This API is to convert a quote to an invoice.
quotes.convert
- Create For Charge Items And ChargesWrite
Create a quote for charges and charge items. Creates a quote using charge-items and one-time charges.
quotes.createForChargeItemsAndCharges
- Create For Onetime ChargesWrite
Create quote for one-time charges. Creates a quote for one-time charges and non-recurring addons. This is applicable only for one-time payment. Recurring charges are not permitted in this quote; use Create quote for a new subscription or Create quote for updating a subscription instead. Product Catalog 1.0 sites only.
quotes.createForOnetimeCharges
- DeleteDestructive
Delete a quote. using this API. (POST /quotes/{quote-id}/delete)
quotes.delete
- Edit Create Subscription QuoteWrite
Edit quote for a new subscription. Edits a quote. This endpoint is for quotes that are for new subscriptions. To edit a quote that is for updating a subscription, use Edit quote for updating a subscription. Product Catalog 1.0 sites only.
quotes.editCreateSubscriptionQuote
- Edit Create Subscription Quote For ItemsWrite
Edit a quote for subscription creation. Changes the quote produced for creating a new subscription items.
quotes.editCreateSubscriptionQuoteForItems
- Edit For Charge Items And ChargesWrite
Edit a quote for charges and charge items. Changes the quote produced for adding one-time charges and charge items.
quotes.editForChargeItemsAndCharges
- Edit One Time QuoteWrite
Edit quote for one-time charges. Edits a quote. The quote must be for one-time charges or non-recurring addons. To edit quotes created for subscriptions, use: * Edit quote for new subscription. * Edit quote for updating a subscription. Product Catalog 1.0 sites only.
quotes.editOneTimeQuote
- Edit Update Subscription QuoteWrite
Edit quote for updating a subscription. Edits a quote. This endpoint is for editing quotes that are for updating a subscription. To edit a quote for a new subscription, use Edit quote for a new subscription. Product Catalog 1.0 sites only.
quotes.editUpdateSubscriptionQuote
- Edit Update Subscription Quote For ItemsWrite
Edit a quote for subscription update. Edits a quote for updating a subscription. ### Impacts #### Quote and related resources If the quote is for a scheduled change, then the following resources are updated: * When Ramps are disabled, the quote and the quoted_subscription are updated.
quotes.editUpdateSubscriptionQuoteForItems
- Extend Expiry DateWrite
Extend expiry date. Can be used to extend the expiry date of a quote.
quotes.extendExpiryDate
- GetRead-only
Retrieve a quote. Retrieves the quotes identified by the 'number' specified in the url.
quotes.get
- Get PdfRead-only
Retrieve a quote as PDF. Retrieves the quote as a PDF. The returned URL is secure, allows download and expires in 60 minutes.
quotes.getPdf
- ListRead-only
List quotes. List all quotes. (GET /quotes)
quotes.list
- List EntitlementsRead-only
List Quote Entitlements. Retrieves the list of quote_entitlements for the quote.
quotes.listEntitlements
- List Line GroupsRead-only
List quote line groups. This API retrieves all the quote line groups and lineitems for a quote.
quotes.listLineGroups
- Update StatusWrite
Update quote status. Updates the status of the quote.
quotes.updateStatus
- Update Subscription QuoteWrite
Create quote for updating a subscription. Creates a quote for updating a subscription under the customer specified. To send this quote, use "Send Email" quote action in the Chargebee application. Product Catalog 1.0 sites only.
quotes.updateSubscriptionQuote
- Update Subscription Quote For ItemsWrite
Create a quote for subscription update. Creates a quote for updating a subscription. Use this endpoint for amendments, and for renewals when Chargebee CPQ is enabled. * Amendment: Changes the subscription within its current term, for example adding items or changing quantities or prices.
quotes.updateSubscriptionQuoteForItems
Payment Sources
- Create Bank AccountWrite
Create a bank account payment source. This API adds a Direct Debit payment source for a customer. The bank account details collected from your customer are passed as input to this API. #### Automated Clearing House (ACH) Network ACH is an electronic network for passing financial transactions in the US.
paymentSources.createBankAccount
- Create CardWrite
Create a card payment source. Storing card after successful 3DS completion is not supported in this API. Use create using Payment Intent API under Payment source to store the card after successful 3DS flow completion.
paymentSources.createCard
- Create Using Payment IntentWrite
Create using payment intent. Used to attach the card to the customer after 3DS completion. Learn more on the 3DS implementation via Chargebee APIs.
paymentSources.createUsingPaymentIntent
- Create Using Permanent TokenWrite
Create using permanent token. Creates a payment source for a customer using a permanent token obtained from the payment gateway. Use this API to add a payment method that has already been vaulted in your gateway account. The permanent token enables Chargebee to securely link the payment method to the customer.
paymentSources.createUsingPermanentToken
- Create Using Temp TokenWrite
Create using gateway temporary token. This API offers an alternative way to create a payment source using a single-use gateway temporary token, which is generally provided by your payment gateway. In the case of Stripe, this temporary token is generated according to the instruction detailed in Stripe documentation.
paymentSources.createUsingTempToken
- Create Using TokenWrite
Create using Chargebee token. Storing card after successful 3DS completion is not supported in this API. Use create using Payment Intent API under Payment source to store the card after successful 3DS flow completion.
paymentSources.createUsingToken
- Create Voucher Payment SourceWrite
Create a voucher payment method. for the payment source.
paymentSources.createVoucherPaymentSource
- DeleteDestructive
Delete a payment source. Deletes a payment source. Once the payment source is deleted, if * Deleted payment source is Primary, and Backup is available * The Backup payment source will become the Primary payment source.
paymentSources.delete
- Delete LocalDestructive
Local delete a payment source. Delete a payment source reference from a Chargebee customer without deleting or altering payment source data stored at the payment gateway. ### Impacts Payment Source Sets deleted = true on the specified payment_source and detaches it from the customer.
paymentSources.deleteLocal
- ExportWrite
Export payment source. Copies this payment source information to the gateway specified in the API. This is useful if you want to port your customer's card details into another gateway. This operation does not support copying of cards from Stripe and Braintree gateways.
paymentSources.export
- GetRead-only
Retrieve a payment source. Retrieves the payment source identified by the unique identifier.
paymentSources.get
- ListRead-only
List payment sources. Lists all the payment sources.
paymentSources.list
- List Gateway Payment Method TokensRead-only
List Gateway Payment Method Tokens For A Payment Source. Lists gateway payment method token mappings stored for this payment source. A payment source can have multiple gateway tokens when vaulting and backup gateway merchant-initiated transactions (MIT) are enabled.
paymentSources.listGatewayPaymentMethodTokens
- Switch Gateway AccountWrite
Switch gateway account. Moves a card payment source from one gateway account to another.
paymentSources.switchGatewayAccount
- Update Bank AccountWrite
Update a bank account payment source. This API is used to update the payment source details of a customer. Information related to bank account payment source such as email, first name, and last name can be updated. * For GoCardless, Chargebee supports (ACH,BACS,SEPA,AUTOGIRO,BECS,BECS_NZ,PAD).
paymentSources.updateBankAccount
- Update CardWrite
Update a card payment source. Merchants look to update card details when: * The billing address of a customer has changed. In such a case, modify the billing address in the Chargebee and the payment gateway. * The expiration date of the card has been extended by the bank.
paymentSources.updateCard
- Verify Bank AccountWrite
Verify bank account payment source. This API can be used to verify bank accounts which have been added as payment source. This is applicable for Stripe ACH with micro-deposit mode bank accounts only. Stripe handles verification in two ways - via Plaid, and micro-deposit.
paymentSources.verifyBankAccount
Credit Notes
- CreateDestructive
Create credit note. Creates a credit note for the specified invoice. ### Impacts Invoice See Impact on reference invoice. Credit note * A new credit note of the specified type is created. * If the credit note type is adjustment: * total and amount_allocated are set to the adjusted amount. * status is set to adjusted.
creditNotes.create
- DeleteDestructive
Delete a credit note. This API deletes a credit note. A credit note once deleted, is deleted permanently. You cannot delete a credit which has already been deleted or refunded. If you try to delete a refunded or deleted credit note, an error message will be displayed.
creditNotes.delete
- Download EinvoiceRead-only
Download e-invoice for credit note. Download the e-invoice for the credit note in both XML and PDF formats. The response consists of a download object for each format. The XML format follows the structure as per Peppol BIS Billing v3.0. Note * You can only download e-invoices when their status is success or registered.
creditNotes.downloadEinvoice
- GetRead-only
Retrieve a credit note. Retrieves the Credit Note identified by the specified Credit Note number.
creditNotes.get
- Get PdfRead-only
Retrieve credit note as PDF. Gets the credit note as PDF. The returned URL is secure and allows download. The URL will expire in 60 minutes.
creditNotes.getPdf
- ImportDestructive
Import credit note. Imports a credit note into Chargebee Billing. This endpoint allows you to import a credit note from external systems, such as accounting software, into Chargebee. Use this operation during data migration or reconciliation to ensure historical credits are represented in the system.
creditNotes.import
- ListRead-only
List credit notes. Lists all the Credit Notes.
creditNotes.list
- Record RefundDestructive
Record refund for a credit note. Records a refund for a refundable credit note. This API does not process an actual refund for online payments by returning money to customers.
creditNotes.recordRefund
- RefundDestructive
Refund a credit note. Refunds a specified amount from a refundable credit note back to the customer's payment source. This operation supports only refunds against online payments. The refund amount is returned to the customer through the payment_source associated with the transaction.
creditNotes.refund
- Remove Tax Withheld RefundDestructive
Remove tax withheld refunds from a credit note. Removes a linked_tax_withheld_refunds record from the credit_note .
creditNotes.removeTaxWithheldRefund
- Resend EinvoiceDestructive
Resend failed einvoice in credit notes. (POST /credit_notes/{credit-note-id}/resend_einvoice)
creditNotes.resendEinvoice
- Send EinvoiceDestructive
Send an einvoice for credit notes. This endpoint is used to send an e-invoice for invoice. To support cases like TDS and invoice edits, we need to stop auto e-invoice sending and be able to send e-invoices manually. This endpoint schedules e-invoices manually.
creditNotes.sendEinvoice
- Send EmailDestructive
Send Credit Note Email. Sends the credit note email to the customer using the site's published Send Credit Note Email Engage notification template. Use this operation to resend or manually trigger the credit note email for a customer outside the normal notification schedule. Async-only This operation is asynchronous only.
creditNotes.sendEmail
- UpdateDestructive
Update Credit Note Details. Updates the custom fields and comment of a credit note. Use this operation to add or change custom field values, or to attach an internal comment, without modifying other credit note attributes. Pass at least one credit note custom field or comment; otherwise the credit note is returned unchanged.
creditNotes.update
- VoidDestructive
Void a credit note. Void or invalidate the specified credit note. Use this operation for incorrectly generated credit notes, such as those with wrong details or created by mistake.
creditNotes.void
Business Rules
- ActivateWrite
Activate a business rule. Activates a business rule by setting its active attribute to true, so that Chargebee evaluates it. Every rule is created inactive, so this is the operation that puts a new rule into effect. ### Impacts Business rule The rule active attribute is set to true.
businessRules.activate
- ApplyWrite
Apply business rules. Evaluates business rules against a context that you supply. You can evaluate a single rule using rule_id, every rule in a ruleset using ruleset_id, or an ad hoc expression using structured_expression.
businessRules.apply
- CreateWrite
Create a business rule. Creates a business rule and releases its first version, so the new rule has latest_version set to 1 and released_at set. The rule is created inactive: Chargebee does not evaluate it until you call Activate a business rule.
businessRules.create
- DeactivateWrite
Deactivate a business rule. Deactivates a business rule by setting its active attribute to false. The rule is retained along with its versions and ruleset memberships, but Chargebee stops evaluating it. Use this operation to switch a rule off temporarily.
businessRules.deactivate
- DeleteDestructive
Delete a business rule. Deletes a business rule and removes it from every business ruleset it belongs to. This is a soft delete: the rule is no longer returned by the API or evaluated by Chargebee, but its id cannot be reused.
businessRules.delete
- Delete DraftDestructive
Delete a business rule draft. Deletes the draft version of a business rule, permanently discarding every change that has not been released. The released version of the rule is not affected. Use this operation to abandon a revision you no longer want to release, and to leave the rule serving its released version unchanged.
businessRules.deleteDraft
- GetRead-only
Retrieve a business rule. Retrieves the released version of the business rule with the specified id, which is the version Chargebee evaluates. The response describes the version in latest_version.
businessRules.get
- Get DraftRead-only
Retrieve a business rule draft. Retrieves the draft version of a business rule. The draft holds changes that have not been released yet, so it can differ from the released version returned by Retrieve a business rule. Use this operation to review a staged change before releasing it.
businessRules.getDraft
- ListRead-only
List business rules. Returns a list of business rules satisfying all the conditions specified in the filter parameters. Each rule is returned as its released version. Deleted rules are not returned.
businessRules.list
- ReleaseWrite
Release a business rule. Releases the draft version of a business rule. The draft is promoted to the next version number and becomes the released version that Chargebee evaluates, so latest_version is incremented and released_at is set. Until you release it, the previously released version stays in effect.
businessRules.release
- Update DraftWrite
Update a business rule draft. Updates the draft version of a business rule. The first edit creates a draft from the released version, and every later edit updates that same draft. Changes made to a draft do not affect rule evaluation until the draft is released.
businessRules.updateDraft
Orders
- Assign Order NumberWrite
Assign order number. Assigns order number to the order based on the settings, if not already assigned.
orders.assignOrderNumber
- CancelDestructive
Cancel an order. Cancel order and create a refundable credit note for the order.
orders.cancel
- CreateWrite
Create an order. #### Deprecated Chargebee no longer supports this endpoint, see here for more information. Contact Support for additional assistance or if you have concerns about this update.
orders.create
- Create Refundable Credit NoteWrite
Create a refundable credit note. This API is used to create a refundable credit note for the order.
orders.createRefundableCreditNote
- DeleteDestructive
Delete an imported order. Deletes only Imported Order .Delete does not happen if the order was refunded. It goes through if order refund was initiated and is in "refund_due" state.
orders.delete
- GetRead-only
Retrieve an order. Retrieves an order corresponding to the order id passed.
orders.get
- ImportWrite
Import an order. for an invoice with one or more line items. The import order bulk operation is to be applied on an imported invoice.
orders.import
- ListRead-only
List orders. This API is used to retrieve a list of all the available orders.
orders.list
- ReopenWrite
Reopen a cancelled order. This API is used to re-open a cancelled order.
orders.reopen
- ResendDestructive
Resend an order. Resend an existing order. This will help in resending an existing order in full or partial. Upto 5 resend operations are allowed per . When resent fully, the original order is canceled.
orders.resend
- UpdateWrite
Update an order. Updates an order. If the status of an order is changed while updating the order, the status_update_at attribute is set with the current time.
orders.update
Business Rulesets
- ActivateWrite
Activate a business ruleset. Activates a business ruleset by setting its active attribute to true, so that Chargebee evaluates the rules it contains. ### Impacts Business ruleset The ruleset active attribute is set to true.
businessRulesets.activate
- Add RulesWrite
Add business rules to a ruleset. Adds one or more business rules to a ruleset without changing any of its other attributes. The rules are appended to the end of the ruleset's evaluation order, so you cannot choose their priorities here. Use this operation to extend a ruleset that is already in use.
businessRulesets.addRules
- CreateWrite
Create a business ruleset. Creates a business ruleset. A ruleset groups business rules so that they can be evaluated together, in the priority order you assign, using the strategy set in execute_mode.
businessRulesets.create
- DeactivateWrite
Deactivate a business ruleset. Deactivates a business ruleset by setting its active attribute to false. The ruleset and its rule memberships are retained, but Chargebee stops evaluating it. Use this operation to switch off a whole group of rules in one call, without changing the rules themselves.
businessRulesets.deactivate
- DeleteDestructive
Delete a business ruleset. Permanently deletes a business ruleset. ### Prerequisites \& Constraints * The business ruleset must not contain any business rules. If it does, remove the business rules from the ruleset before deleting it. ### Impacts Business ruleset Chargebee permanently deletes the business ruleset.
businessRulesets.delete
- GetRead-only
Retrieve a business ruleset. Retrieves the business ruleset with the specified id. To fetch the rules it contains, use List rules in a business ruleset.
businessRulesets.get
- ListRead-only
List business rulesets. Returns a list of business rulesets satisfying all the conditions specified in the filter parameters. The response describes each ruleset but does not carry its membership; use List rules in a business ruleset to page through the rules of a particular ruleset.
businessRulesets.list
- List RulesRead-only
List rules in a business ruleset. Returns the business rules that belong to a ruleset, along with the priority that determines their evaluation order. The results can be filtered by active status and are paginated. Each entry carries the rule_id of the rule and its priority within this ruleset.
businessRulesets.listRules
- Remove RulesWrite
Remove business rules from a ruleset. Removes one or more business rules from a ruleset without changing any of its other attributes. The rules themselves are not deleted and remain available to other rulesets.
businessRulesets.removeRules
- UpdateWrite
Update a business ruleset. Updates a business ruleset. Passing rules replaces the entire membership of the ruleset. To change membership incrementally, use Add business rules to a ruleset or Remove business rules from a ruleset instead.
businessRulesets.update
Features
- ActivateWrite
Activate a feature. Activates a draft feature so that any entitlements or subscription entitlements defined towards it take effect immediately. This operation changes the status of the feature to active. ### Prerequisites \& Constraints * Only a feature in draft status can be activated.
features.activate
- ArchiveDestructive
Archive a feature. Archives an active feature so that no new entitlements or subscription entitlements can be created towards the feature. Any pre-existing item or subscription entitlements from the time that the feature was active remain effective. This operation changes the status of the feature to archived.
features.archive
- CreateWrite
Create a feature. Creates a new feature. Note: This operation creates non-metered features only. To create a metered feature, use the Create a metered feature operation.
features.create
- DeleteDestructive
Delete a feature. Deletes a feature. Any entitlements and subscription entitlements defined for the feature are also removed. This action is not permissible when the status of the feature is active .
features.delete
- GetRead-only
Retrieve a feature. Retrieve a specific feature using its ID.
features.get
- ListRead-only
List features. Retrieves a list of features meeting all the conditions specified in the filter parameters.
features.list
- List Item EntitlementsRead-only
List item entitlements for a feature. Deprecated This operation is deprecated and no longer maintained. Migrate your integration to List entitlements. Retrieves a list of all the item_entitlement s for the feature specified.
features.listItemEntitlements
- ReactivateDestructive
Reactivate a feature. Reactivates an archived feature so that new entitlements or subscription entitlements can be created towards the feature. This operation changes the status of the feature to active. ### Prerequisites \& Constraints * Only a feature in archived status can be reactivated.
features.reactivate
- UpdateWrite
Update a feature. Updates a specific feature. Note The list of objects levels[] provided as part of this operation fully replaces the existing list of objects [levels[]](/docs/api/features/feature-object#levels) of the feature.
features.update
- Upsert Item EntitlementsWrite
Upsert or remove item entitlements for a feature. Deprecated This operation is deprecated and no longer maintained. Migrate your integration to Manage entitlements. Warning This operation is not supported when grandfathering is enabled. Upserts or removes a set of item_entitlements for an feature depending on the action specified.
features.upsertItemEntitlements
Coupons
- CopyWrite
Copy a coupon. Copies a coupon over from one site to another. Copying of archived coupons is not supported. The item prices that are linked to the coupon in the source site are also linked to the coupon in the destination site.
coupons.copy
- CreateWrite
Create a coupon. This API creates a new coupon for a specific promotion or offers. Product Catalog 1.0 sites only.
coupons.create
- Create For ItemsWrite
Create a coupon for items. This API creates a new coupon for a specific promotion or offers.
coupons.createForItems
- DeleteDestructive
Delete a coupon. If no Subscriptions/Invoices are linked to this Coupon, the Coupon will be deleted from your Chargebee site. This action cannot be undone. To ensure that existing Subscriptions/Invoices are not affected, Coupons associated with them will not be deleted, but moved to "Archived" state.
coupons.delete
- GetRead-only
Retrieve a coupon. This API retrieves a specific coupon using the coupon ID.
coupons.get
- ListRead-only
List coupons. List all the available coupons that are created for a specific promotion or offers. You can find list of coupon codes that are currently active, expired, archived or deleted.
coupons.list
- UnarchiveWrite
Unarchive a coupon. This API unarchives a specific coupon using the coupon ID.
coupons.unarchive
- UpdateWrite
Update a coupon. When updating coupons that are already linked to an invoice or subscription you can only update the following parameters: * name * invoice name * plan_constraint - Applicable when apply_on is set as each_specified_item. Allows change from none to all, none to specific, and specific to all. Product Catalog 1.0 sites only.
coupons.update
- Update For ItemsWrite
Update a coupon for items. This API updates a coupon that is created for a specific promotion or offers.
coupons.updateForItems
Estimates
- Create InvoiceRead-only
Create invoice estimate. Generates an estimate for the 'create an invoice' operation. This is similar to the Create an invoice API, but the invoice will not be generated. Only an estimate for this operation is created. Product Catalog 1.0 sites only.
estimates.createInvoice
- Create Invoice For ItemsRead-only
Create invoice for items estimate. This endpoint creates an invoice estimate for non-recurring items. You can optionally override the line item name and description displayed on the invoice for charge-item prices and one-time charges. These overrides are reflected in the returned invoice estimate.
estimates.createInvoiceForItems
- Create SubscriptionRead-only
Create subscription estimate. Generates an estimate for the 'create subscription' operation. This is similar to the Create Subscription API but no subscription will be created, only an estimate for this operation is created. Product Catalog 1.0 sites only.
estimates.createSubscription
- Create Subscription For ItemsRead-only
Estimate for creating a customer and subscription. Generates an estimate for creating a subscription when the customer does not exist in Chargebee. This estimate API can be called when the customer has not yet signed up and you want to preview how a new subscription would look like for them.
estimates.createSubscriptionForItems
- Gift SubscriptionRead-only
Gift subscription estimate. Generates an estimate for the 'create a gift' operation. This is similar to the Create a gift API, but the gift subscription will not be created. Only an estimate for this operation is created. In the response, * estimate.subscription_estimate has the gift subscription details. Product Catalog 1.0 sites only.
estimates.giftSubscription
- Gift Subscription For ItemsRead-only
Gift subscription estimate for items. This endpoint generates an estimate for a subscription that is intended to be a gift. The estimate provides details about the gift sender, gift recipient, address details of the recipient, and the type and details of subscription items included in the gift.
estimates.giftSubscriptionForItems
- Payment SchedulesRead-only
Create a payment schedule estimate. Generates an estimate without creating a payment schedule. This endpoint can be called when you want to preview details of a new payment schedule before actually creating one.
estimates.paymentSchedules
- Update SubscriptionRead-only
Update subscription estimate. Generates an estimate for the 'update subscription' operation. The input will be similar to the Update Subscription API but subscription will not be updated, only an estimate will be created. Product Catalog 1.0 sites only.
estimates.updateSubscription
- Update Subscription For ItemsRead-only
Estimate for updating a subscription. Returns an estimate for updating a subscription. In the response, * subscription_estimate: The details of the changed subscription such as status, next billing date, and so on. * invoice_estimate:The details of the immediate invoice, if it is generated.
estimates.updateSubscriptionForItems
Items
- CreateWrite
Create an item. Creates a new item. (POST /items)
items.create
- Create Attached ItemWrite
Create an attached item. Creates an attached addon or a charge item for a plan.
items.createAttachedItem
- DeleteDestructive
Delete an item. Deletes an item, marking its status as deleted. This is not allowed if there are active or archived item prices under the item. Once deleted, the id and name of the item can be reused.
items.delete
- GetRead-only
Retrieve an item. resource. (GET /items/{item-id})
items.get
- ListRead-only
List items. Returns a list of items satisfying all the conditions specified in the filter parameters below. The list is sorted by date of creation, in descending order. ### Use Cases ##### Filter by custom fields Note: Custom field filters are turned off by default.
items.list
- List Attached ItemsRead-only
List attached items. Returns a list of attached items satisfying all the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order (latest first).
items.listAttachedItems
- List Item EntitlementsRead-only
List item entitlements for an item. Deprecated This operation is deprecated and no longer maintained. Migrate your integration to List entitlements. Retrieves a list of all the item_entitlements for the item specified.
items.listItemEntitlements
- UpdateWrite
Update an item. Updates an item with the changes specified. Unspecified item parameters are not modified.
items.update
- Upsert Item EntitlementsWrite
Upsert or remove item entitlements for an item. Deprecated This operation is deprecated and no longer maintained. Migrate your integration to Manage entitlements. Warning This operation is not supported when grandfathering is enabled. Upserts or removes a set of item_entitlements for an item depending on the action specified.
items.upsertItemEntitlements
Item Prices
- CreateWrite
Create an item price. This API creates an item price (a price point) for an item.
itemPrices.create
- Create Differential PriceWrite
Create a differential price. for addon item price, addon item price with tiered pricing, or charge item price.
itemPrices.createDifferentialPrice
- DeleteDestructive
Delete an item price. Deletes an item price, marking its status as deleted. If it is part of a subscription or invoice, the item price status is marked archived instead. Once deleted, the id and name of the item price can be reused to create a new item price.
itemPrices.delete
- GetRead-only
Retrieve an item price. This API retrieves a specific item price using the id.
itemPrices.get
- ListRead-only
List item prices. Returns a list of item prices satisfying all the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order. ### Use Cases ##### Filter by custom fields Note: Custom field filters are turned off by default.
itemPrices.list
- List Applicable Item PricesRead-only
List applicable item prices for a plan-item price. Returns the set of all applicable addon-item prices for a specific plan-item price. This set consists of all the addon-item prices that can be applied to a subscription having the plan-item price.
itemPrices.listApplicableItemPrices
- List Applicable ItemsRead-only
List applicable items for a plan-item price. Returns the set of all applicable addon-items for a specific plan-item price . This set consists of all addon-items whose item prices can be applied to a subscription having the plan-item price in it.
itemPrices.listApplicableItems
- UpdateWrite
Update an item price. Updates an item price with the changes specified. Unspecified item price attributes are not modified.
itemPrices.update
Products
- CreateWrite
Create a product. This API creates a new product.
products.create
- Create VariantWrite
Create a product variant. This API is used for creating a new product variant. The following table will help you to understand the state of the variant status after passing status value during variant creation. * Parameter Value column holds possible inputs to the variant.status.
products.createVariant
- DeleteDestructive
Delete a product. This API deletes a product and changes the delete attribute value to true . Deletion of a product is not allowed if there are active or archived variants under the product or if there are items mapped to the product. Once deleted, the name of the product can be reused.
products.delete
- GetRead-only
Retrieve a product. using product_id . (GET /products/{product-id})
products.get
- ListRead-only
List products. This API retrieves the list of products that are active or inactive . Use include_deleted parameter to include deleted products with active and inactive products.
products.list
- List VariantsRead-only
List product variants. This API retrieves the list of product variants.
products.listVariants
- UpdateWrite
Update a product. This API allows you to update specific product details. The following table will help you to understand the status of the mapped item and item_price after passing product status value during product updation.
products.update
- Update OptionsWrite
Add remove or update options for the product. This API allows you to add, remove, or update product options.
products.updateOptions
Transactions
- Create AuthorizationDestructive
Create an authorization payment. Authorizes a specific amount in customer's Credit card, which can be collected within a span of time. Read more on authorization and capture here. * Supported only for Card payments. * Currently supported only for Stripe.
transactions.createAuthorization
- Delete Offline TransactionDestructive
Delete an offline transaction. This API deletes an offline transaction. However, to delete an offline transaction all payment allocations associated with the transaction must be removed.
transactions.deleteOfflineTransaction
- GetRead-only
Retrieve a transaction. identified by its unique id.
transactions.get
- ListRead-only
List transactions. Lists all the transactions. Note: For better query performance, we recommend using a date filter (for example, date[after] or date[between]) when listing transactions. If you are already filtering by updated_at, you do not need to also filter by date.
transactions.list
- ReconcileWrite
Reconcile transaction. Update selected attributes of the transaction resource: status, id_at_gateway, and customer_id. Use this API for reconciliation purposes where the status of a transaction is in needs_attention that can be updated to either success or failure status.
transactions.reconcile
- Record RefundDestructive
Record an offline refund. Records a refund made offline. Applicable only for transactions of type = payment.
transactions.recordRefund
- RefundDestructive
Refund a payment. Refunds an online payment. Applicable only for transactions of type = payment. You can only refund a transaction whose status is success. * Not supported for ach_credit, sepa_credit, cash, check, bank_transfer, other. * Contact Chargebee Support to enable this endpoint.
transactions.refund
- VoidDestructive
Void an authorization transaction. This API voids the specific authorization transaction in order to release the blocked funds from the customer's card. Voiding an already captured or voided transaction is not possible.
transactions.void
Addons
- CopyWrite
Copy an addon. Creates an addon in this site by copying its configurations from another site. Copying of archived addons is not supported. Note: The attribute *tax_profile_id* is not copied. In effect, if the plan is taxable, it will be mapped to the *Primary* tax profile. Product Catalog 1.0 sites only.
addons.copy
- CreateWrite
Create an addon. Create a new addon. Product Catalog 1.0 sites only.
addons.create
- DeleteDestructive
Delete an addon. When an addon that already has subscriptions/invoices linked to it is deleted, it does not get completely purged but is instead moved to "Archived" state. No other subscriptions can use this addon but subscriptions already on it will continue to renew. Product Catalog 1.0 sites only.
addons.delete
- GetRead-only
Retrieve an addon. Retrieve a specific addon using the ID. Product Catalog 1.0 sites only.
addons.get
- ListRead-only
List addons. List the addons. This returns all your current active and archived addons. Product Catalog 1.0 sites only.
addons.list
- UnarchiveWrite
Unarchive an addon. Unarchives a specific addon using the id. Product Catalog 1.0 sites only.
addons.unarchive
- UpdateWrite
Update an addon. When updating addons that already have an invoice or a subscription linked to it, you can only update the following parameters: * name * invoice_name * price * included_in_mrr * meta_data. Product Catalog 1.0 sites only.
addons.update
Coupon Sets
- Add Coupon CodesWrite
Add coupon codes to coupon set. This API add coupon codes to an existing coupon set.
couponSets.addCouponCodes
- CreateWrite
Create a coupon set. with a coupon code compatible to your product offers and promotional discounts.
couponSets.create
- DeleteDestructive
Delete a coupon set. Use this endpoint to delete a specific coupon set.
couponSets.delete
- Delete Unused Coupon CodesDestructive
Delete unused coupon codes. Use this API to delete all the unutilised coupon codes from a specific coupon set.
couponSets.deleteUnusedCouponCodes
- GetRead-only
Retrieve a coupon set. Use this API to retrieve a specific coupon set.
couponSets.get
- ListRead-only
List coupon sets. Use this API to get the list of all the coupon sets.
couponSets.list
- UpdateWrite
Update a coupon set. Use this API to update a specific coupon set by updating its name and the meta_data.
couponSets.update
Gifts
- CancelDestructive
Cancel a gift. This API allows to cancel gifts. Only gift in 'scheduled' and 'unclaimed' states can be cancelled.
gifts.cancel
- ClaimDestructive
Claim a gift. Claiming a gift will move the status to 'claimed'. Only gifts in 'unclaimed' state can be claimed.
gifts.claim
- CreateDestructive
Create a gift. Note: This operation optionally supports 3DS verification flow. To achieve the same, create the Payment Intent and pass it as input parameter to this API. Creates a gift subscription with the gifter and receiver. Only plans marked as gift plans can be used to create gift subscription. Product Catalog 1.0 sites only.
gifts.create
- Create For ItemsDestructive
Create a gift subscription for items. Create a gift subscription with items like plans, addons, or charges and gift it to an existing customer.
gifts.createForItems
- GetRead-only
Retrieve a gift. Retrieves a gift subscription. This API accepts the gift 'id' and returns the gift along with the subscription.
gifts.get
- ListRead-only
List gifts. Retrieves the list of gifts.
gifts.list
- UpdateDestructive
Update a gift. Updates the attributes of a gift. ### Prerequisites \& Constraints * The gift must be in the scheduled status.
gifts.update
Ledger Operations
- AllocateDestructive
Allocate. The allocate operation allocates credit grants to a subscription's provisioned balance. Behavior * Allocates the specified amount to the subscription's provisioned balance for the given unit_id.
ledgerOperations.allocate
- AuthorizeDestructive
Authorize. Reserves credit grants at the time of request for later finalization via capture_authorization or release_authorization. Use this operation when the final amount is unknown while a job is in progress, or when multiple concurrent operations or users draw from the same credit pool.
ledgerOperations.authorize
- CaptureDestructive
Capture. The capture operation immediately consumes credits for a completed action. Behavior * Credits are directly moved from usable → consumed. * No intermediate hold or reservation is created.
ledgerOperations.capture
- Capture AuthorizationDestructive
Capture authorization. The capture_authorization operation finalizes a previously created hold by converting reserved credits into consumed credits. API Behavior * Completes an earlier authorize operation. * Moves credits from held (reserved) → consumed (debited).
ledgerOperations.captureAuthorization
- GetRead-only
Retrieve ledger operation. Returns the details of a specific ledger operation by its unique identifier.
ledgerOperations.get
- ListRead-only
List ledger operations. Returns a list of operations meeting all the conditions specified in the filter parameters below.
ledgerOperations.list
- Release AuthorizationWrite
Release authorization. The release_authorization operation releases previously held credits back to the usable balance, effectively canceling an existing authorization (hold). API Behavior * Reverses an earlier authorize operation. * Moves credits from held (reserved) → usable balance.
ledgerOperations.releaseAuthorization
Plans
- CopyWrite
Copy a plan. Creates a plan in this site by copying its configurations from another site. Copying of archived plans is not supported. Note: The attribute *tax_profile_id* is not copied. In effect, if the plan is taxable, it will be mapped to the *Primary* tax profile. Product Catalog 1.0 sites only.
plans.copy
- CreateWrite
Create a plan. This endpoint creates a new plan based on the plan Id and plan name. Product Catalog 1.0 sites only.
plans.create
- DeleteDestructive
Delete a plan. Deletes or archives a plan. This endpoint behaves differently based on the scenarios listed below: * When the plan has subscriptions/invoices linked, it is not deleted. Instead, it is moved to the archived state. Subscriptions already on it continue to renew. Product Catalog 1.0 sites only.
plans.delete
- GetRead-only
Retrieve a plan. This endpoint retrieves a specific plan using the plan ID. Product Catalog 1.0 sites only.
plans.get
- ListRead-only
List plans. This API fetches all the active and archived plans. If the limit parameter is not set, it will return upto 10 plans. Product Catalog 1.0 sites only.
plans.list
- UnarchiveWrite
Unarchive a plan. This endpoint unarchives a specific plan which was archived earlier. Product Catalog 1.0 sites only.
plans.unarchive
- UpdateWrite
Update a plan. When updating plans that are already linked to an invoice or a subscription, you can only update the following parameters: * name * invoice_name * setup_cost * price * trial_period * trial_period_unit * redirect_url * enabled_in_hosted_pages * meta_data. Product Catalog 1.0 sites only.
plans.update
Alerts
- CreateWrite
Create an alert. Creates a new alert configuration. Depending on type, the alert can monitor usage, spend, or credit balance, and it can be global or subscription-scoped depending on whether subscription_id is provided. Note: Creating an alert defines the threshold rule only.
alerts.create
- DeleteDestructive
Delete an alert. Deletes an alert configuration. Only subscription-scoped alerts can be deleted using this endpoint. Important This operation cannot delete global alerts. To stop a global alert from firing, update the alert and set status to disabled instead.
alerts.delete
- GetRead-only
Retrieve an alert. Retrieves a single alert configuration by alert_id. This returns the rule definition only and does not include runtime evaluation state. Note: To check whether a subscription is currently within_limit or in_alarm for this alert, use List alert statuses for an alert.
alerts.get
- ListRead-only
List alerts. Returns a list of alert configurations meeting all the conditions specified in the filter parameters below. Results include both global and subscription-scoped alerts.
alerts.list
- List StatusesRead-only
List alert statuses for an alert. Returns the runtime state of a specific alert across all impacted subscriptions. Each entry indicates whether a subscription is within_limit or in_alarm for the given alert.
alerts.listStatuses
- UpdateWrite
Update an alert. Updates an existing alert configuration. Use this to change the threshold values or toggle the status between enabled and disabled. ### Impacts Alert status on threshold change When the threshold is updated for an alert, the alarm_status for all impacted subscriptions is reset to within_limit.
alerts.update
Business Entities
- CreateWrite
Create a business entity. Creates a business_entity resource for the site. Use this endpoint to set up an additional business unit or brand under your organization, each with its own configuration and data. Note This endpoint is available only when multiple business entities are enabled for your site.
businessEntities.create
- GetRead-only
Retrieve a business entity. Retrieves the business_entity resource identified by the specified unique identifier.
businessEntities.get
- ListRead-only
List business entities. Returns a list of business_entity resources configured for the site, meeting all the conditions specified in the filter parameters below. By default, this list is sorted by id in ascending order.
businessEntities.list
- List TransfersRead-only
List business entity transfers. Returns a list of business_entity_transfer resources meeting all the conditions specified in the filter parameters below. By default, this list is sorted by created_at in descending order (latest first).
businessEntities.listTransfers
- TransferDestructive
Transfer a customer to another business entity. Important This API will not work if you have specified a business entity in the custom HTTP header. Transfers one or more customer resources from one business entity to another. The transfer is executed by creating a copy of the customer resource.
businessEntities.transfer
- UpdateWrite
Update business entity. Updates the business_entity resource identified by the specified unique identifier. You can change the name and the status of the business entity.
businessEntities.update
Currencies
- Add ScheduleWrite
Add schedule. This API is used to schedule exchange rate modification for a manual forex_type currency.
currencies.addSchedule
- CreateWrite
Add a new currency. This API is used to add a new currency to your Chargebee site. Prior to using this API, ensure that the multi-currency feature is enabled. If the forex_type is set to manual , you can specify the manual_exchange_rate .
currencies.create
- GetRead-only
Retrieve a currency. This API is used to retrieve an individual currency object configured within this site.
currencies.get
- Get ListRead-only
List currencies. This API is used to retrieve the list of all currencies currently configured within the site.
currencies.getList
- Remove ScheduleWrite
Remove schedule. This API allows you to remove a scheduled exchange rate from a currency.
currencies.removeSchedule
- UpdateWrite
Update a currency. This API is used to update the configured currencies within your Chargebee site. Additionally, If the forex_type is set to manual , you can specify the manual_exchange_rate .
currencies.update
Pc2 Migration Items
- CreateWrite
Create a pc2_migration_item. (POST /pc2_migration_items)
pc2MigrationItems.create
- DeleteDestructive
Delete draft item. (POST /pc2_migration_items/{pc2-migration-item-id}/delete)
pc2MigrationItems.delete
- GetRead-only
Retrieve a pc2 migration item. (GET /pc2_migration_items/{pc2-migration-item-id})
pc2MigrationItems.get
- ListRead-only
List pc2 migration items. (GET /pc2_migration_items)
pc2MigrationItems.list
- List Applicable ItemsRead-only
Applicable_items a pc2_migration_item. (GET /pc2_migration_items/applicable_items)
pc2MigrationItems.listApplicableItems
- UpdateWrite
Update a pc2_migration_item. (POST /pc2_migration_items/{pc2-migration-item-id})
pc2MigrationItems.update
Unbilled Charges
- CreateDestructive
Create unbilled charges for a subscription. using this API. Product Catalog 1.0 sites only.
unbilledCharges.create
- Create For ItemsDestructive
Create unbilled charges for item subscription. This endpoint creates unbilled charges for a subscription.
unbilledCharges.createForItems
- DeleteDestructive
Delete an unbilled charge. Use this API to delete an unbilled charge by specifying the id of the charge.
unbilledCharges.delete
- Invoice Now EstimateRead-only
Create an estimate for unbilled charges. This is similar to the "Create an invoice for unbilled charges" API but no invoice will be created, only an estimate for this operation is created. In the estimate response, * estimate.invoice_estimates is an array of estimate.invoice_estimate.
unbilledCharges.invoiceNowEstimate
- Invoice Unbilled ChargesDestructive
Create an invoice for unbilled charges. Use this API to bill the unbilled charges. Available Credits and Excess Payments will automatically be applied while creating the invoice.
unbilledCharges.invoiceUnbilledCharges
- ListRead-only
List unbilled charges. This endpoint lists all the unbilled charges.
unbilledCharges.list
Virtual Bank Accounts
- CreateWrite
Create a virtual bank account. Creates a virtual bank account for a customer. Email address is mandatory for virtual bank account creation. All notifications related to this virtual bank account will be sent to the email address you specify. Customer's email and virtual bank accounts will always be in sync.
virtualBankAccounts.create
- Create Using Permanent TokenWrite
Create a virtual bank account using permanent token. Creates a virtual bank account (VBA) for a customer using a permanent token obtained from a payment gateway. Use this operation when you have already created a payment source at the gateway and obtained a permanent token (reference ID) for it.
virtualBankAccounts.createUsingPermanentToken
- DeleteDestructive
Delete a virtual bank account. Deletes a virtual bank account. If there is no virtual bank account present in the gateway for the customer, this API will return successfully without throwing an error.
virtualBankAccounts.delete
- Delete LocalDestructive
Local delete a virtual bank account. Deletes virtual bank accounts from Chargebee. Payment method in the payment gateway, and Auto Collection settings in Chargebee are not affected.
virtualBankAccounts.deleteLocal
- GetRead-only
Retrieve a virtual bank account. Retrieves the virtual bank account identified by the unique identifier.
virtualBankAccounts.get
- ListRead-only
List virtual bank accounts. Lists all the virtual bank accounts.
virtualBankAccounts.list
Collections Payment Promises
- CancelDestructive
Cancel a collections payment promise. Cancels an active collections payment promise. Cancelling does not resume the invoice's reminder sequence. A promise can also end automatically. When the invoice is paid, the promise becomes fulfilled or broken. When the invoice is voided, written off, or deleted, the promise becomes cancelled.
collectionsPaymentPromises.cancel
- CreateWrite
Create a collections payment promise. Creates a collections payment promise that records a customer's commitment to pay by promised_on. The response is a list with one promise for each covered invoice. To cover one invoice, pass invoice_id and an amount equal to that invoice's amount due.
collectionsPaymentPromises.create
- GetRead-only
Retrieve a payment promise. Retrieves a collections payment promise by ID.
collectionsPaymentPromises.get
- ListRead-only
List collections payment promises. Lists collections payment promises. All filters are optional; without filters, promises are returned newest first.
collectionsPaymentPromises.list
- UpdateWrite
Update a collections payment promise. Updates an active collections payment promise. You can change promised_on, reason, or promised_by; omitted parameters remain unchanged.
collectionsPaymentPromises.update
Credit Units
- ArchiveDestructive
Archive a credit unit. Archives an active credit unit. Once archived, the credit unit can no longer be used to create grant configurations for items and grant configuration overrides for subscriptions. Any grants that were already configured for this credit unit will continue to be effective.
creditUnits.archive
- CreateWrite
Create a credit unit. Creates a new credit unit in the active status.
creditUnits.create
- ListRead-only
List credit units. Retrieves a paginated list of credit units meeting all the conditions specified in the filter parameters.
creditUnits.list
- ReactivateDestructive
Reactivate a credit unit. Reactivates an archived credit unit. Once reactivated, the credit unit can be used to configure grants for plans, add-ons, and charges, as well as grant configuration overrides for subscriptions.
creditUnits.reactivate
- UpdateWrite
Update a credit unit. Updates an existing credit unit.
creditUnits.update
Item Families
- CreateWrite
Create an item family. This endpoint creates an item family for your product line or service.
itemFamilies.create
- DeleteDestructive
Delete an item family. Deletes an item family, marking its status as deleted . This is not allowed if there are active items under the item family. Once deleted, the id and name of the item family can be reused to create a new item family.
itemFamilies.delete
- GetRead-only
Retrieve an item family. This endpoint retrieves an item family based on the item family id.
itemFamilies.get
- ListRead-only
List item families. Returns a list of item families satisfying all the conditions specified in the filter parameters below. The list is sorted by date of creation, in descending order.
itemFamilies.list
- UpdateWrite
Update an item family. This endpoint updates the name and/or description of the item family.
itemFamilies.update
Pc2 Migration Item Families
- CreateWrite
Create a pc2_migration_item_family. (POST /pc2_migration_item_families)
pc2MigrationItemFamilies.create
- DeleteDestructive
Delete draft family. (POST /pc2_migration_item_families/{pc2-migration-item-family-id}/delete)
pc2MigrationItemFamilies.delete
- GetRead-only
Retrieve a pc2 migration item family. (GET /pc2_migration_item_families/{pc2-migration-item-family-id})
pc2MigrationItemFamilies.get
- ListRead-only
List pc2 migration item families. (GET /pc2_migration_item_families)
pc2MigrationItemFamilies.list
- UpdateWrite
Update a pc2_migration_item_family. (POST /pc2_migration_item_families/{pc2-migration-item-family-id})
pc2MigrationItemFamilies.update
Price Ramps
- CreateWrite
Create a price ramp. Creates a price ramp for an item price. Use this operation to schedule how the item price changes across a subscription's billing cycles by defining an ordered set of ramp_intervals.
priceRamps.create
- DeleteDestructive
Delete a price ramp. Deletes a price ramp. Its status is set to deleted and the linked item price's price_ramp_id is cleared, so new subscriptions no longer inherit the ramp and a new ramp can be created for the item price. Subscriptions that already captured the ramp keep that schedule.
priceRamps.delete
- GetRead-only
Retrieve a price ramp. Retrieves a price ramp using its unique ID, including its status and the ordered list of ramp_intervals. ### Prerequisites \& Constraints * Price Ramps must be enabled for the site. Contact Chargebee Support to enable them. Until they are enabled, this operation returns API_RESTRICTED.
priceRamps.get
- ListRead-only
List price ramps. Retrieves a list of price ramps for your site. You can filter the results by attributes such as id, item_price_id, status, and updated_at, and sort them using sort_by. Only active and archived price ramps are returned by this operation. deleted price ramps are not listed.
priceRamps.list
- UpdateWrite
Update a price ramp. Updates a price ramp. You can either change its status (to activate or archive it) or replace its ramp_intervals. These two changes are mutually exclusive within a single request. When ramp_intervals is provided, the existing intervals are replaced in full with the new ordered set.
priceRamps.update
Price Variants
- CreateWrite
Create a price variant. This endpoint allows the creation of a new price variant that can be attached to item prices.
priceVariants.create
- DeleteDestructive
Delete a price variant. Deletes the price variant. This is not allowed if price variant is attached to any item price. Once deleted, the id and name of the price variant can be reused.
priceVariants.delete
- GetRead-only
Retrieve a price variant. This endpoint retrieves the details of a specific price variant using its unique identifier.
priceVariants.get
- ListRead-only
List price variants. This endpoint is used to retrieve a list of price variants.
priceVariants.list
- UpdateWrite
Update a price variant. This endpoint modifies the details of an existing price variant.
priceVariants.update
Promotional Credits
- AddWrite
Add promotional credits. This API call can be used to add promotional credits to a customer. Learn more about Promotional Credits. For example, if a customer has credits of $10, if you pass the amount as $10, then the customer's credit balance would become $20.
promotionalCredits.add
- DeductDestructive
Deduct promotional credits. This API call can be used to deduct promotional credits for a customer. Learn more about Promotional Credits. For example, if a customer has a credit balance of $20, if you pass the amount as $5, then the customer's credit balance would become $15.
promotionalCredits.deduct
- GetRead-only
Retrieve a promotional credit. This endpoint retrieves the promotional credit based on the promotional credit id.
promotionalCredits.get
- ListRead-only
List promotional credits. This endpoint lists the promotional credits set for a customer.
promotionalCredits.list
- SetWrite
Set promotional credits. This API call can be used to set the promotional credits balance of a customer. Learn more about Promotional Credits. For example, * If a customer has a credit balance of $10 and if you would like to set the balance to $100, you could pass the amount as $100.
promotionalCredits.set
Webhook Endpoints
- CreateWrite
Create a webhook endpoint. Create a new webhook API endpoint on your Chargebee Site.
webhookEndpoints.create
- DeleteDestructive
Delete a webhook endpoint. Deletes a webhook endpoint using its unique identifier. Use this API to remove obsolete or inactive webhook endpoints from your Chargebee site. Deleting an endpoint ensures it no longer receives event notifications.
webhookEndpoints.delete
- GetRead-only
Retrieve a webhook endpoint. Retrieves the details of a specific webhook endpoint using its unique identifier. Use this API to inspect an endpoint's configuration, such as the target URL, subscribed events, and authentication settings.
webhookEndpoints.get
- ListRead-only
List webhook endpoints. Retrieves all webhook endpoints configured on your Chargebee site. The response includes each endpoint's ID, name, and target URL. Use this API to view, audit, or manage the list of webhook endpoints currently active or configured in your site.
webhookEndpoints.list
- UpdateWrite
Update webhook endpoint. Updates the configuration of an existing webhook endpoint using its unique identifier. You can use this API to change properties such as the name, URL, subscribed events, authentication credentials, or API version.
webhookEndpoints.update
Comments
- CreateWrite
Create a comment. Create a new comment for an entity. The newly added comment will be shown in the web interface as well.
comments.create
- DeleteDestructive
Delete a comment. for an entity identified by comment ID. Only the comments that are added via Admin console and API can be deleted. Chargebee generated "System" comments cannot be deleted.
comments.delete
- GetRead-only
Retrieve a comment. for an entity identified by comment ID.
comments.get
- ListRead-only
List comments. Retrieve the list of comments sorted by the recent ones on the top. If you want to retrieve the list of comments for an entity, for example, subscription you can filter them by passing the entity type and unique identifier for that entity, for example, subscription ID.
comments.list
Differential Prices
- DeleteDestructive
Delete a differential price. using a differential_price_id and item_price_id .
differentialPrices.delete
- GetRead-only
Retrieve a differential price. using a differential_price_id and item_price_id .
differentialPrices.get
- ListRead-only
List differential prices. Returns a list of differential prices satisfying all the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order (latest first).
differentialPrices.list
- UpdateWrite
Update a differential price. using a differential_price_id and item_price_id .
differentialPrices.update
In App Subscriptions
- Import ReceiptDestructive
Import receipt. Verifies an Apple App Store or Google Play Store in-app purchase receipt and imports subscriptions for all historical purchases made by the customer. Tip An in_app_subscription is created for every unique original_transaction_id .
inAppSubscriptions.importReceipt
- Import SubscriptionWrite
Import subscription without receipt. The Import Subscriptions endpoint is a Chargebee API that allows you to import historic In-App Subscriptions without using a valid Apple App Store receipt. This endpoint is useful if you do not have access to the receipt data which is required for the Import Receipt API.
inAppSubscriptions.importSubscription
- Process PurchaseDestructive
Process purchase command. Verifies an in-app purchase made by your customer and creates a subscription in Chargebee. Note: If App Store or Play Store products have not been imported to Chargebee and this API is invoked, Chargebee will automatically create plans that correspond to the store product IDs.
inAppSubscriptions.processPurchase
- Retrieve Store SubscriptionRead-only
Retrieve store subscription. This API verifies the application id {in_app_subscription_app_id} and receipt then returns the subscription details associated with the purchase. #### Path Parameter in_app_subscription_app_id required, string The handle is created by Chargebee for your Apple App Store or Google Play Store app.
inAppSubscriptions.retrieveStoreSubscription
Metered Features
- ArchiveDestructive
Archive a metered feature. Archives a metered feature and its associated meter. The sample responses show metered features with and without group-by attributes. ### Prerequisites \& Constraints * The metered feature must be active.
meteredFeatures.archive
- CreateWrite
Create a metered feature. Creates a metered feature. Use query to define how Chargebee measures usage for the metered feature. The result is a single aggregate across all matching usage events. To report grouped usage, include attributes in a GROUP BY clause. Each distinct set of values forms one usage group.
meteredFeatures.create
- DeleteDestructive
Delete a metered feature. Permanently deletes a metered feature. The sample responses show metered features with and without group-by attributes. ### Prerequisites \& Constraints * The metered feature status must not be active.
meteredFeatures.delete
- ReactivateDestructive
Reactivate a metered feature. Restores a previously archived metered feature status back to active. The sample responses show metered features with and without group-by attributes. ### Prerequisites \& Constraints * The metered feature status must be archived.
meteredFeatures.reactivate
Omnichannel Subscriptions
- GetRead-only
Retrieve an omnichannel subscription. Retrieves an omnichannel_subscription by its Chargebee id. You can obtain the ID from: * A successful record a purchase response (linked_omnichannel_subscriptions) * The list omnichannel subscriptions API * Omnichannel webhook events such as omnichannel_subscription_created.
omnichannelSubscriptions.get
- ListRead-only
List omnichannel subscriptions. Returns a list of omnichannel_subscription objects. Filter by Chargebee id, store-native id_at_source, customer_id, source, purchase/update timestamps, or nested item attributes. Apple App Store : Filter id_at_source with the original purchase Transaction ID.
omnichannelSubscriptions.list
- List TransactionsRead-only
List omnichannel transactions of an omnichannel subscription. Returns the list of omnichannel_transaction objects associated with the specified omnichannel_subscription, including the initial purchase and subsequent renewals when available. Apple App Store : Each transaction's id_at_source is the App Store Transaction ID .
omnichannelSubscriptions.listTransactions
- MoveDestructive
Move an omnichannel subscription. Moves an omnichannel_subscription to another customer in Chargebee. ### Prerequisites * The target customer must already exist in Chargebee (or be creatable via your usual customer APIs before calling this operation). * The omnichannel subscription must already be recorded in Chargebee.
omnichannelSubscriptions.move
Payment Schedule Schemes
- CreateWrite
Create a payment schedule scheme. Creates a payment schedule scheme. After creating a payment schedule scheme, you can use it to generate payment schedules for multiple invoices.
paymentScheduleSchemes.create
- DeleteDestructive
Delete a payment schedule scheme. This endpoint deletes a payment schedules created for an invoice.
paymentScheduleSchemes.delete
- GetRead-only
Retrieve a payment schedule scheme. This endpoint retrieves an existing payment schedule.
paymentScheduleSchemes.get
- ListRead-only
List payment schedule schemes. Returns a list of payment schedule schemes that match all the specified filter conditions. The list is sorted by id in descending order. Use limit and offset to paginate through the results.
paymentScheduleSchemes.list
Pc2 Migration Item Prices
- DeleteDestructive
Delete draft item price. (POST /pc2_migration_item_prices/{pc2-migration-item-price-id}/delete)
pc2MigrationItemPrices.delete
- GetRead-only
Retrieve a pc2 migration item price. (GET /pc2_migration_item_prices/{pc2-migration-item-price-id})
pc2MigrationItemPrices.get
- ListRead-only
List pc2 migration item prices. (GET /pc2_migration_item_prices)
pc2MigrationItemPrices.list
- UpdateWrite
Update a pc2_migration_item_price. (POST /pc2_migration_item_prices/{pc2-migration-item-price-id})
pc2MigrationItemPrices.update
Pc2 Migrations
- Contact SupportWrite
Contact_support a pc2_migration. (POST /pc2_migrations/{pc2-migration-id}/contact_support)
pc2Migrations.contactSupport
- CreateWrite
Create a pc2_migration. (POST /pc2_migrations)
pc2Migrations.create
- GetRead-only
Retrieve a pc2 migration. (GET /pc2_migrations/{pc2-migration-id})
pc2Migrations.get
- InitiateDestructive
Initiate a pc2_migration. (POST /pc2_migrations/{pc2-migration-id}/initiate)
pc2Migrations.initiate
Portal Sessions
- ActivateWrite
Activate a portal session. When an user is sent back to your return URL with session details, you should validate that information by calling this API. The details passed to the return_url should be sent as below: * auth_session_id - this should be sent as part of the endpoint.
portalSessions.activate
- CreateWrite
Create a portal session. Creates a portal session for a customer. The session resource in the response contains the access URL. Forward the customer to that access URL. If you would like to logout the customer later via API call, you need to store the id of the portal session resource returned by this API.
portalSessions.create
- GetRead-only
Retrieve a portal session. This API retrieves a portal session using portal_session_id as a path parameter.
portalSessions.get
- LogoutWrite
Logout a portal session. Logs out the portal session. Typically this should be called when customers logout of your application. If this API is called for a Portal Session that currently is in : * "created" status, the session status will be marked as "logged_out" and the access URL will become invalid.
portalSessions.logout
Ramps
- DeleteDestructive
Delete a subscription ramp. Deletes the specified subscription ramp. However, Chargebee only allows deleting a ramp if it does not conflict with future ramps on the subscription.
ramps.delete
- GetRead-only
Retrieve a subscription ramp. Retrieves a specific subscription ramp.
ramps.get
- ListRead-only
List subscription ramps. Lists the subscription ramps that match the criteria provided in the filter parameters. Note By default, the ramps are returned sorted in descending order (latest first) by updated_at.
ramps.list
- UpdateWrite
Update a subscription ramp. Updates an existing subscription ramp by replacing its current attribute values with the new parameters provided. When using this API to modify a ramp, make sure to include all the ramp's attributes as you would do during creation of the ramp with the necessary values updated.
ramps.update
Attached Items
- DeleteDestructive
Delete an attached item. Deletes an attached addon or a charge item.
attachedItems.delete
- GetRead-only
Retrieve an attached item. Retrieves details of an attached addon or a charge item.
attachedItems.get
- UpdateWrite
Update an attached item. Updates an attached addon or a charge item for a plan.
attachedItems.update
Coupon Codes
- ArchiveDestructive
Archive a coupon code. Archives a coupon code thereby making it inactive. The archived coupon code cannot be applied to any subscription.
couponCodes.archive
- GetRead-only
Retrieve a coupon code. Retrieves a specific coupon code details.
couponCodes.get
- ListRead-only
List coupon codes. List the available coupon codes.
couponCodes.list
Offer Fulfillments
- CreateWrite
Create an offer fulfillment. This API notifies that a user has accepted an offer, logs an accepted event immediately for reporting, and triggers a backend processing depending on the offer's processing_type. You can call this API when a user accepts an offer (e.g., the user clicked Accept Offer or a similar confirmation).
offerFulfillments.create
- GetRead-only
Retrieve an offer fulfillment. This API is used to retrieve the fulfillment record. This is typically used to check the latest status of an asynchronous offer fulfillment. You can use this after creating an offer fulfillment (billing update or checkout).
offerFulfillments.get
- UpdateWrite
Update an offer fulfillment. This API is used to update the status of offer fulfillment for the processing types url_redirect, webhook and email as Chargebee cannot automatically fulfill these offers. If status = failed, you must include a failure_reason to explain why the fulfillment did not succeed.
offerFulfillments.update
Organization Details
- CreateWrite
Update organization details. (POST /organization_details)
organizationDetails.create
- GetRead-only
Retrieve organization details. (GET /organization_details/{organization-detail-id})
organizationDetails.get
- ListRead-only
List organization details. (GET /organization_details)
organizationDetails.list
Payment Intents
- CreateWrite
Create a payment intent. Creates a PaymentIntent object. This is to be used with Chargebee.js API to complete the 3DS flow for new or stored cards. While creating, specify the appropriate gateway account and amount. Exact amount can be estimated using our Estimate API.
paymentIntents.create
- GetRead-only
Retrieve a payment intent. Retrieves the PaymentIntent resource.
paymentIntents.get
- UpdateWrite
Update a payment intent. Updating properties on a PaymentIntent object. All the subsequent 3DS transaction attempts will have the updated values.
paymentIntents.update
Time Machines
- GetRead-only
Retrieve a time machine. Retrieves the time machine. Currently only one time machine is available per site and is named 'delorean'.
timeMachines.get
- Start AfreshDestructive
Start afresh. Restart the time machine. This will clear the "customer" data like customer details, subscriptions, invoices, transactions. Also a time travel is initiated to travel back to specified genesis time. Note: This API call is asynchronous. Test sites only: deletes all test data on the site and resets the clock.
timeMachines.startAfresh
- Travel ForwardDestructive
Travel forward. in time. This operation is asynchronous . You need to check if the "start afresh" operation has completed by checking if the time travel status is successful by retrieving the time machine in a loop with a minimum delay of 3 secs between two retrieve requests. Test sites only: moves the site's clock forward and runs every billing event in between.
timeMachines.travelForward
Tokens
- Create For CardWrite
Create a card payment method token. Generate a token that holds card related information.
tokens.createForCard
- Create Using Temp TokenWrite
Create using vault temp token. Generate a token using the one time token created by payment gateways for any specific payment method.
tokens.createUsingTempToken
- GetRead-only
Retrieve a token. using token ID. (GET /tokens/{cb-token-id})
tokens.get
Variants
- DeleteDestructive
Delete a product variant. This API deletes a product variant and returns the delete attribute value as true . Deletion of a product variant is not allowed if there are active or archived item_price_id under the variant. Once the variant is deleted, the id and name of the product variant can be reused.
variants.delete
- GetRead-only
Retrieve a product variant. This API is used to retrieve a product variant using variant_id .
variants.get
- UpdateWrite
Update a product variant. This API is used to modify a product variant.
variants.update
Addresses
- CreateWrite
Update an address. Adds or replaces the address for a subscription. If an address is already present for the specified label, it will be replaced otherwise new address is added with that label.
addresses.create
- ListRead-only
Retrieve an address. Retrieves an address resource for a subscription and the specified label.
addresses.list
Custom Field Configs
- Get MetadataRead-only
Retrieve a custom field configuration. Retrieves the configuration for the custom field that matches the specified entity type and API name.
customFieldConfigs.getMetadata
- ListRead-only
List custom field configurations. Lists the configurations for all custom fields defined for the specified entity type.
customFieldConfigs.list
Disputes
- GetRead-only
Retrieve A Dispute. Retrieves a dispute identified by its unique id. Use this operation to check the current status of a dispute, the amount under dispute, and the transaction and customer it relates to. To find disputes when you don't have the dispute id, use the List disputes operation.
disputes.get
- ListRead-only
List Disputes. Lists the disputes raised against the transactions on your site, with the most recently created dispute first. Use the filter parameters to narrow the list to the disputes you want to act on.
disputes.list
Einvoices
- GetRead-only
Retrieve an e-invoice. Retrieve the e-invoice for the specified e-invoice id (einvoice_id).
einvoices.get
- ListRead-only
List e-invoices. Returns a list of e-invoices. You can filter by id, reference id, updated at, invoice id, or credit note id.
einvoices.list
Entitlements
- CreateWrite
Manage entitlements for a feature. Create, update, or remove a set of entitlements for a feature. The behavior depends on the specified action. It tries to create, update, or delete entitlement objects. If any of the entitlement objects fail to process, the entire operation stops with an error, and no entitlements are processed.
entitlements.create
- ListRead-only
List entitlements. Retrieves a list of all the entitlements associated with the specified feature.
entitlements.list
Events
- GetRead-only
Retrieve an event. Retrieves a specific event identified by a unique event identifier. Note: Only events that are less than 90 days old will be retrieved.
events.get
- ListRead-only
List events. Retrieves list of events. (GET /events)
events.list
Gateway Request Logs
- GetRead-only
Retrieve a gateway request log. (GET /gateway_request_logs/{gateway-request-log-log-id})
gatewayRequestLogs.get
- ListRead-only
List gateway request logs. (GET /gateway_request_logs)
gatewayRequestLogs.list
Gateway Webhook Logs
- GetRead-only
Retrieve a gateway webhook log. (GET /gateway_webhook_logs/{gateway-webhook-log-webhook-id})
gatewayWebhookLogs.get
- ListRead-only
List gateway webhook logs. (GET /gateway_webhook_logs)
gatewayWebhookLogs.list
Ledger Account Balances
- ListRead-only
List ledger account balances. Returns a paginated list of real-time credit balance snapshots for a subscription. Each item in the list is a ledger_account_balance object, identified by a unique combination of subscription_id, unit_id, unit_type.
ledgerAccountBalances.list
- Update Overdraft LimitWrite
Update the overdraft limit. Updates the overdraft limit for a subscription and credit unit. By default, the overdraft limit for a credit unit is a single, site-wide value applied to every subscription.
ledgerAccountBalances.updateOverdraftLimit
Omnichannel One Time Orders
- GetRead-only
Retrieve a one time order. Retrieves an omnichannel_one_time_order by its Chargebee id. You can obtain the ID from: * A successful record a purchase response (linked_omnichannel_one_time_orders) * The list omnichannel one-time orders API * Omnichannel webhook events such as omnichannel_one_time_order_created.
omnichannelOneTimeOrders.get
- ListRead-only
List omnichannel one time orders. Returns a list of omnichannel_one_time_order objects. Filter by customer_id or source (apple_app_store / google_play_store). Use this together with record a purchase and webhook events such as omnichannel_one_time_order_created to reconcile one-time purchases.
omnichannelOneTimeOrders.list
Payment Vouchers
- CreateWrite
Create a voucher for the customer to initiate payment. Creates a voucher type payment source. If you create this voucher type payment source using customer details, like tax ID, you can then generate a voucher with that payment source.
paymentVouchers.create
- GetRead-only
Retrieve voucher data. Retrieves a voucher using the unique payment_voucher_id .
paymentVouchers.get
Pricing Page Sessions
- Create For Existing SubscriptionWrite
Create pricing page for existing subscription. This endpoint streamlines the generation of a pricing page session to enable subscription upgrade , and downgrade workflows using Chargebee's hosted pricing pages (Atomic Pricing ). By providing a subscription ID as a parameter, you will obtain a hosted pricing page session URL.
pricingPageSessions.createForExistingSubscription
- Create For New SubscriptionWrite
Create pricing page for new subscription. This endpoint streamlines the generation of a pricing page session to enable new subscription creation workflows using Chargebee's hosted pricing pages (Atomic Pricing ). By providing a subscription ID and/or customer ID as a parameter, you'll obtain a pricing page session URL.
pricingPageSessions.createForNewSubscription
Purchases
- CreateDestructive
Create a purchase. Creates a purchase resource. A purchase can contain one or more of the following: * subscriptions (a subscription resource consists of item prices such that at least one of the item prices belongs to an item of type plan.) * group of one-time charges (aka charge item prices) When you call this API,…
purchases.create
- EstimateRead-only
Estimates for purchase. Returns an estimate for creating a purchase resource. The operation works exactly like Create a purchase, except that only an estimate resource is returned without an actual purchase resource being created.
purchases.estimate
Recorded Purchases
- CreateWrite
Record a purchase. Records an in-app purchase from Apple App Store or Google Play Store in Chargebee. The API starts an asynchronous verification job and returns a recorded_purchase resource. Track progress with status: in_process, completed, failed, or ignored. Handle the synchronous API response first.
recordedPurchases.create
- GetRead-only
Retrieve a recorded purchase. Retrieves a recorded_purchase object using the recorded_purchase.id returned by the Record a Purchase API.
recordedPurchases.get
Usage Files
- Get Processing StatusRead-only
Retrieve file processing status. Use this endpoint to get the current status and details of a usage events file.
usageFiles.getProcessingStatus
- Get Upload UrlWrite
Retrieve usage file upload URL. This endpoint returns an upload URL for uploading usage events files, allowing you to upload files in supported formats. The file is processed asynchronously, and its status can be tracked using the retrieve_file_processing_status endpoint.
usageFiles.getUploadUrl
Usages
- Get PdfRead-only
Retrieve usages for an invoice as PDF. Advanced Usage-Based Billing For high-scale usage ingestion, use Advanced Usage-Based Billing with the Usage Events API. The Usage Events API supports schemaless event ingestion at scale, including individual events, batch ingestion, and usage file ingestion.
usages.getPdf
- ListRead-only
Advanced Usage-Based Billing For high-scale usage ingestion, use Advanced Usage-Based Billing with the Usage Events API. The Usage Events API supports schemaless event ingestion at scale, including individual events, batch ingestion, and usage file ingestion. Retrieves the list of usages.
usages.list
Batch
- Ingest UsagesWrite
Ingest usage events in batch. This endpoint ingests a batch of usage events into Chargebee. Note : - You can ingest 500 events in a batch ingestion. See also * Limits for Usage-based Billing in Chargebee.
batch.ingestUsages
Cards
- GetRead-only
Retrieve card for a customer. #### Deprecated This operation is obsoleted by the Retrieve a payment source API . Retrieves the credit card for the customer id.
cards.get
Configurations
- ListRead-only
List site configurations. Returns a list of your domain and product catalog version details.
configurations.list
Csv Tax Rules
- CreateWrite
Taxes Csv import. (POST /csv_tax_rules)
csvTaxRules.create
Full Exports
- Get StatusRead-only
Retrieve full export status. This endpoint retrieves the status of your data export request.
fullExports.getStatus
Grant Blocks
- ListRead-only
List grant blocks. Returns a list of grant blocks meeting all the conditions specified in the filter parameters below.
grantBlocks.list
Meters
- ListRead-only
List all available meters. Retrieves the list of meters configured for the site. The sample responses show meters with and without group-by attributes.
meters.list
Non Subscriptions
- One Time PurchaseDestructive
One time purchase. This API is used to sync consumable, non-consumable, and non-renewing product payments in Chargebee.
nonSubscriptions.oneTimePurchase
Offer Events
- CreateWrite
Create an offer event. The Create Offer Event API records user interactions with an offer for tracking and analytics purposes. Use this API to log user-triggered engagement events such as: * viewed - when an offer is displayed to the user. * dismissed - when the user closes or ignores the offer.
offerEvents.create
Omnichannel Subscription Items
- List Scheduled ChangesRead-only
List scheduled changes for omnichannel subscription item. Returns scheduled changes for the specified omnichannel_subscription_item. Scheduled changes are created when the store will apply a product or pause change later (typically at term end), for example: * Apple App Store : Scheduled downgrade within the same subscription group.
omnichannelSubscriptionItems.listScheduledChanges
Payment Schedules
- ListRead-only
List payment schedules. Returns a list of payment schedules that match all the specified filter conditions. The list is sorted by updated_at in descending order. Use limit and offset to paginate through the results. Use invoice_id to restrict results to one or more invoices.
paymentSchedules.list
Personalized Offers
- CreateWrite
List personalized offers. This API is used to retrieve a list of personalized offer(s) for a customer based on the context (such as customer or subscription details and end-user attributes). This allows you to retrieve any active offers targeted to the user.
personalizedOffers.create
Promotional Grants
- CreateWrite
Create Promotional Grant. (POST /promotional_grants)
promotionalGrants.create
Resource Migrations
- Get LatestRead-only
Retrieve latest migration details. Gets the last migration details.
resourceMigrations.getLatest
Retry Segments
- GetRead-only
Retrieve a retry segment. (GET /retry_segments/{retry-segment-id})
retrySegments.get
Rules
- GetRead-only
Retrieve rule data. (GET /rules/{rule-id})
rules.get
Site Migration Details
- ListRead-only
List site migration details. This endpoint lists the site migration details.
siteMigrationDetails.list
Site Pc Meta Records
- ListRead-only
List site pc meta records. (GET /site_pc_meta_records)
sitePcMetaRecords.list
Usage Events
- CreateWrite
Ingest a usage event. This endpoint ingests a usage event into Chargebee. See also * Limits for Usage-based Billing in Chargebee.
usageEvents.create
Vaulted Payment Methods
- GetRead-only
Retrieve vaulted payment method. (GET /vaulted_payment_methods/{vaulted-payment-method-id})
vaultedPaymentMethods.get
Connect Chargebee to Claude, ChatGPT or Cursor
- 1
Connect Chargebee in Corsair
Add your Chargebee API key once in Corsair. Corsair stores the credential encrypted and makes the Chargebee API calls for your agent, so it never goes into a prompt or a config file. Connect Chargebee
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Chargebee. On a ChatGPT personal plan, connect Chargebee here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Chargebee's read and write operations run right away and its 155 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/chargebee, add the Chargebee plugin, and connect with an API key. Then call methods like corsair.chargebee.api.addons.copy() from your app. Corsair keeps each tenant isolated.
Yes. Chargebee requires an API key from your Chargebee account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Chargebee, GitHub, Notion, Stripe, and the rest. Trigger Chargebee from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for subscription billing with Chargebee: customers, subscriptions, items and prices, invoices, credit notes, payments, coupons, quotes, estimates, hosted pages, usage, entitlements and exports, on Product Catalog 2.0 and 1.0 sites (546 operations). Common builds include sync jobs, admin tooling, and agents that call Chargebee APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Chargebee API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/chargebee in the open repo. When Chargebee ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Chargebee data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Chargebee data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Chargebee on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 155 destructive Chargebee operations. You can change a link's mode at hub.corsair.dev/me.