Sweet Spot API

Command Palette

Search for a command to run...

GET/v1/customers

Retrieves a list of customers with optional pagination, sorting, and filtering. Use this endpoint to display customer lists in admin interfaces or search for specific customers. Supports filtering by organization (via checkout relationships), email (partial match), and name (partial match). Results are automatically filtered based on the authenticated user's permissions. Requires CustomerRead capability.

Parameters
Request parameters for this endpoint
NameLocationTypeRequiredDescription
organizationIdquerystringOptionalFilter by organization ID (finds customers via checkouts)
emailquerystringOptionalSearch by email (partial match, case-insensitive)
namequerystringOptionalSearch by name (searches first_name, last_name, and full_name)
offsetqueryintegerOptionalNumber of items to skip for pagination
limitqueryintegerOptionalMaximum number of items to return per page
userIdquerystringOptionalFilter customers by user ID
Response Data
Fields returned in the response
NameTypeRequiredDescription
address1
string
OptionalPrimary street address line
address2
string
OptionalOptional secondary address line (apartment, suite, etc.)
city
string
OptionalCity name
country
string
OptionalCountry code (ISO format)
createdAt
string (date-time)
RequiredTimestamp when the customer record was created
creditIpAddress
string
OptionalIP address used when performing the credit check
creditStatus
RequiredCurrent credit check status (unknown, passed, or failed)
creditTimestamp
string
OptionalTimestamp when the credit check was performed
id
CustomerPubId
RequiredPublic-facing unique identifier for the customer
phone
string
OptionalPhone number of the customer
state
string
OptionalState or province code
stripeId
string
OptionalStripe customer ID for payment processing (production)
stripeSandboxId
string
OptionalStripe customer ID for payment processing (sandbox)
updatedAt
string (date-time)
RequiredTimestamp when the customer record was last updated
userId
UserId
RequiredUser account associated with this customer
zip
string
OptionalPostal or ZIP code