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

Parameters: get_customer
NameTypeDescription
customer_id string required string Customer ID from find_customer.

Request

cURL
curl https://cotlet.dev/api/v1/chargebee/customers/customer_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("chargebee", "get_customer", {"customer_id":"customer_8c41d2"})
Node.js
const result = await cotlet.call('chargebee', 'get_customer', {"customer_id":"customer_8c41d2"});
CLI
cotlet call chargebee get_customer --data '{"customer_id":"customer_8c41d2"}'

Example response

JSON

{
  "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"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.