Admin Customers
List customers
Changed onPaginated, filterable, sortable list. Returns the standard { data, meta } admin envelope; each row carries the linked group as a nested object.
get/customers
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pageinteger
Page number
per_pageinteger
Items per page (default 10, max 50).
querystring
Example:john
Quick search: matches email or full name (partial), combined with OR.
namestring
Filter by first/last name (partial).
emailstring
Filter by email (partial).
phonestring
Filter by phone (partial).
customer_group_idinteger
Filter by customer group ID.
statusinteger
Filter by status (0/1).
channel_idinteger
Filter by channel ID.
sort'id' | 'email' | 'first_name'
Sort column.
order'asc' | 'desc'
Sort direction.
Response
Paginated customers in the { data, meta } envelope.
Changes
- info
added the new optional
queryrequest parameterquery
- info