GET
/
api
/
extraction
/
v1
/
clients
curl --request GET \
  --url https://api.bspk.com/api/extraction/v1/clients \
  --header 'Authorization: Bearer <token>'
[
  {
    "current_sales_associate_id": "SA_01",
    "current_sales_associate_name": "FirstName-84 LastName-84",
    "current_store_id": null,
    "current_store_name": null,
    "client_id": "EXTERNAL_ID_150",
    "name": "FirstName-85 LastName-85",
    "first_name": "FirstName-85",
    "last_name": "LastName-85",
    "email": "someone92@example.com",
    "mobile_phone": "+14153400067",
    "other_phone": "+14153400067",
    "birthday": null,
    "gender": null,
    "nationality": null,
    "passport_number": null,
    "language": null,
    "title": null,
    "address": "",
    "addresses": [
      {
        "address": null,
        "address_2": null,
        "address_3": null,
        "address_4": null,
        "city": null,
        "state": null,
        "zip": null,
        "country_code": null
      }
    ],
    "preferred_contact_channel": null,
    "communication_preferences": {
      "chat_opt_in": true,
      "email_opt_in": true,
      "phone_opt_in": true,
      "whatsapp_opt_in": false,
      "wechat_opt_in": false,
      "line_opt_in": false,
      "opt_out": false
    },
    "preferences": [],
    "interests": [],
    "preferred_journey": null,
    "segment": null,
    "referred_by_client_id": null,
    "referred_at": null,
    "consent": false,
    "notify_of_new_collection": false,
    "last_contacted_at": "2024-08-02T12:29:24.068Z",
    "created_at": "2024-08-07T12:29:24.099Z",
    "updated_at": "2024-08-07T12:29:24.099Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

client_ids
string

Client id owned by the brand

sales_associate_ids
string

Sales Associate id owned by the brand

from
string

Only show clients updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

to
string

Combined with the from parameter, only show clients updated whitin the given range (from..to) time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

page
string

Page number of the results to fetch. Default: 1

per_page
string

Results per page (max 100). Default: 30

Response

200 - application/json

Successful response, returns array of clients

The response is of type object[].