List all customers
This API helps you to list all customers.
HTTP Request
/wp-json/supportcandy/v2/customers
Available parameters
Parameter | Type | Description |
---|---|---|
page |
integer | Current page of the collection. Default is 1 . |
per_page |
integer | Maximum number of items to be returned in result set. Default is 20 . |
search |
string | Limit results to those matching a string. |
Example
curl --location --request GET 'http://localhost/wp-json/supportcandy/v2/customers?page=1&per_page=20&search=' \
--header 'Authorization: Basic YWRtaW46bjVJWSBYc3pUIGlxN3MgSHhKWCA3YVdBIDlOblI='
Get single customer
This API helps you to list a single customer.
HTTP Request
/wp-json/supportcandy/v2/customers/<id>
Example
curl --location --request GET 'http://localhost/wp-json/supportcandy/v2/customers/1' \
--header 'Authorization: Basic YWRtaW46bjVJWSBYc3pUIGlxN3MgSHhKWCA3YVdBIDlOblI='