Create a new customer
Customer creation options
Created customer
Get a customer by ID
Customer ID
Customer details
List customers with cursor-based pagination
Optionaloptions: ListCustomersOptions
List options including cursor for pagination
Customers and optional cursor for next page
// Get first page
const page1 = await square.customers.list({ limit: 50 });
// Get next page using cursor
const page2 = await square.customers.list({ cursor: page1.cursor, limit: 50 });
// Sort by creation time, newest first
const recent = await square.customers.list({ sortField: 'CREATED_AT', sortOrder: 'DESC' });
Search for customers
Optionaloptions: SearchCustomersOptions
Search options
Matching customers with pagination
Update a customer
Customer ID to update
Update options
Updated customer
Customers service for managing Square customers
Example