Easymailing
Store customers

List store customers

GET /stores/{storeResourceId}/customers

GET/stores/{storeResourceId}/customers

Returns the customers of one store, most recently updated first. Each is linked to a member of the store's audience.

When to use: To find a customer by email, name, company or phone, or to check who is already synchronized from a shop.

When not to use: To read one customer with their member use get_store_customer; to search audience members by any attribute use search_member.

Filters: email, company, firstname, lastname: partial match. phone: exact match, in E.164 format. Sort with order[created_at], order[updated_at], order[email], order[firstname], order[lastname] or order[company] (asc/desc).

Permissions: Requires the viewer role or higher, or the marketing.audiences.read capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

storeResourceId*string

Identifier (resource_id) of the store the customer belongs to.

Query Parameters

page?integer

The collection page number

Default1
itemsPerPage?integer

The number of items per page

Range0 <= value <= 50
Default30
email?string

Return only customers whose email contains this text.

company?string

Return only customers whose company contains this text.

firstname?string

Return only customers whose first name contains this text.

lastname?string

Return only customers whose last name contains this text.

phone?string

Return only the customer with this exact phone number, in E.164 format.

Response Body

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/stores/acme-shop/customers?email=ana%40&company=Acme&firstname=Ana&lastname=Garc%C3%ADa&phone=%2B34612345678" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "resource_id": "string",    "email": "user@example.com",    "phone": "string",    "company": "string",    "firstname": "string",    "lastname": "string",    "member": "/entity/1",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]