Get Customers Bulk

Retrieve customer profiles in bulk

This is an internal Capillary API that fetches multiple customer profiles in one request by providing a list of customer IDs. It uses the POST method, and the user IDs of the customers are included in an array in the request body.

Example request

curl --location 'https://eu.api.capillarytech.com/v2/bulk/getCustomers?source=INSTORE' \
--header 'Authorization: Basic *******' \
--header 'Content-Type: application/json' \
--header 'Cookie: _cfuvid=pG2dUTv9AmZsbCWt8RQ1DqWpR2Clfbg.S4lVYFcivvI-1726479424405-0.0.1.1-604800000; _cfuvid=TsciSMonFzukHfHftQcO_JuWhgCktLLqX53atcboO64-1749190644325-0.0.1.1-604800000; _cfuvid=7E2nHmtQ1Wf4YPId8dKF4zUgMUwj5lS5xFEvh1lLZwY-1757926160974-0.0.1.1-604800000' \
--data '[564332013,565338404, 566135941]'

Prerequisites

  • Authentication: Basic or OAuth credentials
  • Default access group

Resource information

Pagination supportNo
Rate limitDemo and testing clusters: 1000 requests per minute per API key. Other organizations: Rate limit is brand-specific.
Batch supportYes

Query parameters

Field

Type

Required

Description

source

string

Yes

Source where the customer was created. Example: INSTORE, WECHAT

Body parameters

An array containing the user or customer IDs of the customers whose details are fetched. The values are comma-separated, and the field name is not required. Usage: [564332013,565338404, 566135941].

Example response

{
    "data": [
        {
            "entity": {
                "id": 564332013,
                "profiles": [],
                "loyaltyInfo": {
                    "loyaltyType": "loyalty"
                },
                "segments": {},
                "extendedFields": {}
            },
            "warnings": [],
            "errors": [
                {
                    "status": false,
                    "code": 8109,
                    "message": "Customer is deleted after PII delete request"
                }
            ],
            "success": false
        },
        {
            "entity": {
                "id": 565338404,
                "profiles": [
                    {
                        "firstName": "Muhammad",
                        "lastName": "Johns",
                        "fields": {},
                        "allFields": {},
                        "identifiers": [
                            {
                                "type": "mobile",
                                "value": "912726093529"
                            },
                            {
                                "type": "email",
                                "value": "[email protected]"
                            },
                            {
                                "type": "externalId",
                                "value": "00008572"
                            }
                        ],
                        "commChannels": [
                            {
                                "type": "mobile",
                                "value": "912726093529",
                                "primary": true,
                                "verified": false,
                                "meta": {
                                    "residence": false,
                                    "office": false
                                },
                                "attributes": {}
                            },
                            {
                                "type": "email",
                                "value": "[email protected]",
                                "primary": true,
                                "verified": false,
                                "meta": {
                                    "residence": false,
                                    "office": false
                                },
                                "attributes": {}
                            }
                        ],
                        "source": "INSTORE",
                        "userId": 565338404,
                        "accountId": "",
                        "conflictingProfileList": [],
                        "autoUpdateTime": "2025-09-15T09:29:33Z",
                        "identifiersAll": [
                            {
                                "type": "mobile",
                                "value": "912726093529"
                            },
                            {
                                "type": "email",
                                "value": "[email protected]"
                            },
                            {
                                "type": "externalId",
                                "value": "00008572"
                            }
                        ]
                    }
                ],
                "loyaltyInfo": {
                    "loyaltyType": "loyalty",
                    "lifetimePurchases": 0.000
                },
                "segments": {},
                "associatedWith": "tj_capillary",
                "extendedFields": {},
                "cardDetails": []
            },
            "warnings": [],
            "errors": [],
            "success": true
        },
        {
            "entity": {
                "id": 566135941,
                "profiles": [
                    {
                        "firstName": "John",
                        "lastName": "Pork",
                        "fields": {},
                        "allFields": {},
                        "identifiers": [
                            {
                                "type": "externalId",
                                "value": "696969"
                            },
                            {
                                "type": "mobile",
                                "value": "918088369835"
                            }
                        ],
                        "commChannels": [
                            {
                                "type": "mobile",
                                "value": "918088369835",
                                "primary": true,
                                "verified": false,
                                "meta": {
                                    "residence": false,
                                    "office": false
                                },
                                "attributes": {}
                            }
                        ],
                        "source": "INSTORE",
                        "userId": 566135941,
                        "accountId": "",
                        "conflictingProfileList": [],
                        "autoUpdateTime": "2025-09-15T09:29:33Z",
                        "identifiersAll": [
                            {
                                "type": "externalId",
                                "value": "696969"
                            },
                            {
                                "type": "mobile",
                                "value": "918088369835"
                            }
                        ]
                    }
                ],
                "loyaltyInfo": {
                    "loyaltyType": "loyalty",
                    "lifetimePurchases": 201000.000,
                    "score": 0
                },
                "segments": {},
                "associatedWith": "naman_doc",
                "extendedFields": {},
                "cardDetails": []
            },
            "warnings": [],
            "errors": [],
            "success": true
        }
    ],
    "warnings": [],
    "errors": []
}

Response parameters

ParameterData TypeDescription
.dataArrayArray of customer entities with details.
..entityObjectEntity object containing customer details.
...idintegerUnique customer ID whose details are fetched.
...profilesArrayArray of customer profiles.
....firstNamestringCustomer’s first name.
....lastNamestringCustomer’s last name.
....fieldsObjectCustom profile fields.
.....allFieldsObjectAll available profile fields.
....identifiersArrayList of identifiers linked to the customer.
.....typestringIdentifier type (e.g., mobile, email, externalId).
.....valuestringIdentifier value.
....commChannelsArrayCustomer’s communication channels.
.....typestringCommunication type (e.g., mobile, email).
.....valuestringCommunication value (e.g., phone number, email).
.....primarybooleanIndicates if the channel is primary.
.....verifiedbooleanIndicates if the channel is verified.
.....metaObjectMetadata for the communication channel.
......residencebooleanIndicates if linked to residence.
......officebooleanIndicates if linked to office.
......attributesobjectAdditional attributes for the channel.
....sourcestringSource of the profile (e.g., INSTORE).
....userIdintegerUser ID of the profile.
....accountIdstringAccount ID associated with the profile.
....conflictingProfileListArrayList of conflicting profiles, if any.
....autoUpdateTimestringLast auto-update timestamp in ISO 8601 format.
....identifiersAllArrayAll identifiers for the profile.
.....typestringType of identifier.
.....valuestringValue of identifier.
...loyaltyInfoObjectLoyalty-related information.
....loyaltyTypestringType of loyalty program.
....lifetimePurchasesintegerLifetime purchase value.
....scoreintegerLoyalty score (if available).
...segmentsObjectSegment information.
...associatedWithstringAssociated brand or system.
...extendedFieldsobjectExtended customer fields.
...cardDetailsArrayList of associated card details.
..warningsArrayEntity-level warnings.
..errorsArrayEntity-level errors.
...statusbooleanError status flag.
...codeintegerError code.
...messagestringError message.
..successbooleanIndicates if the operation was successful.
.warningsArrayList of warnings at the top level.
.errorsArrayList of errors at the top level.

Error codes

CodeDescription
400Invalid Request
404Resource not found
500UNEXPECTED_ERROR
405Method not allowed. Request body missing.
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!