Get customer
One customer with tax status, credits and payment collection setting.
GET https://cotlet.dev/api/v1/chargebee/customers/{customer_id}
read
Returns the customer record behind a customer ID. Refundable credits and excess payments are amounts in the smallest currency unit, so 5000 is $50.00. auto_collection is on or off: with on, Chargebee charges the saved payment method when an invoice is due.
Parameters
| Name | Type | Description |
|---|---|---|
| customer_id string required | string | Customer ID from find_customer. |
Request
curl https://cotlet.dev/api/v1/chargebee/customers/customer_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("chargebee", "get_customer", {"customer_id":"customer_8c41d2"}) const result = await cotlet.call('chargebee', 'get_customer', {"customer_id":"customer_8c41d2"}); cotlet call chargebee get_customer --data '{"customer_id":"customer_8c41d2"}' Example response
{
"customer_id": "cus_9s2kQw",
"company": "Brightleaf Analytics",
"email": "billing@brightleaf.example",
"auto_collection": "on",
"taxability": "taxable",
"refundable_credits": 0,
"excess_payments": 0,
"created_at": "2025-03-12T09:14:00Z"
}