Customer data

List application customers matching the given attributes

Changed on

[!note] Management API endpoints are not meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.

Get a list of the application customers matching the provided criteria.

The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request.

post/v1/applications/{applicationId}/customer_search

Request

Path parameters

applicationIdinteger required

The ID of the Application. It is displayed in your Talon.One deployment URL.

Query parameters

pageSizeinteger

The number of items in the response.

skipinteger

The number of items to skip when paging through large result sets.

withTotalResultSizeboolean

When this flag is set, the result includes the total number of results for this query. This might decrease performance on large data sets.

  • When true: totalResultSize contains the total number of results for this query.
  • When false: Only hasMore is returned, and it is set to true when there are more results than shown on the page.
withLoyaltyMembershipsboolean

When set to true, the loyaltyProgramJoinDates property returns the dates on which each customer joined the profile-based loyalty programs they are part of. This might decrease performance on large data sets.

Request body

attributesobject

Properties to match against a customer profile. All provided attributes will be exactly matched against profile attributes.

integrationIDsstring[]
profileIDsinteger[]

Response

OK

hasMoreboolean
totalResultSizeinteger

Example response

{
  "data": [
    {
      "id": 6,
      "created": "2020-02-07T08:15:22Z",
      "integrationId": "URNGV8294NV",
      "attributes": {
        "Language": "english",
        "ShippingCountry": "DE"
      },
      "accountId": 31,
      "closedSessions": 3,
      "totalSales": 299.99,
      "loyaltyMemberships": [
        {
          "joined": "2012-03-20T14:15:22Z",
          "loyaltyProgramId": 323414846
        }
      ],
      "audienceMemberships": [
        {
          "id": 2,
          "name": "Travel audience"
        }
      ],
      "lastActivity": "2020-02-08T14:15:20Z",
      "loyaltyProgramJoinDates": [
        {
          "joined": "2012-03-20T14:15:22Z",
          "loyaltyProgramId": 323414846
        }
      ]
    }
  ]
}

Changes

    • info

      added the new optional query request parameter withLoyaltyMemberships

    • info

      added the optional property /// to the response with the status