Search Customers (Premium)
coupons/v1/searchcustomers
This endpoint was introduced on ACFWP version 3.0
GET: /wp-json/coupons/v1/searchcustomers
Requirements:
Logged-in user
user role with
manage_woocommerceuser capability
Method
Endpoint
GET
/wp-json/coupons/v1/searchcustomers
Query Parameters
Required
Type
Description
search
yes
string
search keyword
Search customers with first name as John
GET: http://example.com/wp-json/coupons/v1/searchcustomers?search=JohnStatus: 200 OK
Search customers with first name as John
[
{
"user_id": 7,
"user_fullname": "John Smith",
"user_email": "johnsmith@example.com"
},
{
"user_id": 6,
"user_fullname": "John Wayne",
"user_email": "johnwayne@example.com"
},
...
]Status: 403 Forbidden
{
"code": "rest_forbidden_context",
"message": "Sorry, you are not allowed access to this endpoint.",
"data": {
"status": 401
}
}Last updated
Was this helpful?