Skip to main content
GET
/
customers
/
{id}
Get a customer
curl --request GET \
  --url https://api.nomos.energy/customers/{id} \
  --header 'Authorization: Bearer <token>'
{
  "object": "customer",
  "id": "cus_b14fklz9x9n0m14o02f5o347",
  "type": "person",
  "first_name": "John",
  "last_name": "Doe",
  "email": "john.doe@example.com",
  "created_at": "2024-03-14T12:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Example:

"cus_ck9mdia5egvpnslb4x2oj4tc"

Response

Retrieve the customer details

  • Option 1
  • Option 2
object
enum<string>
required

Type of the object, always 'customer'

Available options:
customer
id
string
required

Unique identifier for the customer

Example:

"cus_b14fklz9x9n0m14o02f5o347"

first_name
string
required

Customer's first name

Required string length: 1 - 30
Example:

"John"

last_name
string
required

Customer's last name

Required string length: 1 - 30
Example:

"Doe"

email
string<email>
required

Email address

Example:

"john.doe@example.com"

created_at
required

Timestamp when the customer was created

Example:

"2024-03-14T12:00:00Z"

type
enum<string>
default:person

Type of the customer, always 'person'

Available options:
person