Search Customers by Label

Retrieves the list of customers who are tagged to a specific label. You can also search by partial label name. By default you will see a maximum of 10 records.

  • Rate limiter controls the number of incoming and outgoing traffic of a network.
  • Authentication verifies the identity of the current user or integration.
    See Introduction > Authentication (Merchant Setup on Admin Portal) for more details.
👍

Note

For detailed information about the APIs and for hands-on testing, refer to the API overview documentation and step-by-step guide on making your first API call.

Prerequisites

  • Basic Authentication
  • Default access group

Resource information

URIcustomers/labels/search?q=LabelName
HTTP methodGET
AuthenticationBasic
Pagination supported?NO
Rate limitYES
Batch supportNO

Query parameters

ParameterData TypeDescription
qStringSpecify the label name by which you want to fetch customers. You can also pass partial string. The search query. Values are case-sensitive. For example pre to fetch customers in all labels that starts with pre.
offsetIntegerNumber of records to skip for pagination.
limitIntegerMaximum number of records to return. -1 means no limit (fetch all records).

Response parameters

ParameterData TypeDescription
paginationObjectPagination details. The maximum number of records to return per page. Defaults to 10 if not specified.
- limitIntegerNumber of records returned per page.
- offsetIntegerOffset used for pagination.
- totalIntegerTotal number of records available.
dataArrayArray of user data objects.
- userIdIntegerUnique identifier of the user.
- customerLabelsArrayLabels assigned to this user.
-- orgIdIntegerOrganization ID where the label belongs.
-- labelIdIntegerUnique ID of the label.
-- labelNameStringName of the label assigned to the user.
warningsArrayAny warnings returned by the API.
errorsArrayAny errors returned by the API.
{
    "pagination": {
        "limit": 10,
        "offset": 0,
        "total": 10
    },
    "data": [
        {
            "userId": 564738364,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 564738364,
                    "labelName": "Premium Customer"
                }
            ]
        },
        {
            "userId": 564955097,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 564955097,
                    "labelName": "Premium Customer"
                }
            ]
        },
        {
            "userId": 564955098,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 564955098,
                    "labelName": "Premium Customer"
                }
            ]
        },
        {
            "userId": 564955301,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 564955301,
                    "labelName": "Premium Customer"
                }
            ]
        },
        {
            "userId": 564955302,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 564955302,
                    "labelName": "Premium Customer"
                }
            ]
        },
        {
            "userId": 564955411,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 564955411,
                    "labelName": "Premium Customer"
                }
            ]
        },
        {
            "userId": 565032176,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 565032176,
                    "labelName": "Premium Customer"
                }
            ]
        },
        {
            "userId": 565118794,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 565118794,
                    "labelName": "Premium Customer"
                }
            ]
        },
        {
            "userId": 564582355,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 564582355,
                    "labelName": "Premium Customer"
                }
            ]
        },
        {
            "userId": 564703420,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 20942,
                    "userId": 564703420,
                    "labelName": "Premium Customer"
                }
            ]
        }
    ],
    "warnings": [],
    "errors": []
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!