List Customers
GET {{baseUrl}}/customers?page=1&keyword=eiusmod ut
You can list all customers related to your store directly from this endpoint. Also, it allows you to filter them using a keyword, the endpoint would retrieve any customer matches this keyword in their data whether in their mobile number or email or name.
OAuth Scopes
customers.read
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
page | number | The Pagination page number | |
keyword | string | A keyword to filter returned list |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"status":200,"success":true,"data":[{"id":2075683582,"first_name":"Ahmed","last_name":"Ali","mobile":777777777,"mobile_code":"967","email":"ahmedali@test.test","urls":{"customer":"https://shtara.com/profile","admin":"https://shtara.com/profiley"},"avatar":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","gender":"male","city":"Riyadh","country":"السعودية","location":"null","updated_at":{"date":"2020-04-02 22:43:26.000000","timezone_type":3,"timezone":"Asia/Riyadh"}},{"id":2075683581,"first_name":"Ali","last_name":"Ahmed","mobile":777777777,"mobile_code":"967","email":"aliahmed@test.test","avatar":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","gender":"male","city":"Riyadh","country":"السعودية","location":"null","updated_at":{"date":"2020-04-02 22:43:26.000000","timezone_type":3,"timezone":"Asia/Riyadh"}}],"pagination":{"count":2,"total":2,"perPage":15,"currentPage":1,"totalPages":1,"links":[]}}