How to display the Chargebee customer or subscription ID to my customer
Scope
- How can I make the Chargebee record ID customer facing?
- How do I share the Chargebee user ID with my customer?
Summary
By default, Chargebee-generated IDs are intended for internal reference and management. However, depending on your use case, you may need to share these unique IDs with your customers. There are two ways to do this: via the Chargebee app or via Chargebee APIs.
Via Chargebee:
If you generate invoices for your customers or their subscriptions, you can choose to include the Customer ID and/or Subscription ID in the invoice PDF. This allows customers to see their record ID directly on their invoices. Here's more information on how to customize your invoice.
Via API:
You can retrieve a customer's record ID using either:
- List Customers API (email filter parameter can be used to narrow down on the customer record)
- List Subscriptions API (customer_id filter parameter can be used to narrow down on the subscription record)
Once retrieved, you can display the ID on your website, application, or user portal as needed.
Related Articles
Was this article helpful?