List customers
Retrieve a paginated list of customers with optional filtering and searching.
Authorization
applicationPassword AuthorizationBasic <token>
WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).
In: header
Query Parameters
page?integer
Page number
Default
1per_page?integer
Number of results per page
Default
10search?string
Search customers by name or email
order_by?string
Field to sort by
Default
"id"order_type?string
Sort direction
Default
"DESC"Value in
"ASC" | "DESC"Response Body
application/json
application/json
curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/customers"{
"customers": {
"current_page": 0,
"data": [
{
"id": 0,
"user_id": 0,
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"status": "string",
"total_order_count": 0,
"total_order_amount": 0,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
],
"first_page_url": "string",
"from": 0,
"last_page": 0,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 0,
"prev_page_url": "string",
"to": 0,
"total": 0
}
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}