Customer Object
A customer object contains the following information:Customer Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique customer identifier with cus_ prefix |
name | string | Full name (combination of first and last name) |
first_name | string | Customer’s first name |
last_name | string | Customer’s last name |
email | string | Customer’s email address |
avatar_url | string | URL to the customer’s avatar image |
phone | object | Phone number with country information |
store | object | Store the customer belongs to |
created_at | string | ISO 8601 timestamp of when the customer was created |
updated_at | string | ISO 8601 timestamp of when the customer was last updated |
Listing Customers
Retrieve all customers for your store:Query Parameters
| Parameter | Type | Description |
|---|---|---|
per_page | integer | Number of customers per page (default: 15, max: 100) |
cursor | string | Cursor for pagination (use next_cursor from previous response) |
search | string | Search by name, email, or phone number |
start_date | string | Filter customers created from this date (Y-m-d format) |
end_date | string | Filter customers created until this date (Y-m-d format) |
Searching Customers
Search for customers by name, email, or phone number:Filtering by Date Range
Retrieve customers created within a specific date range:Example Response
Getting a Single Customer
Retrieve a specific customer by their public ID:Customer Lifecycle
1
Customer Created
A new customer record is created when they make their first purchase.
2
Purchase Recorded
Each purchase is linked to the customer’s profile.
3
Access Granted
The customer receives access to their purchased products (downloads, courses, licenses).
4
Portal Access
Customers can access the customer portal to view their purchases and downloads.
Common Use Cases
CRM Integration
CRM Integration
Sync customers to your CRM by fetching new customers using date filters:
Email Marketing
Email Marketing
Add customers to your email lists based on their purchases:
Customer Lookup
Customer Lookup
Look up a customer by email when they contact support:The search parameter matches against name, email, and phone number fields.
Monthly Reports
Monthly Reports
Generate monthly customer acquisition reports using date filters:This retrieves all customers who made their first purchase in January 2025.