Retrieves the details of a customer from a specific source. Use embed
to other parameters to fetch specific details required.
Retrieves details of a specific customer such as:
- Profile information – first name, last name, registered date, registered at TILL
- Recent profile updated – details of the recent update in profile information
- Registered identifiers, communication channels
- Loyalty information – loyalty status, registered date, purchases, etc.
- Multiple Loyalty Program details: Program wise details if the org has multiple loyalty programs support
- Customer image
To fetch customer details from a specific account of a source (source with multiple accounts), you need to provide the respective account id.
If you attempt to retrieve data of any deleted customer after a successful PII deletion, you will receive the following response:
"message": "Customer is deleted after PII delete request"
API endpoint
{host}/v2//customers/{customerId}/{queryparameters}
Query parameters
Parameter (Parameters marked with * are mandatory) | Type | Description |
---|---|---|
source* | Enum [INSTORE, MARTJACK, WECHAT, LINE, ALL] | Specifies the source of the customer details to be retrieved. |
accountId | String | Unique identifier for the account. |
embed | Array of String | Details to include in the response. Supported values:
|
includedAllUserGroup2 | Boolean (false) | Pass |
userGroup2Id | Long | Unique ID of the user group to fetch customer details from. |
includedUserGroup2LoyaltyDetails | Boolean (false) | Pass |
includedFraudDetails | Boolean (false) | Pass |
includedOnlyCurrentProfile | Boolean (false) | Pass |
ug2JoinedStartDate | DateTime | Start date for filtering customers who joined user groups. |
ug2JoinedEndDate | DateTime | End date for filtering customers who joined user groups. |
ug2Offset | Integer | Specifies the offset for pagination of user group results. |
ug2Limit | Integer | Sets the maximum number of results to retrieve per page for user groups. |
ug2SortBy | String (JoinedDate) | Specifies the field by which the user group results should be sorted. |
ug2SortOrder | Enum [ASC, DESC] (DESC) | Specifies the sorting order for the user group results. |
ug2PaginationDetails | Boolean | Pass |
gapToUpgrade | Integer |
|
gapToRenew | Integer |
0: Retrieves the renewal value for the current day.
|
Response parameters
Parameter | Description |
---|---|
id | Unique identifier for the customer. |
profiles | List of customer profiles containing various details such as name, attribution, identifiers, communication channels, source, etc. |
loyaltyInfo | Information related to the customer's loyalty, including loyalty type, attribution, and lifetime purchases. |
segments | Object containing the segment and partition names.
|
associatedWith | Code identifying the association of the customer (e.g., till code). |
ug2Pagination | Pagination details for user group results related to the customer. |
extendedFields | Additional extended fields associated with the customer, such as city and gender. |
cardDetails | Details of the card owned by the customer, including card ID, issued date, expiry date, series information, status, and more. |
warnings | List of warnings related to the response. |
upgradeStrategies | Provides the set of rules or conditions that defines how a customer progresses to a higher tier in a loyalty program. |
-upgrade_based_on | Parameter using which the upgrade condition is determined. Example: |
-upgradeThreshold | Threshold value required for an upgrade. Example: |
-customerUpgradeEntityValues | Current values related to the customer’s upgrade. |
--currentValue | Current value attained by the customer. Example: |
--gapToUpgrade | Additional value required for the upgrade. Example: |
--valueValidUpto | Date untill which the value is valid, in YYYY-MM-DD format. Example: 2025-05-06. |
gapToRenewSummary | Set of rules or conditions required for tier renewal for the customer in a loyalty program.
|
-tierExpiryDate | Expiry date of the current tier, in YYYY-MM-DD format. Example: 2024-12-31. |
-renewConfirmed | Indicates if the tier renewal is confirmed. Values: |
-renewStrategies | Array containing details of the rules or conditions for tier renewal. |
--renewBasedOn | Specifies the renewal strategy. Example: |
--trackerEntityIdentifiers | Array containing details of the tracker. Visible in case of tracker based renewal. |
---trackerName | Name of the tracker. Example: |
---trackerType | Entity tracked, such as transaction amount, line-item count, or customer visits. Example: |
---trackerMode | Method used to evaluate tracker values over time, Example: |
---trackerCaseName | Name of the specific tracker case. Example: Case1. |
---trackerCasePeriodType | Specifies the duration type for evaluating the tracker case, such as days, months, or calendar cycles. Example: |
---trackerCasePeriodValue | Value of the tracker case period. Example: |
--renewThreshold | Threshold value required by the customer to renew the tier. Example: |
--customerRenewEntityValue | Current value reached by the customer. Example: |
--customerGapToRenewValue | Additional value required for the tier renewal. Example: |
Note:
Retrieving Customers transaction data in bulk is NOT supported in this API.
API specific Error Code
Error Code | Description | Reason |
---|---|---|
400 | Bad Request with Blank response | Not passed valid identifiers |