Skip to content
Software capabilities

Stripe capability

Read a Stripe customer record

Retrieve a Customer by its cus_ ID through the API or Stripe SDK. The Dashboard lets you open the customer while working through billing details by hand.

Documentation reviewed

Ways to do it

API

GET /v1/customers/{id}

Read the customer’s details and metadata by ID.

Requirements
A Stripe API key allowed to read customers and a customer ID from the corresponding account and mode.
Limitations
For a deleted customer, Stripe returns a reduced object with deleted set to true.

Example

curl --fail --user "$STRIPE_SECRET_KEY:" "https://api.stripe.com/v1/customers/$CUSTOMER_ID"
Read source: Stripe retrieve a customer

SDK

stripe.customers.retrieve(id)

Look up one customer from a Node.js billing integration.

Requirements
An initialized Stripe client and the customer’s cus_ ID.
Limitations
Callers need to handle the deleted customer shape before accessing fields such as email.

Example

const customer = await stripe.customers.retrieve(customerId);
Read source: Stripe customer retrieve for Node.js

Interface

Stripe Dashboard → Customers

Open a customer profile to inspect its billing details and related activity.

Requirements
A Dashboard account with access to Customers in the relevant Stripe account and mode.
Limitations
The page is a manual lookup. Use the API when your application needs a machine-readable customer object.
Read source: Stripe customer management