200Successful Response
Schema: SuccessEnvelope_CustomerListResponse_
successbooleanmessagestringcodestringdataCustomerListResponse
/api/v1/customersRetrieve all customers for the business with optional filtering.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
idstringFilter by specific customer ID
emailstringFilter by customer email address
searchstringFuzzy search customers by name (uses trigram matching)
statusstringFilter by status: active, inactive, or blocked
cursorstringCursor for pagination
limitintegerPagination limit
directionstringdefault: nextPagination direction: 'next' or 'prev'
include_total_countbooleandefault: FalseWhether to include total count (expensive - avoid if possible)
sort_bystringColumn name to sort by (e.g. 'created_at', 'amount', 'name'). When changing sort, reset cursor to None.
descendingbooleandefault: TrueSort direction: true for descending (newest/largest first), false for ascending
Schema: SuccessEnvelope_CustomerListResponse_
successbooleanmessagestringcodestringdataCustomerListResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject