Download OpenAPI specification:Download
Services for CPR Vision's headless CRM.
Find all profile IDs (CUID, RUID, GDID) based on a given customer attributes. The result is limited to the access token's values for crmnx_client_code, crmnx_brand_code, crmnx_country_code.
| nationalId | string Filter results by national ID. |
string Filter results by email. | |
| mobileCc | string Filter results by mobile country code |
| mobile | string Filter results by mobile number without country code. |
| phone | string Filter results by phone number without country code. |
| firstName | string Filter results by first name. |
| lastName | string Filter results by last name. |
| birthYear | number Filter results by birth year. |
| birthMonth | number Filter results by birth month numeric value, 1 for January, 2 for February, etc. |
| birthDay | number Filter results by birth day, 1 to 31 |
{- "code": 200,
- "message": "OK",
- "results": [ ],
- "result": [
- {
- "id": "C1AU00000000001",
- "type": 1,
- "crmCustId": "100",
- "crmType": 1
}
]
}Create or initialize profile ID (CUID, RUID, GDID). The result is limited to the access token's values for crmnx_client_code, crmnx_brand_code, crmnx_country_code.
Request body
| profileUqId | string Custom profiler unique ID (CUID/RUID/GDID) |
| nationalId | string National ID |
string | |
| mobileCc | string Mobile country code |
| mobile | string Mobile number without country code |
| phone | string Phone number without country code |
| firstName | string First name |
| lastName | string Last name |
| birthYear | number Birth year |
| birthMonth | number Birth month numeric value, 1 for January, 2 for February, etc |
| birthDay | number Birth day, 1 to 31 |
| consumerType | string Consumer type |
| employeeId | string Employee ID |
| sourceSystemId | string Source system ID |
| sourceRecordId | string Source record ID |
| customCode | string Source custom code |
| creationLocationId | string Creation location ID |
| creationBAid | string Creation BA ID |
| creationDate | string <date-time> Creation date and time |
{- "profileUqId": "EMPTEST0001",
- "nationalId": "ABCD0001",
- "email": "john@acme.com",
- "mobileCc": "65",
- "mobile": "98765432",
- "phone": "87654321",
- "firstName": "John",
- "lastName": "Appleseed",
- "birthYear": 1990,
- "birthMonth": 1,
- "birthDay": 1,
- "consumerType": 1,
- "employeeId": "EMPTEST0001",
- "sourceSystemId": "SYS123",
- "sourceRecordId": "REC123",
- "customCode": "CUST123",
- "creationLocationId": "LOC123",
- "creationBAid": "BA123",
- "creationDate": "2022-01-20T15:45:00.000+00:00"
}{- "code": 200,
- "message": "OK",
- "results": [ ],
- "result": {
- "id": "C1AU00000000001",
- "type": 1,
- "crmCustId": "100",
- "crmType": 1
}
}Delete profiler mapping (CUID, RUID, GDID) for a given customer ID within the context of the brand specified in the URL.
Request body
| crmCustId | string Customer Id |
{- "crmCustId": "100"
}{- "code": 200,
- "message": "Successfully deleted the profiler mapping",
- "result": {
- "id": "C1AU00000000001",
- "type": 1,
- "crmCustId": "100",
- "crmType": 1
}
}Get profile by ID (CUID, RUID, GDID). The result is limited to the access token's values for crmnx_client_code, crmnx_brand_code, crmnx_country_code.
| id required | string Profile ID (CUID, RUID, GDID) |
{- "code": 200,
- "message": "OK",
- "results": [ ],
- "result": {
- "id": "C1AU00000000001",
- "type": 1,
- "crmCustId": "100",
- "crmType": 1
}
}Get all customers based on optional parameters to filter results. Results will be based on the logged in user's access level.
| cuid | string Filter results by CUID. |
| type | string Filter results by type. |
| username | string Filter results by username. |
| lastName | string Filter results by last name. |
| firstName | string Filter results by first name. |
string Filter results by email. | |
| mobileNo | string Filter results by mobile No. |
| mobileCc | string Filter results by mobile Cc. |
| nationalityId | number Filter results by nationalityId. |
| birthDate | string <date> Filter results by birthDate. |
| orgId1 | string Filter results by orgId1. |
| orgId2 | string Filter results by orgId2. |
| orgId3 | string Filter results by orgId3. |
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for Customers.",
- "results": [
- {
- "custId": 3958373174,
- "type": 1,
- "subType": 1,
- "statusId": 1,
- "orgId1": "11",
- "orgId2": "21",
- "orgId3": "31",
- "email": "john@acme.com",
- "mobileNo": "98765432",
- "mobileCc": "65",
- "firstName": "John",
- "midName": "Middleton",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "birthdate": "2022-01-20",
- "gender": "F",
- "username": "john_appleseed",
- "nationalityId": 1,
- "idNo1": "S9876543A",
- "idNo2": "E4829104",
- "idNo3": "235903",
- "prefContactMethod": 1,
- "prefContactNo": 1,
- "prefAddress": 1,
- "prefLanguage": 1,
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "text6": "string",
- "text7": "string",
- "text8": "string",
- "text9": "string",
- "text10": "string",
- "text11": "Mr.",
- "text12": "string",
- "text13": "string",
- "text14": "string",
- "text15": "string",
- "text16": "string",
- "text17": "string",
- "text18": "string",
- "text19": "string",
- "text20": "string",
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createAt": 12,
- "createOutlet": "OL001",
- "dataSource": "OL001",
- "dataGroups": [
- {
- "id": 1,
- "value": "SFSG",
- "label": "SalesForce Singapore"
}
], - "traceId1": 1,
- "traceId2": 1,
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create a new Customer
Request body to create new customer
| type | integer Default: 1 |
| subType | integer Default: 1 |
| statusId | integer Enum: 0 1 9 The customer's status:
|
| orgId1 | string The original customer ID 1 in the source system. e.g. marsid |
| orgId2 | string The original customer ID 2 in the source system. e.g. marsid |
| orgId3 | string The original customer ID 3 in the source system. e.g. marsid |
string <= 250 characters The customer's email. | |
| mobileNo | string <= 50 characters The customer's mobile number. |
| mobileCc | string <= 5 characters The customer's mobile number's country calling code. |
| firstName | string <= 100 characters The customer's first name. |
| midName | string <= 100 characters The customer's middle name. |
| lastName | string <= 100 characters The customer's last name. |
| fullName | string <= 250 characters The customer's full name. |
| birthdate | string <date> The customer's birth date. |
| gender | string <= 1 characters Enum: "F" "M" "O" The customer's gender:
|
| username | string <= 100 characters The customer's username. |
| nationalityId | integer The customer's nationality ID. |
| idNo1 | string <= 50 characters The customer's ID number. e.g. NRIC |
| idNo2 | string <= 50 characters The customer's ID number. e.g. Passport |
| idNo3 | string <= 50 characters The customer's ID number. |
| prefContactMethod | integer The customer's preferred contact method. |
| prefContactNo | integer The customer's preferred contact number. |
| prefAddress | integer The customer's preferred address. |
| prefLanguage | integer The customer's preferred language. |
| text1 | string <= 250 characters Additional custom text to store. |
| text2 | string <= 250 characters Additional custom text to store. |
| text3 | string <= 250 characters Additional custom text to store. |
| text4 | string <= 250 characters Additional custom text to store. |
| text5 | string <= 250 characters Additional custom text to store. |
| text6 | string <= 250 characters Additional custom text to store. |
| text7 | string <= 250 characters Additional custom text to store. |
| text8 | string <= 250 characters Additional custom text to store. |
| text9 | string <= 250 characters Additional custom text to store. |
| text10 | string <= 250 characters Additional custom text to store. |
| text11 | string <= 250 characters Additional custom text to store customer's salutation. |
| text12 | string <= 250 characters Additional custom text to store. |
| text13 | string <= 250 characters Additional custom text to store. |
| text14 | string <= 250 characters Additional custom text to store. |
| text15 | string <= 250 characters Additional custom text to store. |
| text16 | string <= 250 characters Additional custom text to store. |
| text17 | string <= 250 characters Additional custom text to store. |
| text18 | string <= 250 characters Additional custom text to store. |
| text19 | string <= 250 characters Additional custom text to store. |
| text20 | string <= 250 characters Additional custom text to store. |
| orgCreateDate | string <date-time> The creation date of this resource in the source system. |
| orgCreateBy | string <= 100 characters The original username who created this resource in the source system. |
| orgLastModDate | string <date-time> The last modified date of this resource in the source system. |
| orgLastModBy | integer <= 100 characters The original username who last modified this resource in the source system. |
| createAt | integer The outlet id where this resource was created. |
| createOutlet | string The outlet code where this resource was created. |
| dataSource | string The data source where this resource was created. |
Array of objects (dataGroupsAbstract) The data group where this resource to be grouped under. | |
| traceId1 | number |
| traceId2 | number |
| createBy | integer The user account id who created this resource. |
| lastModBy | integer The user account id who last modified this resource. |
| password | string The customer's password. |
{- "type": 1,
- "subType": 1,
- "statusId": 1,
- "orgId1": "11",
- "orgId2": "21",
- "orgId3": "31",
- "email": "john@acme.com",
- "mobileNo": "98765432",
- "mobileCc": "65",
- "firstName": "John",
- "midName": "Middleton",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "birthdate": "2022-01-20",
- "gender": "F",
- "username": "john_appleseed",
- "nationalityId": 1,
- "idNo1": "S9876543A",
- "idNo2": "E4829104",
- "idNo3": "235903",
- "prefContactMethod": 1,
- "prefContactNo": 1,
- "prefAddress": 1,
- "prefLanguage": 1,
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "text6": "string",
- "text7": "string",
- "text8": "string",
- "text9": "string",
- "text10": "string",
- "text11": "Mr.",
- "text12": "string",
- "text13": "string",
- "text14": "string",
- "text15": "string",
- "text16": "string",
- "text17": "string",
- "text18": "string",
- "text19": "string",
- "text20": "string",
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createAt": 12,
- "createOutlet": "OL001",
- "dataSource": "OL001",
- "dataGroups": [
- {
- "id": 1,
- "value": "SFSG",
- "label": "SalesForce Singapore"
}
], - "traceId1": 1,
- "traceId2": 1,
- "createBy": 1,
- "lastModBy": 1,
- "password": "p4ssw0rd123!"
}{- "code": 201,
- "message": "Created a Customer successfully!",
- "result": { },
- "results": {
- "custId": 3958373174,
- "type": 1,
- "subType": 1,
- "statusId": 1,
- "orgId1": "11",
- "orgId2": "21",
- "orgId3": "31",
- "email": "john@acme.com",
- "mobileNo": "98765432",
- "mobileCc": "65",
- "firstName": "John",
- "midName": "Middleton",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "birthdate": "2022-01-20",
- "gender": "F",
- "username": "john_appleseed",
- "nationalityId": 1,
- "idNo1": "S9876543A",
- "idNo2": "E4829104",
- "idNo3": "235903",
- "prefContactMethod": 1,
- "prefContactNo": 1,
- "prefAddress": 1,
- "prefLanguage": 1,
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "text6": "string",
- "text7": "string",
- "text8": "string",
- "text9": "string",
- "text10": "string",
- "text11": "Mr.",
- "text12": "string",
- "text13": "string",
- "text14": "string",
- "text15": "string",
- "text16": "string",
- "text17": "string",
- "text18": "string",
- "text19": "string",
- "text20": "string",
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createAt": 12,
- "createOutlet": "OL001",
- "dataSource": "OL001",
- "dataGroups": [
- {
- "id": 1,
- "value": "SFSG",
- "label": "SalesForce Singapore"
}
], - "traceId1": 1,
- "traceId2": 1,
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}validate customer credentials
User credentials for validating customer
| username required | string The customer's username. |
| password required | string The customer's password. |
{- "username": "myusername",
- "password": "p4ssw0rd123!"
}{- "code": 200,
- "message": "Valid credentials"
}Get a customer by its identifier.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
{- "code": 200,
- "message": "Found Customer successfully!",
- "result": { },
- "results": {
- "custId": 3958373174,
- "type": 1,
- "subType": 1,
- "statusId": 1,
- "orgId1": "11",
- "orgId2": "21",
- "orgId3": "31",
- "email": "john@acme.com",
- "mobileNo": "98765432",
- "mobileCc": "65",
- "firstName": "John",
- "midName": "Middleton",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "birthdate": "2022-01-20",
- "gender": "F",
- "username": "john_appleseed",
- "nationalityId": 1,
- "idNo1": "S9876543A",
- "idNo2": "E4829104",
- "idNo3": "235903",
- "prefContactMethod": 1,
- "prefContactNo": 1,
- "prefAddress": 1,
- "prefLanguage": 1,
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "text6": "string",
- "text7": "string",
- "text8": "string",
- "text9": "string",
- "text10": "string",
- "text11": "Mr.",
- "text12": "string",
- "text13": "string",
- "text14": "string",
- "text15": "string",
- "text16": "string",
- "text17": "string",
- "text18": "string",
- "text19": "string",
- "text20": "string",
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createAt": 12,
- "createOutlet": "OL001",
- "dataSource": "OL001",
- "dataGroups": [
- {
- "id": 1,
- "value": "SFSG",
- "label": "SalesForce Singapore"
}
], - "traceId1": 1,
- "traceId2": 1,
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Update a customer by its identifier.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
Request body to update customer by id.
| type | integer Default: 1 |
| subType | integer Default: 1 |
| statusId | integer Enum: 0 1 9 The customer's status:
|
| orgId1 | string The original customer ID 1 in the source system. e.g. marsid |
| orgId2 | string The original customer ID 2 in the source system. e.g. marsid |
| orgId3 | string The original customer ID 3 in the source system. e.g. marsid |
string <= 250 characters The customer's email. | |
| mobileNo | string <= 50 characters The customer's mobile number. |
| mobileCc | string <= 5 characters The customer's mobile number's country calling code. |
| firstName | string <= 100 characters The customer's first name. |
| midName | string <= 100 characters The customer's middle name. |
| lastName | string <= 100 characters The customer's last name. |
| fullName | string <= 250 characters The customer's full name. |
| birthdate | string <date> The customer's birth date. |
| gender | string <= 1 characters Enum: "F" "M" "O" The customer's gender:
|
| username | string <= 100 characters The customer's username. |
| nationalityId | integer The customer's nationality ID. |
| idNo1 | string <= 50 characters The customer's ID number. e.g. NRIC |
| idNo2 | string <= 50 characters The customer's ID number. e.g. Passport |
| idNo3 | string <= 50 characters The customer's ID number. |
| prefContactMethod | integer The customer's preferred contact method. |
| prefContactNo | integer The customer's preferred contact number. |
| prefAddress | integer The customer's preferred address. |
| prefLanguage | integer The customer's preferred language. |
| text1 | string <= 250 characters Additional custom text to store. |
| text2 | string <= 250 characters Additional custom text to store. |
| text3 | string <= 250 characters Additional custom text to store. |
| text4 | string <= 250 characters Additional custom text to store. |
| text5 | string <= 250 characters Additional custom text to store. |
| text6 | string <= 250 characters Additional custom text to store. |
| text7 | string <= 250 characters Additional custom text to store. |
| text8 | string <= 250 characters Additional custom text to store. |
| text9 | string <= 250 characters Additional custom text to store. |
| text10 | string <= 250 characters Additional custom text to store. |
| text11 | string <= 250 characters Additional custom text to store customer's salutation. |
| text12 | string <= 250 characters Additional custom text to store. |
| text13 | string <= 250 characters Additional custom text to store. |
| text14 | string <= 250 characters Additional custom text to store. |
| text15 | string <= 250 characters Additional custom text to store. |
| text16 | string <= 250 characters Additional custom text to store. |
| text17 | string <= 250 characters Additional custom text to store. |
| text18 | string <= 250 characters Additional custom text to store. |
| text19 | string <= 250 characters Additional custom text to store. |
| text20 | string <= 250 characters Additional custom text to store. |
| orgCreateDate | string <date-time> The creation date of this resource in the source system. |
| orgCreateBy | string <= 100 characters The original username who created this resource in the source system. |
| orgLastModDate | string <date-time> The last modified date of this resource in the source system. |
| orgLastModBy | integer <= 100 characters The original username who last modified this resource in the source system. |
| createAt | integer The outlet id where this resource was created. |
| createOutlet | string The outlet code where this resource was created. |
| dataSource | string The data source where this resource was created. |
Array of objects (dataGroupsAbstract) The data group where this resource to be grouped under. | |
| traceId1 | number |
| traceId2 | number |
| createBy | integer The user account id who created this resource. |
| lastModBy | integer The user account id who last modified this resource. |
| password | string The customer's password. |
{- "type": 1,
- "subType": 1,
- "statusId": 1,
- "orgId1": "11",
- "orgId2": "21",
- "orgId3": "31",
- "email": "john@acme.com",
- "mobileNo": "98765432",
- "mobileCc": "65",
- "firstName": "John",
- "midName": "Middleton",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "birthdate": "2022-01-20",
- "gender": "F",
- "username": "john_appleseed",
- "nationalityId": 1,
- "idNo1": "S9876543A",
- "idNo2": "E4829104",
- "idNo3": "235903",
- "prefContactMethod": 1,
- "prefContactNo": 1,
- "prefAddress": 1,
- "prefLanguage": 1,
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "text6": "string",
- "text7": "string",
- "text8": "string",
- "text9": "string",
- "text10": "string",
- "text11": "Mr.",
- "text12": "string",
- "text13": "string",
- "text14": "string",
- "text15": "string",
- "text16": "string",
- "text17": "string",
- "text18": "string",
- "text19": "string",
- "text20": "string",
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createAt": 12,
- "createOutlet": "OL001",
- "dataSource": "OL001",
- "dataGroups": [
- {
- "id": 1,
- "value": "SFSG",
- "label": "SalesForce Singapore"
}
], - "traceId1": 1,
- "traceId2": 1,
- "createBy": 1,
- "lastModBy": 1,
- "password": "p4ssw0rd123!"
}{- "code": 200,
- "message": "Updated Customer successfully!"
}Mark a customer by its identifier as deleted (statusId 9). This will also anoymise PII data related to the customer and the action is not reversible.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
{- "code": 200,
- "message": "Deleted Customer successfully!"
}Search for customers based on the provided criteria. Results will be based on the logged in user's access level.
Request body to search customer
| keyword required | string keyword to search for the customers |
| fields required | Array of strings Items Enum: "custId" "type" "subType" "orgId1" "orgId2" "orgId3" "email" "mobileCc" "mobileNo" "firstName" "midName" "lastName" "fullName" "birthdate" "gender" "nationalityId" "idNo1" "idNo2" "idNo3" "prefContactMethod" "prefContactNo" "prefAddress" "prefLanguage" "username" "orgCreateDate" "orgCreateBy" "orgLastModDate" "orgLastModBy" "createAt" "createOutlet" "traceId1" "traceId2" "createBy" "lastModBy" "createDate" "lastModDate" "text1" "text2" "text3" "text4" "text5" "text6" "text7" "text8" "text9" "text10" "text11" "text12" "text13" "text14" "text15" "text16" "text17" "text18" "text19" "text20" "statusId" fields to search at |
| sort | Array of strings sorting for the result |
| page | number Default: 1 Search result page number. |
| pageSize | number Default: 10 Search result page size. |
{- "keyword": "string",
- "fields": [
- "custId"
], - "sort": [
- "firstName desc",
- "custId asc"
], - "page": 1,
- "pageSize": 10
}{- "code": 200,
- "message": "Search results for Customers.",
- "results": [
- {
- "custId": 3958373174,
- "type": 1,
- "subType": 1,
- "statusId": 1,
- "orgId1": "11",
- "orgId2": "21",
- "orgId3": "31",
- "email": "john@acme.com",
- "mobileNo": "98765432",
- "mobileCc": "65",
- "firstName": "John",
- "midName": "Middleton",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "birthdate": "2022-01-20",
- "gender": "F",
- "username": "john_appleseed",
- "nationalityId": 1,
- "idNo1": "S9876543A",
- "idNo2": "E4829104",
- "idNo3": "235903",
- "prefContactMethod": 1,
- "prefContactNo": 1,
- "prefAddress": 1,
- "prefLanguage": 1,
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "text6": "string",
- "text7": "string",
- "text8": "string",
- "text9": "string",
- "text10": "string",
- "text11": "Mr.",
- "text12": "string",
- "text13": "string",
- "text14": "string",
- "text15": "string",
- "text16": "string",
- "text17": "string",
- "text18": "string",
- "text19": "string",
- "text20": "string",
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createAt": 12,
- "createOutlet": "OL001",
- "dataSource": "OL001",
- "dataGroups": [
- {
- "id": 1,
- "value": "SFSG",
- "label": "SalesForce Singapore"
}
], - "traceId1": 1,
- "traceId2": 1,
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Get an existing customer's attributes.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Attributes for a Customer.",
- "results": {
- "id": 6898173174,
- "sourceId": 12,
- "custId": 12345,
- "firstName": "John",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "preferName": "John A.",
- "email": "johnappleseed@gmail.com",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}, - "limit": 10,
- "offset": 0,
- "total": 1
}Create a Customer's Attribute
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
Request body to create new customer attribute
| sourceId required | integer The attribute's source identifier. |
| custId | integer The customer's identifier. |
| firstName | string <= 100 characters The customer's first name. |
| lastName | string <= 100 characters The customer's last name. |
| fullName | string <= 200 characters The customer's full name. |
| preferName | string <= 200 characters The customer's prefered name. |
string <= 100 characters The customer's email. | |
| text1 | string <= 250 characters The customer's additional custom text attribute. |
| text2 | string <= 250 characters The customer's additional custom text attribute. |
| text3 | string <= 250 characters The customer's additional custom text attribute. |
| text4 | string <= 250 characters The customer's additional custom text attribute. |
| text5 | string <= 250 characters The customer's additional custom text attribute. |
{- "sourceId": 12,
- "custId": 12345,
- "firstName": "John",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "preferName": "John A.",
- "email": "johnappleseed@gmail.com",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string"
}{- "code": 201,
- "message": "Created Customer Attribute successfully!",
- "result": { },
- "results": {
- "id": 6898173174,
- "sourceId": 12,
- "custId": 12345,
- "firstName": "John",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "preferName": "John A.",
- "email": "johnappleseed@gmail.com",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}
}Get an existing customer's attributes filtered by one attribute value.
| customerId required | string The customer identifier. |
| attributeId required | string The attribute identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
{- "code": 200,
- "message": "Found Customer Attribute.",
- "result": { },
- "results": {
- "id": 6898173174,
- "sourceId": 12,
- "custId": 12345,
- "firstName": "John",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "preferName": "John A.",
- "email": "johnappleseed@gmail.com",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}
}Update a Customer's Attributes
| customerId required | string The customer identifier. |
| attributeId required | string The attribute identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
{- "code": 200,
- "message": "Update Customer Attribute Successfully!"
}Delete a Customer's Attributes
| customerId required | string The customer identifier. |
| attributeId required | string The attribute identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
{- "code": 200,
- "message": "Deleted Customer Attribute successfully!"
}Get campaigns of a customer by the customer identifier.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| statusId | integer Enum: 0 1 2 11 12 21 22 31 41 51 52 Filter results by status:
|
| campaignId | integer The campaign identifier |
| sendDateFrom | string Filter results by senddate. Date format should be yyyy-MM-dd hh:mm:ss. |
| sendDateTo | string Filter results by senddate. Date format should be yyyy-MM-dd hh:mm:ss. |
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Found Campaign Recipient successfully!",
- "result": {
- "custId": 1,
- "campaignId": 11,
- "statusId": 0,
- "retry": 0,
- "queueDate": "2022-01-20T15:45:00.000+00:00",
- "sendDate": "2022-01-20T15:45:00.000+00:00",
- "openDate": "2022-01-20T15:45:00.000+00:00",
- "responseDate": "2022-01-20T15:45:00.000+00:00",
- "id1": 0,
- "id2": 0,
- "id3": 0,
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "id": 111,
- "createBy": 0,
- "lastModBy": 0,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get an existing customer's calculated attributes.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
{- "code": 200,
- "message": "Customer's calculated attributes.",
- "result": { },
- "results": {
- "nextExpiryPoints": 0,
- "nextExpiryDate": "2019-08-24",
- "r12AverageUnitSale": 0,
- "annualAverageUnitSale": 0,
- "futureFirstMonthExpiryPoints": 0,
- "futureSecondMonthExpiryPoints": 0,
- "futureThirdMonthExpiryPoints": 0,
- "topXPurchasedProducts": "string",
- "topXPurchasedBrands": "string",
- "spendToNextVoucher": 0,
- "spendToNextLoveStampReward": 0,
- "staffRemainingQuota": 0
}
}Get an existing customer's communications config with mode 3.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for Customer Communications Preferences.",
- "results": [
- {
- "config": {
- "configid": 3,
- "name": "optinemail",
- "label": "OK to receive EDM",
- "type": "single",
- "required": true,
- "unique": true,
- "regex": "string",
- "seqno": 1,
- "options": [
- {
- "optionid": 5,
- "value": "Y",
- "label": "Yes",
- "seqno": 1,
- "values": {
- "id": 51,
- "value": "",
- "valuedate": "2022-01-20T15:45:00.000+00:00"
}
}, - {
- "optionid": 6,
- "value": "N",
- "label": "No",
- "seqno": 2,
- "values": { }
}
]
}, - "createby": 1,
- "lastmodby": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create a new customer's communications
| customerId required | string The customer identifier. |
Request body to create new customer's communications
Array of objects |
{- "communications": [
- {
- "name": "optinedm",
- "value": "Yes",
- "valuedate": "2022-01-20T15:45:00.000+00:00"
}, - {
- "name": "smsOptIn",
- "value": "No"
}
]
}{- "code": 201,
- "message": "Created Customer communication successfully!",
- "result": { },
- "results": {
- "config": {
- "configid": 3,
- "name": "optinemail",
- "label": "OK to receive EDM",
- "type": "single",
- "required": true,
- "unique": true,
- "regex": "string",
- "seqno": 1,
- "options": [
- {
- "optionid": 5,
- "value": "Y",
- "label": "Yes",
- "seqno": 1,
- "values": {
- "id": 51,
- "value": "",
- "valuedate": "2022-01-20T15:45:00.000+00:00"
}
}, - {
- "optionid": 6,
- "value": "N",
- "label": "No",
- "seqno": 2,
- "values": { }
}
]
}, - "createby": 1,
- "lastmodby": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get an existing customer's communications config.
| offset | string Default: 0 Offset index of results. |
| limit | integer Default: 10 Limit number of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
| name | string The customer name. |
| label | string The label. |
| type | string |
| required | number The required. |
| unique | number The unique. |
| regex | string The regex. |
| statusId | string The statusIds. |
{- "code": 200,
- "message": "Search results for Customer Communications Preferences.",
- "results": [
- {
- "configid": 3,
- "name": "pillow",
- "label": "OK to receive",
- "type": "single",
- "required": true,
- "unique": true,
- "regex": "string",
- "seqno": 1,
- "options": [
- {
- "optionid": 0,
- "label": "string",
- "value": "string",
- "seqno": 0,
- "lastmodby": 0
}
]
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create new communication
Request body to create new communication
| configid | integer The customer communication config id. |
| name | string The customer communication config name. |
| label | string The customer communication config label. |
| type | string Enum: "text" "single" "multiple" |
| required | boolean |
| unique | boolean |
| regex | string Regular expression for client-side input validation. |
| seqno | integer The customer communication config order number. |
Array of objects |
{- "configid": 3,
- "name": "pillow",
- "label": "OK to receive",
- "type": "single",
- "required": true,
- "unique": true,
- "regex": "string",
- "seqno": 1,
- "options": [
- {
- "optionid": 0,
- "label": "string",
- "value": "string",
- "seqno": 0,
- "lastmodby": 0
}
]
}{- "code": 201,
- "message": "Created Customer Communication Config successfully!"
}Get an existing customer's preferences config with mode 4.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "string",
- "results": [
- {
- "config": {
- "configId": 4,
- "name": "favouritecuisine",
- "label": "Favourite cuisine",
- "type": "T",
- "required": false,
- "unique": false,
- "regex": "string",
- "seqno": 1,
- "options": [
- {
- "optionId": 7,
- "value": "american",
- "label": "American",
- "seqno": 1,
- "values": {
- "id": 61,
- "value": "",
- "valueDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 3,
- "lastModBy": 2,
- "createDate": "2022-07-26T10:32:26.000+00:00",
- "lastModDate": "2022-08-31T03:00:46.000+00:00"
}
}, - {
- "optionId": 8,
- "value": "chinese",
- "label": "Chinese",
- "seqno": 2,
- "values": { }
}, - {
- "optionId": 9,
- "value": "french",
- "label": "French",
- "seqno": 3,
- "values": {
- "id": 69,
- "value": "",
- "valueDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 3,
- "lastModBy": 2,
- "createDate": "2022-07-26T10:32:26.000+00:00",
- "lastModDate": "2022-08-31T03:00:46.000+00:00"
}
}, - {
- "optionId": 10,
- "value": "thai",
- "label": "Thai",
- "seqno": 4,
- "values": { }
}
]
}
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create a new customer's preferences
| customerId required | string The customer identifier. |
Request body to create new customer's preferences
Array of objects |
{- "preferences": [
- {
- "name": "favouritecuisine",
- "value": "chinese",
- "valueDate": "2022-01-20T15:45:00.000+00:00"
}, - {
- "name": "favouritecuisine",
- "value": "thai"
}
]
}{- "code": 201,
- "message": "Created Customer Preference Config successfully!"
}Get an existing customer's preferences config.
| offset | string Default: 0 Offset index of results. |
| limit | integer Default: 10 Limit number of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
| name | string The customer name. |
| label | string The label. |
| type | string |
| required | number The required. |
| unique | number The unique. |
| regex | string The regex. |
| statusId | string The statusIds. |
{- "code": 200,
- "message": "Search results for Customer Preferences.",
- "results": [
- {
- "configid": 3,
- "name": "optInWhatsapp",
- "label": "OK to receive Whatsapp",
- "type": "sing",
- "required": true,
- "unique": true,
- "regex": "string",
- "seqno": 1,
- "options": [
- {
- "optionid": 0,
- "label": "string",
- "value": "string",
- "seqno": 0,
- "lastmodby": 0
}
]
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create new preferences
Request body to create new preference
| configid | integer The customer preference config id. |
| name | string The customer preference config name. |
| label | string The customer preference config label. |
| type | string Enum: "C" "R" "T" "sing" |
| required | boolean |
| unique | boolean |
| regex | string Regular expression for client-side input validation. |
| seqno | integer The customer preference config order number. |
Array of objects |
{- "configid": 3,
- "name": "optInWhatsapp",
- "label": "OK to receive Whatsapp",
- "type": "sing",
- "required": true,
- "unique": true,
- "regex": "string",
- "seqno": 1,
- "options": [
- {
- "optionid": 0,
- "label": "string",
- "value": "string",
- "seqno": 0,
- "lastmodby": 0
}
]
}{- "code": 201,
- "message": "Created customer preferences config successfully!"
}Update a customer preference by its identifier.
| configId required | string The customercustomconfig identifier. |
Request body to update customer preference by id.
| name | string The customer preference config name. |
| label | string The customer preference config label. |
| type | string Enum: "C" "R" "T" "sing" |
| required | boolean |
| unique | boolean |
| regex | string Regular expression for client-side input validation. |
| seqno | integer The customer preference config order number. |
Array of objects |
{- "name": "optInWhatsapp",
- "label": "OK to receive Whatsapp",
- "type": "sing",
- "required": true,
- "unique": true,
- "regex": "string",
- "seqno": 1,
- "options": [
- {
- "optionid": 0,
- "label": "string",
- "value": "string",
- "seqno": 0,
- "lastmodby": 0
}
]
}{- "code": 200,
- "message": "Updated Customer Preference successfully!"
}Delete customer preference config based on configId, the action is not reversible.
| configId required | string The customercustomconfig identifier. |
{- "code": 200,
- "message": "Deleted Customer successfully!"
}Get an existing customer's addresses.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Addresses for a Customer.",
- "results": [
- {
- "addressId": 123,
- "typeId": 1,
- "address1": "2C Main Street",
- "address2": "string",
- "address3": "string",
- "address4": "string",
- "city": "string",
- "postCode": 123456,
- "area": "Toa Payoh",
- "province": "string",
- "country": "string",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create new customer's addresses.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
Request body to create new customer's address
Array of objects (CreateCustomerAddress) |
{- "address": [
- {
- "typeId": 1,
- "address1": "2C Main Street",
- "address2": "string",
- "address3": "string",
- "address4": "string",
- "city": "string",
- "postCode": 123456,
- "area": "Toa Payoh",
- "province": "string",
- "country": "string"
}
]
}{- "code": 201,
- "message": "Created Customer Address successfully!",
- "result": { },
- "results": {
- "addressId": 123,
- "typeId": 1,
- "address1": "2C Main Street",
- "address2": "string",
- "address3": "string",
- "address4": "string",
- "city": "string",
- "postCode": 123456,
- "area": "Toa Payoh",
- "province": "string",
- "country": "string",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get an existing customer's address by one address id.
| customerId required | string The customer identifier. |
| addressId required | integer addressId identifier value. |
{- "code": 200,
- "message": "Found Customer Address",
- "result": { },
- "results": {
- "addressId": 123,
- "typeId": 1,
- "address1": "2C Main Street",
- "address2": "string",
- "address3": "string",
- "address4": "string",
- "city": "string",
- "postCode": 123456,
- "area": "Toa Payoh",
- "province": "string",
- "country": "string",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Update a Customer's Address by one address id.
| customerId required | string The customer identifier. |
| addressId required | integer addressId identifier value. |
Request body to update customer's address
| typeId required | integer Enum: 1 2 The address type:
|
| address1 required | string <= 250 characters The address's first line. |
| address2 | string <= 250 characters The address's second line. |
| address3 | string <= 250 characters The address's third line. |
| address4 | string <= 250 characters The address's fourth line. |
| city required | string <= 250 characters The address's city name. |
| postCode | string <= 20 characters The address's postal code. |
| area | string <= 100 characters The address's area. |
| province | string <= 250 characters The address's province/state name. |
| country required | string <= 250 characters The address's country. |
{- "typeId": 1,
- "address1": "2C Main Street",
- "address2": "string",
- "address3": "string",
- "address4": "string",
- "city": "string",
- "postCode": 123456,
- "area": "Toa Payoh",
- "province": "string",
- "country": "string"
}{- "code": 200,
- "message": "Update Customer Address Successfully!"
}Delete a Customer's Address by one address id.
| customerId required | string The customer identifier. |
| addressId required | integer addressId identifier value. |
{- "code": 200,
- "message": "Deleted Customer Address successfully!"
}Get existing customer's awards.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| typeId | integer Enum: 1 2 3 Filter results by typeId. The type of award:
|
| statusId | integer Enum: 1 2 3 4 5 Filter results by statusId. The award's status:
|
| flag | string Example: flag=SFCC Filter results by flag. |
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for customer awards.",
- "results": [
- {
- "awardId": 123,
- "rewardId": 12,
- "typeId": 1,
- "qty": 1,
- "amount": 20.24,
- "point": 4,
- "currency": "SGD",
- "statusId": 1,
- "issueDate": "2022-01-20T15:45:00.000+00:00",
- "expiryDate": "2022-01-20T15:45:00.000+00:00",
- "approveDate": "2022-01-20T15:45:00.000+00:00",
- "approveBy": "BA123",
- "voidDate": "2022-01-20T15:45:00.000+00:00",
- "voidBy": "BA321",
- "reason": "string",
- "collectDate": "2022-01-20T15:45:00.000+00:00",
- "collectOutletId": "SGTK4928",
- "collectEmployeeId": "LoginName",
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "id4": 1,
- "id5": 1,
- "imageUrl": "string",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "code": "ABC-DEF-GHI",
- "createBy": 55,
- "lastModBy": 55,
- "collectOutletName": "OutletCode",
- "collectEmployeeName": "John Appleseed",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create new customer's award.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| rewardId required | integer The reward id of the award. |
| typeId required | integer Enum: 1 2 3 The type of award:
|
| qty | integer Default: 1 The quantity of award. |
| amount | number <decimal> The amount of dollar given reward. |
| point | number <decimal> The point used to redeem. |
| currency | string 3-alpha ISO 4217 |
| statusId required | integer Enum: 1 2 3 4 5 The award's status:
|
| issueDate | string <date> The award's issue date. |
| expiryDate | string <date> The award's expiry date. |
| approveDate | string <date> The date when the award was approved. |
| approveBy | string <= 100 characters The username of staff who approved the award. |
| voidDate | string <date> The date when the award was voided. |
| voidBy | string <= 100 characters The username of staff who voided the award. |
| reason | string <= 250 characters The reason of the approval/voidance. |
| collectDate | string <date> The date when customer collected the award. |
| collectOutletId | string The outlet code where the customer collected the award. Can be used as identifier on external systems. |
| collectEmployeeId | string The staff login name who gave the award to the customer. Can be used as identifier on external systems. |
| id1 | integer |
| id2 | integer |
| id3 | integer |
| id4 | integer |
| id5 | integer |
| imageUrl | string <= 250 characters The award image in url format. |
| text1 | string <= 250 characters The custom text of the award. |
| text2 | string <= 250 characters The custom text of the award. |
| text3 | string <= 250 characters The custom text of the award. |
| text4 | string <= 250 characters The custom text of the award. |
| text5 | string <= 250 characters The custom text of the award. |
{- "rewardId": 12,
- "typeId": 1,
- "qty": 1,
- "amount": 20.24,
- "point": 4,
- "currency": "SGD",
- "statusId": 1,
- "issueDate": "2022-01-20T15:45:00.000+00:00",
- "expiryDate": "2022-01-20T15:45:00.000+00:00",
- "approveDate": "2022-01-20T15:45:00.000+00:00",
- "approveBy": "BA123",
- "voidDate": "2022-01-20T15:45:00.000+00:00",
- "voidBy": "BA321",
- "reason": "string",
- "collectDate": "2022-01-20T15:45:00.000+00:00",
- "collectOutletId": "SGTK4928",
- "collectEmployeeId": "LoginName",
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "id4": 1,
- "id5": 1,
- "imageUrl": "string",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string"
}{- "code": 201,
- "message": "Created Customer Award.",
- "result": { },
- "results": {
- "awardId": 123,
- "rewardId": 12,
- "typeId": 1,
- "qty": 1,
- "amount": 20.24,
- "point": 4,
- "currency": "SGD",
- "statusId": 1,
- "issueDate": "2022-01-20T15:45:00.000+00:00",
- "expiryDate": "2022-01-20T15:45:00.000+00:00",
- "approveDate": "2022-01-20T15:45:00.000+00:00",
- "approveBy": "BA123",
- "voidDate": "2022-01-20T15:45:00.000+00:00",
- "voidBy": "BA321",
- "reason": "string",
- "collectDate": "2022-01-20T15:45:00.000+00:00",
- "collectOutletId": "SGTK4928",
- "collectEmployeeId": "LoginName",
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "id4": 1,
- "id5": 1,
- "imageUrl": "string",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "code": "ABC-DEF-GHI",
- "createBy": 55,
- "lastModBy": 55,
- "collectOutletName": "OutletCode",
- "collectEmployeeName": "John Appleseed",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get an existing customer's award by identifier.
| customerId required | string The customer identifier. |
| awardId required | integer award identifier value. |
{- "code": 200,
- "message": "Found Award for a Customer.",
- "result": { },
- "results": {
- "awardId": 123,
- "rewardId": 12,
- "typeId": 1,
- "qty": 1,
- "amount": 20.24,
- "point": 4,
- "currency": "SGD",
- "statusId": 1,
- "issueDate": "2022-01-20T15:45:00.000+00:00",
- "expiryDate": "2022-01-20T15:45:00.000+00:00",
- "approveDate": "2022-01-20T15:45:00.000+00:00",
- "approveBy": "BA123",
- "voidDate": "2022-01-20T15:45:00.000+00:00",
- "voidBy": "BA321",
- "reason": "string",
- "collectDate": "2022-01-20T15:45:00.000+00:00",
- "collectOutletId": "SGTK4928",
- "collectEmployeeId": "LoginName",
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "id4": 1,
- "id5": 1,
- "imageUrl": "string",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "code": "ABC-DEF-GHI",
- "createBy": 55,
- "lastModBy": 55,
- "collectOutletName": "OutletCode",
- "collectEmployeeName": "John Appleseed",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Update a customer's award by identifier.
| customerId required | string The customer identifier. |
| awardId required | integer award identifier value. |
| rewardId required | integer The reward id of the award. |
| typeId required | integer Enum: 1 2 3 The type of award:
|
| qty | integer Default: 1 The quantity of award. |
| amount | number <decimal> The amount of dollar given reward. |
| point | number <decimal> The point used to redeem. |
| currency | string 3-alpha ISO 4217 |
| statusId required | integer Enum: 1 2 3 4 5 The award's status:
|
| issueDate | string <date> The award's issue date. |
| expiryDate | string <date> The award's expiry date. |
| approveDate | string <date> The date when the award was approved. |
| approveBy | string <= 100 characters The username of staff who approved the award. |
| voidDate | string <date> The date when the award was voided. |
| voidBy | string <= 100 characters The username of staff who voided the award. |
| reason | string <= 250 characters The reason of the approval/voidance. |
| collectDate | string <date> The date when customer collected the award. |
| collectOutletId | string The outlet code where the customer collected the award. Can be used as identifier on external systems. |
| collectEmployeeId | string The staff login name who gave the award to the customer. Can be used as identifier on external systems. |
| id1 | integer |
| id2 | integer |
| id3 | integer |
| id4 | integer |
| id5 | integer |
| imageUrl | string <= 250 characters The award image in url format. |
| text1 | string <= 250 characters The custom text of the award. |
| text2 | string <= 250 characters The custom text of the award. |
| text3 | string <= 250 characters The custom text of the award. |
| text4 | string <= 250 characters The custom text of the award. |
| text5 | string <= 250 characters The custom text of the award. |
{- "rewardId": 12,
- "typeId": 1,
- "qty": 1,
- "amount": 20.24,
- "point": 4,
- "currency": "SGD",
- "statusId": 1,
- "issueDate": "2022-01-20T15:45:00.000+00:00",
- "expiryDate": "2022-01-20T15:45:00.000+00:00",
- "approveDate": "2022-01-20T15:45:00.000+00:00",
- "approveBy": "BA123",
- "voidDate": "2022-01-20T15:45:00.000+00:00",
- "voidBy": "BA321",
- "reason": "string",
- "collectDate": "2022-01-20T15:45:00.000+00:00",
- "collectOutletId": "SGTK4928",
- "collectEmployeeId": "LoginName",
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "id4": 1,
- "id5": 1,
- "imageUrl": "string",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string"
}{- "code": 200,
- "message": "Update Customer Award Successfully!"
}Delete a customer's award by identifier.
| customerId required | string The customer identifier. |
| awardId required | integer award identifier value. |
{- "code": 200,
- "message": "Deleted Customer Award successfully!"
}Create Random new customer's award.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| flags required | string The flags of the award. |
| typeId required | integer Enum: 1 2 3 The type of award:
|
| qty | integer Default: 1 The quantity of award. |
| amount | number <decimal> The amount of dollar given reward. |
| currency | string 3-alpha ISO 4217 |
| statusId required | integer Enum: 1 2 3 4 5 The award's status:
|
| collectDate | string <date-time> The date when customer collected the award. |
| collectOutletId | string The outlet code where the customer collected the award. Can be used as identifier on external systems. |
| collectEmployeeId | string The staff login name who gave the award to the customer. Can be used as identifier on external systems. |
| id1 | integer |
| id2 | integer |
| id3 | integer |
| id4 | integer |
| id5 | integer |
| imageUrl | string <= 250 characters The award image in url format. |
| text1 | string <= 250 characters The custom text of the award. |
| text2 | string <= 250 characters The custom text of the award. |
| text3 | string <= 250 characters The custom text of the award. |
| text4 | string <= 250 characters The custom text of the award. |
| text5 | string <= 250 characters The custom text of the award. |
{- "flags": "F01",
- "typeId": 1,
- "qty": 1,
- "amount": 20.24,
- "currency": "SGD",
- "statusId": 1,
- "collectDate": "2019-08-24T14:15:22Z",
- "collectOutletId": "SGTK4928",
- "collectEmployeeId": "LoginName",
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "id4": 1,
- "id5": 1,
- "imageUrl": "string",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string"
}{- "code": 201,
- "message": "Created Customer Random Award.",
- "result": { },
- "results": {
- "awardId": 123,
- "rewardId": 12,
- "typeId": 1,
- "qty": 1,
- "amount": 20.24,
- "point": 4,
- "currency": "SGD",
- "statusId": 1,
- "issueDate": "2022-01-20T15:45:00.000+00:00",
- "expiryDate": "2022-01-20T15:45:00.000+00:00",
- "approveDate": "2022-01-20T15:45:00.000+00:00",
- "approveBy": "BA123",
- "voidDate": "2022-01-20T15:45:00.000+00:00",
- "voidBy": "BA321",
- "reason": "string",
- "collectDate": "2022-01-20T15:45:00.000+00:00",
- "collectOutletId": "SGTK4928",
- "collectEmployeeId": "LoginName",
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "id4": 1,
- "id5": 1,
- "imageUrl": "string",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "code": "ABC-DEF-GHI",
- "createBy": 55,
- "lastModBy": 55,
- "collectOutletName": "OutletCode",
- "collectEmployeeName": "John Appleseed",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get all customer's memberships.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| membershipId | string (membershipId) Example: membershipId=SG-01-FOCPR-49321 The customer membership id. |
| programId | string (programId) Example: programId=FOCPR Program id. |
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for customer memberships.",
- "results": [
- {
- "membershipId": "SG-01-FOCPR-49321",
- "customerId": 1,
- "customerIdType": "uid",
- "mbrId": 16699,
- "programId": "FOCPR",
- "programName": "Friends of CPR",
- "creationOutletCode": "string",
- "memberNumber": "string",
- "statusId": 1,
- "joinDate": "2022-01-20T15:45:00Z",
- "cancelDate": "2022-01-20T15:45:00Z",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Enrol customer's membership to a loyalty program.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| createNewOutlet | number (createNewOutlet) Default: 0 Enum: 0 1 Example: createNewOutlet=1 The flag with purpose of checking
|
Loyalty Program details
| programId required | string |
| enrolDate required | string <date-time> |
| creationLocationId | string The outlet location identifier. |
| memberCardNumber | string The customer's membership card number. |
{- "programId": "FOCPR",
- "enrolDate": "2022-01-20T15:45:00Z",
- "creationLocationId": "string",
- "memberCardNumber": "string"
}{- "code": 200,
- "message": "Enroled customer to Loyal Program.",
- "result": { },
- "results": {
- "membershipId": "SG-01-FOCPR-49321",
- "customerId": 1,
- "customerIdType": "uid",
- "mbrId": 16699,
- "programId": "FOCPR",
- "programName": "Friends of CPR",
- "creationOutletCode": "string",
- "memberNumber": "string",
- "statusId": 1,
- "joinDate": "2022-01-20T15:45:00Z",
- "cancelDate": "2022-01-20T15:45:00Z",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}
}Get customer's membership detail.
| customerId required | string The customer identifier. |
| membershipId required | string (membershipId) Example: SG-01-FOCPR-49321 The customer membership identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
{- "code": 200,
- "message": "Found customer membership.",
- "result": { },
- "results": {
- "membershipId": "SG-01-FOCPR-49321",
- "customerId": 1,
- "customerIdType": "uid",
- "mbrId": 16699,
- "programId": "FOCPR",
- "programName": "Friends of CPR",
- "creationOutletCode": "string",
- "memberNumber": "string",
- "statusId": 1,
- "joinDate": "2022-01-20T15:45:00Z",
- "cancelDate": "2022-01-20T15:45:00Z",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}
}Disenrol customer's membership to a loyalty program.
| customerId required | string The customer identifier. |
| memberId required | integer The customer member identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
Request body to disenrol a customer membership
| cancelDate required | string <date-time> |
{- "cancelDate": "2023-03-21T00:00:00"
}{- "code": 201,
- "message": "Disenroled customer to Loyalty Program.",
- "results": { }
}Get customer's membership tiers.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
{- "code": 200,
- "message": "Customer Membership Levels",
- "result": { },
- "results": {
- "current": [
- {
- "memberLevelCode": "Gold",
- "memberLevelName": "Gold",
- "joinDate": "2022-12-01T15:45:00Z",
- "activateDate": "2022-12-09T15:45:00Z",
- "modificationDate": "2022-12-09T15:45:00Z",
- "cancelDate": null,
- "expiryDate": "2023-12-09T15:59:59.000+00:00",
- "amountSpent": 0,
- "pointsEarned": 0,
- "amountToSustainTier": 200,
- "pointsToSustainTier": 0,
- "previousMemberLevelCode": "Pearl"
}
], - "previous": [
- {
- "memberLevelCode": "Gold",
- "memberLevelName": "Gold"
}
], - "next": [
- {
- "memberLevelCode": "Gold",
- "memberLevelName": "Gold",
- "pointsToNextTier": 0,
- "amountToNextTier": 600,
- "pointToQualifyNextTier": 600,
- "amountToQualifyNextTier": 600,
- "accumulationEndDate": "2023-12-09T15:59:59.000+00:00"
}
], - "history": [
- {
- "memberLevelCode": "Gold",
- "memberLevelName": "Gold",
- "previousMemberLevelCode": "Basic",
- "joinDate": "2022-12-01T15:45:00Z",
- "activateDate": "2022-12-09T15:45:00Z",
- "cancelDate": "2022-12-12T15:45:00Z",
- "expiryDate": null,
- "isActive": "false"
}
]
}
}Get Customer Points Balance
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| start | string <date-time> Example: start=2022-01-20 Filter results for points records after this date (default |
| end | string <date-time> Example: end=2022-01-20 Filter results for points records before this date (default |
{- "code": 200,
- "message": "Customer Points Balance",
- "result": {
- "balance": 642.2,
- "redeemed": 0,
- "earned": 642.2,
- "nextTier": 0,
- "expiring": {
- "date": "2023-02-09T15:59:59.000+00:00",
- "points": 10
}, - "lastUpdated": "2023-02-09T15:59:59.000+00:00",
- "frozen": 0,
- "pending": 0
}
}(Deprecated) use Get Customer Points Balance
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| days required | integer Default: 365 Days |
{- "code": 200,
- "message": "Customer Points Expired In Days",
- "result": { },
- "results": {
- "pointsExpiredInDays": 642.2,
- "pointsExpiredDate": "2023-12-13T04:41:27.062+00:00"
}
}Get an existing customer's extra id.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for Customer Extra ID.",
- "results": [
- {
- "extraId": 123,
- "custId": 0,
- "typeId": 1,
- "systemCode": "SFCC_AU_KIE",
- "systemId": "45IF0000035",
- "statusId": 1,
- "propertyId1": 0,
- "outletId1": 0,
- "employeeId1": 0,
- "propertyId2": 0,
- "outletId2": 0,
- "employeeId2": 0,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create new customer's extra id.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| createNewOutlet | number (createNewOutlet) Default: 0 Enum: 0 1 Example: createNewOutlet=1 The flag with purpose of checking
|
| createNewBA | number (createNewBA) Default: 0 Enum: 0 1 Example: createNewBA=1 The flag with purpose of checking
|
Request body to create new customer's extra id
Array of objects |
{- "extSystemId": [
- {
- "customCode": "CUST1234",
- "creationLocationId": "LOR123",
- "creationBAId": "BA123",
- "valuedate": "2024-07-19T15:45:00.000+00:00",
- "sourceSystemId": "SYS123"
}
]
}{- "code": 201,
- "message": "Successfully created Extra ID for Customer!",
- "results": {
- "extraId": 123,
- "custId": 0,
- "typeId": 1,
- "systemCode": "SFCC_AU_KIE",
- "systemId": "45IF0000035",
- "statusId": 1,
- "propertyId1": 0,
- "outletId1": 0,
- "employeeId1": 0,
- "propertyId2": 0,
- "outletId2": 0,
- "employeeId2": 0,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}, - "limit": 10,
- "offset": 0,
- "total": 1
}Get an existing customer's extra id by identifier.
| customerId required | string The customer identifier. |
| extraId required | integer extraId identifier value. |
{- "code": 200,
- "message": "Found Customer Extra ID.",
- "result": { },
- "results": {
- "extraId": 123,
- "custId": 0,
- "typeId": 1,
- "systemCode": "SFCC_AU_KIE",
- "systemId": "45IF0000035",
- "statusId": 1,
- "propertyId1": 0,
- "outletId1": 0,
- "employeeId1": 0,
- "propertyId2": 0,
- "outletId2": 0,
- "employeeId2": 0,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}
}Update a customer's extra id by identifier.
| customerId required | string The customer identifier. |
| extraId required | integer extraId identifier value. |
{- "code": 200,
- "message": "Update Customer Extra ID Successfully!"
}Delete a customer's extra id by identifier.
| customerId required | string The customer identifier. |
| extraId required | integer extraId identifier value. |
{- "code": 200,
- "message": "Deleted Customer Extra ID successfully!"
}Get all custom data of an existing Customer.
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| dataName | string Example: dataName=APIGEE_BEAUTY_DIAGNOSIS Filter results by Customer Custom Data's name. Value should be URL-friendly. |
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for Customer Custom Data.",
- "results": [ ],
- "limit": 10,
- "offset": 0,
- "total": 1,
- "result": [
- {
- "id": 3958373174,
- "name": "APIGEE_BEAUTY_DIAGNOSIS",
- "data": {
- "context": {
- "brand": "01",
- "country": "AU",
- "sourceName": "SFCC_Website",
- "sourcePersonId": "1",
- "diagnosisId": "cdadd323d24r4fd3d4r43f4d",
- "crmContactId": "C2SG00004871948",
- "sourceCreationDate": "2022-01-20T15:45:00.000+00:00"
}, - "personProfile": {
- "civility": "string",
- "firstName": "string",
- "lastName": "string",
- "emailAddress": "string",
- "gender": "string",
- "age": "21",
- "birthDate": "2022-01-20",
- "language": "en_SG",
- "consents": {
- "consentType": "string",
- "consentDate": "2019-08-24T14:15:22Z",
- "optin": true,
- "isPreferred": true,
- "isValid": true
}, - "postal": {
- "address1": "string",
- "address2": "string",
- "zipCode": "string",
- "city": "string",
- "region": "string",
- "country": "string"
}, - "phones": {
- "label": "string",
- "prefix": "string",
- "number": "string",
- "callingTimeFrame": "string"
}, - "contactInformations": {
- "contactId": "string",
- "contactTypeCode": "string",
- "isValid": true
}, - "additionalProperties": {
- "additionalProp1": "string",
- "additionalPropN": "string"
}
}, - "serviceInteractionVersion": "1.0.0",
- "serviceInteractions": [
- {
- "type": "survey",
- "code": "string",
- "label": "string",
- "values": [
- {
- "code": "Step_1_question1",
- "label": "What is your natural hair like?",
- "analytics": [
- {
- "analyticPath": null,
- "bmdmEntity": null,
- "bmdmValue": null,
- "bmdmValues": [ ]
}
]
}
]
}
], - "diagnosisRecommendations": {
- "routines": [
- {
- "routineName": "haircare",
- "routineDesc": "Haircare moment",
- "routineOrder": "0",
- "routineType": "routineEvent",
- "routineSelected": "false",
- "routinePictureUrl": "string",
- "steps": [
- {
- "stepName": "pre-cleanse",
- "stepLabel": "Pre-cleanse",
- "stepOrder": 1,
- "stepType": "step",
- "stepSelected": true,
- "stepDetails": {
- "attribute1": null,
- "attribute2": null
}, - "products": [
- { }
]
}
]
}
]
}, - "analysis": {
- "id": "string",
- "type": "string",
- "generalProfile": {
- "description": {
- "gender": "male",
- "eyesDescription": {
- "eyeBrowColor": {
- "rawScore": "string",
- "code": "string"
}, - "eyeBrowShape": {
- "rawScore": "string",
- "code": "string"
}, - "eyeColor": {
- "rawScore": "string",
- "code": "string"
}, - "eyeCrease": {
- "rawScore": "string",
- "code": "string"
}, - "eyeShape": {
- "rawScore": "string",
- "code": "string"
}, - "eyeDirection": {
- "rawScore": "string",
- "code": "string"
}, - "protrudingEyes": {
- "rawScore": "string",
- "code": "string"
}, - "eyeLashesLength": {
- "rawScore": "string",
- "code": "string"
}, - "darkCircles": {
- "rawScore": "string",
- "code": "string"
}, - "eyeCorrectionTool": {
- "rawScore": "string",
- "code": "string"
}, - "eyesClosenessCode": {
- "rawScore": "string",
- "code": "string"
}, - "eyeBrowsThickness": {
- "rawScore": "string",
- "code": "string"
}
}, - "faceShape": {
- "rawScore": "string",
- "code": "string"
}, - "lipsDescription": {
- "rawScore": "string",
- "code": "string"
}, - "cupidVisibility": {
- "rawScore": "string",
- "code": "string"
}, - "mouthWidth": {
- "rawScore": "string",
- "code": "string"
}, - "foreheadSize": {
- "rawScore": "string",
- "code": "string"
}, - "noseDescription": {
- "rawScore": "string",
- "code": "string"
}, - "age": {
- "rawScore": "string",
- "code": "string"
}, - "calculatedAge": {
- "rawScore": "string",
- "code": "string"
}, - "externalfactors": {
- "rawScore": "string",
- "code": "string"
}, - "internalfactors": {
- "rawScore": "string",
- "code": "string"
}
}, - "priorities": {
- "allergens": [
- "string"
]
}, - "preferences": {
- "conceptionSpecificities": [
- "string"
], - "ingredientLimits": [
- "string"
], - "goals": [
- "string"
], - "categoryInterests": [
- "string"
]
}
}, - "skinProfile": {
- "description": {
- "skinTypes": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinSensitivities": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinTones": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinUndertones": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "complexionFreckled": {
- "rawsScore": "string",
- "code": "string"
}, - "encryptedSkinColorLab": [
- "string"
], - "shades": [
- "string"
], - "sunReaction": {
- "rawsScore": "string",
- "code": "string"
}
}, - "preferences": {
- "productExpectations": [
- "string"
]
}, - "priorities": {
- "concerns": {
- "code": "string",
- "zones": [
- "string"
], - "normalizedScore": 0,
- "rawScore": "string",
- "gapFromAverage": 0,
- "gapScoreBy10": 0,
- "active": true,
- "calculated": true,
- "rangeCode": "string",
- "typeCode": "string"
}, - "concernImprovementGoals": {
- "concernCode": "string",
- "zones": "string",
- "currentRangeCode": "string",
- "expectedRangeCode": "string"
}, - "clinicalSigns": {
- "code": "string",
- "zones": [
- "string"
], - "normalizedScore": 0,
- "rawScore": "string",
- "gapFromAverage": 0,
- "gapScoreBy10": 0,
- "active": true,
- "calculated": true,
- "rangeCode": "string",
- "typeCode": "string"
}, - "skinMotivationCode": "string",
- "lipChapDryOccasionCode": "string"
}, - "routines": {
- "productsUsed": {
- "rawsScore": "string",
- "code": "string"
}, - "skincareHealthcareProfessionalAdvised": true,
- "skincareMomentCode": "string",
- "dermatologistRoutineCode": "string",
- "lastSkincareMedicalTreatmentCode": "string",
- "facialHairGroomingCode": "string",
- "lastSkincareProfessionalTreatmentCode": "string",
- "goalCode": "string",
- "makeupWear": true,
- "sunExposureFrequencyCode": "string",
- "moisturizingFrequencyCode": "string",
- "skincareEyeUse": true
}
}
}
}, - "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
]
}Get a custom data of an existing Customer.
| customerId required | string The customer identifier. |
| dataName required | string Example: APIGEE_BEAUTY_DIAGNOSIS The Customer Custom Data's name. This is used to categorise the data. Value should be URL-friendly. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
{- "code": 200,
- "message": "Found Customer Custom Data successfully!",
- "result": {
- "id": 3958373174,
- "name": "APIGEE_BEAUTY_DIAGNOSIS",
- "data": {
- "context": {
- "brand": "01",
- "country": "AU",
- "sourceName": "SFCC_Website",
- "sourcePersonId": "1",
- "diagnosisId": "cdadd323d24r4fd3d4r43f4d",
- "crmContactId": "C2SG00004871948",
- "sourceCreationDate": "2022-01-20T15:45:00.000+00:00"
}, - "personProfile": {
- "civility": "string",
- "firstName": "string",
- "lastName": "string",
- "emailAddress": "string",
- "gender": "string",
- "age": "21",
- "birthDate": "2022-01-20",
- "language": "en_SG",
- "consents": {
- "consentType": "string",
- "consentDate": "2019-08-24T14:15:22Z",
- "optin": true,
- "isPreferred": true,
- "isValid": true
}, - "postal": {
- "address1": "string",
- "address2": "string",
- "zipCode": "string",
- "city": "string",
- "region": "string",
- "country": "string"
}, - "phones": {
- "label": "string",
- "prefix": "string",
- "number": "string",
- "callingTimeFrame": "string"
}, - "contactInformations": {
- "contactId": "string",
- "contactTypeCode": "string",
- "isValid": true
}, - "additionalProperties": {
- "additionalProp1": "string",
- "additionalPropN": "string"
}
}, - "serviceInteractionVersion": "1.0.0",
- "serviceInteractions": [
- {
- "type": "survey",
- "code": "string",
- "label": "string",
- "values": [
- {
- "code": "Step_1_question1",
- "label": "What is your natural hair like?",
- "analytics": [
- {
- "analyticPath": "hairprofile/priorities/hairstates",
- "bmdmEntity": "hairstates",
- "bmdmValue": "string",
- "bmdmValues": [
- { }
]
}
]
}
]
}
], - "diagnosisRecommendations": {
- "routines": [
- {
- "routineName": "haircare",
- "routineDesc": "Haircare moment",
- "routineOrder": "0",
- "routineType": "routineEvent",
- "routineSelected": "false",
- "routinePictureUrl": "string",
- "steps": [
- {
- "stepName": "pre-cleanse",
- "stepLabel": "Pre-cleanse",
- "stepOrder": 1,
- "stepType": "step",
- "stepSelected": true,
- "stepDetails": {
- "attribute1": "value1",
- "attribute2": "value2"
}, - "products": [
- { }
]
}
]
}
]
}, - "analysis": {
- "id": "string",
- "type": "string",
- "generalProfile": {
- "description": {
- "gender": "male",
- "eyesDescription": {
- "eyeBrowColor": {
- "rawScore": "string",
- "code": "string"
}, - "eyeBrowShape": {
- "rawScore": "string",
- "code": "string"
}, - "eyeColor": {
- "rawScore": "string",
- "code": "string"
}, - "eyeCrease": {
- "rawScore": "string",
- "code": "string"
}, - "eyeShape": {
- "rawScore": "string",
- "code": "string"
}, - "eyeDirection": {
- "rawScore": "string",
- "code": "string"
}, - "protrudingEyes": {
- "rawScore": "string",
- "code": "string"
}, - "eyeLashesLength": {
- "rawScore": "string",
- "code": "string"
}, - "darkCircles": {
- "rawScore": "string",
- "code": "string"
}, - "eyeCorrectionTool": {
- "rawScore": "string",
- "code": "string"
}, - "eyesClosenessCode": {
- "rawScore": "string",
- "code": "string"
}, - "eyeBrowsThickness": {
- "rawScore": "string",
- "code": "string"
}
}, - "faceShape": {
- "rawScore": "string",
- "code": "string"
}, - "lipsDescription": {
- "rawScore": "string",
- "code": "string"
}, - "cupidVisibility": {
- "rawScore": "string",
- "code": "string"
}, - "mouthWidth": {
- "rawScore": "string",
- "code": "string"
}, - "foreheadSize": {
- "rawScore": "string",
- "code": "string"
}, - "noseDescription": {
- "rawScore": "string",
- "code": "string"
}, - "age": {
- "rawScore": "string",
- "code": "string"
}, - "calculatedAge": {
- "rawScore": "string",
- "code": "string"
}, - "externalfactors": {
- "rawScore": "string",
- "code": "string"
}, - "internalfactors": {
- "rawScore": "string",
- "code": "string"
}
}, - "priorities": {
- "allergens": [
- "string"
]
}, - "preferences": {
- "conceptionSpecificities": [
- "string"
], - "ingredientLimits": [
- "string"
], - "goals": [
- "string"
], - "categoryInterests": [
- "string"
]
}
}, - "skinProfile": {
- "description": {
- "skinTypes": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinSensitivities": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinTones": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinUndertones": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "complexionFreckled": {
- "rawsScore": "string",
- "code": "string"
}, - "encryptedSkinColorLab": [
- "string"
], - "shades": [
- "string"
], - "sunReaction": {
- "rawsScore": "string",
- "code": "string"
}
}, - "preferences": {
- "productExpectations": [
- "string"
]
}, - "priorities": {
- "concerns": {
- "code": "string",
- "zones": [
- "string"
], - "normalizedScore": 0,
- "rawScore": "string",
- "gapFromAverage": 0,
- "gapScoreBy10": 0,
- "active": true,
- "calculated": true,
- "rangeCode": "string",
- "typeCode": "string"
}, - "concernImprovementGoals": {
- "concernCode": "string",
- "zones": "string",
- "currentRangeCode": "string",
- "expectedRangeCode": "string"
}, - "clinicalSigns": {
- "code": "string",
- "zones": [
- "string"
], - "normalizedScore": 0,
- "rawScore": "string",
- "gapFromAverage": 0,
- "gapScoreBy10": 0,
- "active": true,
- "calculated": true,
- "rangeCode": "string",
- "typeCode": "string"
}, - "skinMotivationCode": "string",
- "lipChapDryOccasionCode": "string"
}, - "routines": {
- "productsUsed": {
- "rawsScore": "string",
- "code": "string"
}, - "skincareHealthcareProfessionalAdvised": true,
- "skincareMomentCode": "string",
- "dermatologistRoutineCode": "string",
- "lastSkincareMedicalTreatmentCode": "string",
- "facialHairGroomingCode": "string",
- "lastSkincareProfessionalTreatmentCode": "string",
- "goalCode": "string",
- "makeupWear": true,
- "sunExposureFrequencyCode": "string",
- "moisturizingFrequencyCode": "string",
- "skincareEyeUse": true
}
}
}
}, - "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Create a custom datum of an existing Customer.
| customerId required | string The customer identifier. |
| dataName required | string Example: APIGEE_BEAUTY_DIAGNOSIS The Customer Custom Data's name. This is used to categorise the data. Value should be URL-friendly. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
Request body to create Customer's custom data.
required | object |
required | object |
| serviceInteractionVersion required | string The schema for incoming data. Recommended to follow semantic versioning. |
required | Array of objects |
object | |
object |
{- "context": {
- "brand": "01",
- "country": "AU",
- "sourceName": "SFCC_Website",
- "sourcePersonId": "1",
- "diagnosisId": "cdadd323d24r4fd3d4r43f4d",
- "crmContactId": "C2SG00004871948",
- "sourceCreationDate": "2022-01-20T15:45:00.000+00:00"
}, - "personProfile": {
- "civility": "string",
- "firstName": "string",
- "lastName": "string",
- "emailAddress": "string",
- "gender": "string",
- "age": "21",
- "birthDate": "2022-01-20",
- "language": "en_SG",
- "consents": {
- "consentType": "string",
- "consentDate": "2019-08-24T14:15:22Z",
- "optin": true,
- "isPreferred": true,
- "isValid": true
}, - "postal": {
- "address1": "string",
- "address2": "string",
- "zipCode": "string",
- "city": "string",
- "region": "string",
- "country": "string"
}, - "phones": {
- "label": "string",
- "prefix": "string",
- "number": "string",
- "callingTimeFrame": "string"
}, - "contactInformations": {
- "contactId": "string",
- "contactTypeCode": "string",
- "isValid": true
}, - "additionalProperties": {
- "additionalProp1": "string",
- "additionalPropN": "string"
}
}, - "serviceInteractionVersion": "1.0.0",
- "serviceInteractions": [
- {
- "type": "survey",
- "code": "string",
- "label": "string",
- "values": [
- {
- "code": "Step_1_question1",
- "label": "What is your natural hair like?",
- "analytics": [
- {
- "analyticPath": "hairprofile/priorities/hairstates",
- "bmdmEntity": "hairstates",
- "bmdmValue": "string",
- "bmdmValues": [
- {
- "field": "beautyprofileref.hairstates",
- "value": "coily"
}
]
}
]
}
]
}
], - "diagnosisRecommendations": {
- "routines": [
- {
- "routineName": "haircare",
- "routineDesc": "Haircare moment",
- "routineOrder": "0",
- "routineType": "routineEvent",
- "routineSelected": "false",
- "routinePictureUrl": "string",
- "steps": [
- {
- "stepName": "pre-cleanse",
- "stepLabel": "Pre-cleanse",
- "stepOrder": 1,
- "stepType": "step",
- "stepSelected": true,
- "stepDetails": {
- "attribute1": "value1",
- "attribute2": "value2"
}, - "products": [
- { }
]
}
]
}
]
}, - "analysis": {
- "id": "string",
- "type": "string",
- "generalProfile": {
- "description": {
- "gender": "male",
- "eyesDescription": {
- "eyeBrowColor": {
- "rawScore": "string",
- "code": "string"
}, - "eyeBrowShape": {
- "rawScore": "string",
- "code": "string"
}, - "eyeColor": {
- "rawScore": "string",
- "code": "string"
}, - "eyeCrease": {
- "rawScore": "string",
- "code": "string"
}, - "eyeShape": {
- "rawScore": "string",
- "code": "string"
}, - "eyeDirection": {
- "rawScore": "string",
- "code": "string"
}, - "protrudingEyes": {
- "rawScore": "string",
- "code": "string"
}, - "eyeLashesLength": {
- "rawScore": "string",
- "code": "string"
}, - "darkCircles": {
- "rawScore": "string",
- "code": "string"
}, - "eyeCorrectionTool": {
- "rawScore": "string",
- "code": "string"
}, - "eyesClosenessCode": {
- "rawScore": "string",
- "code": "string"
}, - "eyeBrowsThickness": {
- "rawScore": "string",
- "code": "string"
}
}, - "faceShape": {
- "rawScore": "string",
- "code": "string"
}, - "lipsDescription": {
- "rawScore": "string",
- "code": "string"
}, - "cupidVisibility": {
- "rawScore": "string",
- "code": "string"
}, - "mouthWidth": {
- "rawScore": "string",
- "code": "string"
}, - "foreheadSize": {
- "rawScore": "string",
- "code": "string"
}, - "noseDescription": {
- "rawScore": "string",
- "code": "string"
}, - "age": {
- "rawScore": "string",
- "code": "string"
}, - "calculatedAge": {
- "rawScore": "string",
- "code": "string"
}, - "externalfactors": {
- "rawScore": "string",
- "code": "string"
}, - "internalfactors": {
- "rawScore": "string",
- "code": "string"
}
}, - "priorities": {
- "allergens": [
- "string"
]
}, - "preferences": {
- "conceptionSpecificities": [
- "string"
], - "ingredientLimits": [
- "string"
], - "goals": [
- "string"
], - "categoryInterests": [
- "string"
]
}
}, - "skinProfile": {
- "description": {
- "skinTypes": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinSensitivities": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinTones": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinUndertones": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "complexionFreckled": {
- "rawsScore": "string",
- "code": "string"
}, - "encryptedSkinColorLab": [
- "string"
], - "shades": [
- "string"
], - "sunReaction": {
- "rawsScore": "string",
- "code": "string"
}
}, - "preferences": {
- "productExpectations": [
- "string"
]
}, - "priorities": {
- "concerns": {
- "code": "string",
- "zones": [
- "string"
], - "normalizedScore": 0,
- "rawScore": "string",
- "gapFromAverage": 0,
- "gapScoreBy10": 0,
- "active": true,
- "calculated": true,
- "rangeCode": "string",
- "typeCode": "string"
}, - "concernImprovementGoals": {
- "concernCode": "string",
- "zones": "string",
- "currentRangeCode": "string",
- "expectedRangeCode": "string"
}, - "clinicalSigns": {
- "code": "string",
- "zones": [
- "string"
], - "normalizedScore": 0,
- "rawScore": "string",
- "gapFromAverage": 0,
- "gapScoreBy10": 0,
- "active": true,
- "calculated": true,
- "rangeCode": "string",
- "typeCode": "string"
}, - "skinMotivationCode": "string",
- "lipChapDryOccasionCode": "string"
}, - "routines": {
- "productsUsed": {
- "rawsScore": "string",
- "code": "string"
}, - "skincareHealthcareProfessionalAdvised": true,
- "skincareMomentCode": "string",
- "dermatologistRoutineCode": "string",
- "lastSkincareMedicalTreatmentCode": "string",
- "facialHairGroomingCode": "string",
- "lastSkincareProfessionalTreatmentCode": "string",
- "goalCode": "string",
- "makeupWear": true,
- "sunExposureFrequencyCode": "string",
- "moisturizingFrequencyCode": "string",
- "skincareEyeUse": true
}
}
}
}{- "code": 201,
- "message": "Created Customer Custom Data successfully!",
- "result": {
- "id": 3958373174,
- "name": "APIGEE_BEAUTY_DIAGNOSIS",
- "data": {
- "context": {
- "brand": "01",
- "country": "AU",
- "sourceName": "SFCC_Website",
- "sourcePersonId": "1",
- "diagnosisId": "cdadd323d24r4fd3d4r43f4d",
- "crmContactId": "C2SG00004871948",
- "sourceCreationDate": "2022-01-20T15:45:00.000+00:00"
}, - "personProfile": {
- "civility": "string",
- "firstName": "string",
- "lastName": "string",
- "emailAddress": "string",
- "gender": "string",
- "age": "21",
- "birthDate": "2022-01-20",
- "language": "en_SG",
- "consents": {
- "consentType": "string",
- "consentDate": "2019-08-24T14:15:22Z",
- "optin": true,
- "isPreferred": true,
- "isValid": true
}, - "postal": {
- "address1": "string",
- "address2": "string",
- "zipCode": "string",
- "city": "string",
- "region": "string",
- "country": "string"
}, - "phones": {
- "label": "string",
- "prefix": "string",
- "number": "string",
- "callingTimeFrame": "string"
}, - "contactInformations": {
- "contactId": "string",
- "contactTypeCode": "string",
- "isValid": true
}, - "additionalProperties": {
- "additionalProp1": "string",
- "additionalPropN": "string"
}
}, - "serviceInteractionVersion": "1.0.0",
- "serviceInteractions": [
- {
- "type": "survey",
- "code": "string",
- "label": "string",
- "values": [
- {
- "code": "Step_1_question1",
- "label": "What is your natural hair like?",
- "analytics": [
- {
- "analyticPath": "hairprofile/priorities/hairstates",
- "bmdmEntity": "hairstates",
- "bmdmValue": "string",
- "bmdmValues": [
- { }
]
}
]
}
]
}
], - "diagnosisRecommendations": {
- "routines": [
- {
- "routineName": "haircare",
- "routineDesc": "Haircare moment",
- "routineOrder": "0",
- "routineType": "routineEvent",
- "routineSelected": "false",
- "routinePictureUrl": "string",
- "steps": [
- {
- "stepName": "pre-cleanse",
- "stepLabel": "Pre-cleanse",
- "stepOrder": 1,
- "stepType": "step",
- "stepSelected": true,
- "stepDetails": {
- "attribute1": "value1",
- "attribute2": "value2"
}, - "products": [
- { }
]
}
]
}
]
}, - "analysis": {
- "id": "string",
- "type": "string",
- "generalProfile": {
- "description": {
- "gender": "male",
- "eyesDescription": {
- "eyeBrowColor": {
- "rawScore": "string",
- "code": "string"
}, - "eyeBrowShape": {
- "rawScore": "string",
- "code": "string"
}, - "eyeColor": {
- "rawScore": "string",
- "code": "string"
}, - "eyeCrease": {
- "rawScore": "string",
- "code": "string"
}, - "eyeShape": {
- "rawScore": "string",
- "code": "string"
}, - "eyeDirection": {
- "rawScore": "string",
- "code": "string"
}, - "protrudingEyes": {
- "rawScore": "string",
- "code": "string"
}, - "eyeLashesLength": {
- "rawScore": "string",
- "code": "string"
}, - "darkCircles": {
- "rawScore": "string",
- "code": "string"
}, - "eyeCorrectionTool": {
- "rawScore": "string",
- "code": "string"
}, - "eyesClosenessCode": {
- "rawScore": "string",
- "code": "string"
}, - "eyeBrowsThickness": {
- "rawScore": "string",
- "code": "string"
}
}, - "faceShape": {
- "rawScore": "string",
- "code": "string"
}, - "lipsDescription": {
- "rawScore": "string",
- "code": "string"
}, - "cupidVisibility": {
- "rawScore": "string",
- "code": "string"
}, - "mouthWidth": {
- "rawScore": "string",
- "code": "string"
}, - "foreheadSize": {
- "rawScore": "string",
- "code": "string"
}, - "noseDescription": {
- "rawScore": "string",
- "code": "string"
}, - "age": {
- "rawScore": "string",
- "code": "string"
}, - "calculatedAge": {
- "rawScore": "string",
- "code": "string"
}, - "externalfactors": {
- "rawScore": "string",
- "code": "string"
}, - "internalfactors": {
- "rawScore": "string",
- "code": "string"
}
}, - "priorities": {
- "allergens": [
- "string"
]
}, - "preferences": {
- "conceptionSpecificities": [
- "string"
], - "ingredientLimits": [
- "string"
], - "goals": [
- "string"
], - "categoryInterests": [
- "string"
]
}
}, - "skinProfile": {
- "description": {
- "skinTypes": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinSensitivities": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinTones": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "skinUndertones": {
- "rawsScore": "string",
- "code": "string",
- "zones": [
- "string"
]
}, - "complexionFreckled": {
- "rawsScore": "string",
- "code": "string"
}, - "encryptedSkinColorLab": [
- "string"
], - "shades": [
- "string"
], - "sunReaction": {
- "rawsScore": "string",
- "code": "string"
}
}, - "preferences": {
- "productExpectations": [
- "string"
]
}, - "priorities": {
- "concerns": {
- "code": "string",
- "zones": [
- "string"
], - "normalizedScore": 0,
- "rawScore": "string",
- "gapFromAverage": 0,
- "gapScoreBy10": 0,
- "active": true,
- "calculated": true,
- "rangeCode": "string",
- "typeCode": "string"
}, - "concernImprovementGoals": {
- "concernCode": "string",
- "zones": "string",
- "currentRangeCode": "string",
- "expectedRangeCode": "string"
}, - "clinicalSigns": {
- "code": "string",
- "zones": [
- "string"
], - "normalizedScore": 0,
- "rawScore": "string",
- "gapFromAverage": 0,
- "gapScoreBy10": 0,
- "active": true,
- "calculated": true,
- "rangeCode": "string",
- "typeCode": "string"
}, - "skinMotivationCode": "string",
- "lipChapDryOccasionCode": "string"
}, - "routines": {
- "productsUsed": {
- "rawsScore": "string",
- "code": "string"
}, - "skincareHealthcareProfessionalAdvised": true,
- "skincareMomentCode": "string",
- "dermatologistRoutineCode": "string",
- "lastSkincareMedicalTreatmentCode": "string",
- "facialHairGroomingCode": "string",
- "lastSkincareProfessionalTreatmentCode": "string",
- "goalCode": "string",
- "makeupWear": true,
- "sunExposureFrequencyCode": "string",
- "moisturizingFrequencyCode": "string",
- "skincareEyeUse": true
}
}
}
}, - "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Update an existing customer verification status to Verified
| customerId required | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
Request body to update an existing customer verification to Verified
Array of objects |
{- "verified": [
- {
- "type": "Email",
- "value": "john_doe@aaa.com",
- "verifyDate": "2023-04-10T10:48:00.000+00:00"
}, - {
- "type": "Mobile",
- "value": "22334455"
}
]
}{- "code": 200,
- "message": "Verification status successfully updated"
}Update prospect
Request body to update a prospect
| email required | string The prospect's email. |
Array of objects | |
| orgLastModDate | string <date-time> The last modified date of this resource in the source system. |
{- "email": "john@acme.com",
- "communications": [
- {
- "name": "optinedm",
- "value": "Opt-out"
}
], - "orgLastModDate": "2022-01-20T15:45:00.000+00:00"
}{- "code": 200,
- "message": "Updated Prospect successfully!"
}Get Customer BC based on most frequent transact BC or recent purchase
| mobileNo required | string Example: mobileNo=6281288959577 The customer mobile no. |
{- "code": 200,
- "message": "Found Customer BC",
- "result": {
- "bcId": 30014025,
- "email": "abc@yahoo.com",
- "fullName": "John Appleseed",
- "store": "Plaza Singapura"
}
}Get all campaigns based on optional parameters to filter results. Results will be based on the logged in user's access level.
| type | integer Enum: 1 2 Filter results by type:
|
| dateFrom | string Filter results by createdate or lastmoddate. Date format should be yyyy-MM-dd hh:mm:ss. |
| dateTo | string Filter results by createdate or lastmoddate. Date format should be yyyy-MM-dd hh:mm:ss. |
| status | integer Enum: 0 1 Filter results by status:
|
| name | string Filter results by name. |
| campaignId | integer The campaign identifier |
| sendDateFrom | string Filter results by profile senddate. Date format should be yyyy-MM-dd hh:mm:ss. |
| sendDateTo | string Filter results by profile senddate. Date format should be yyyy-MM-dd hh:mm:ss. |
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for Campaigns.",
- "results": [
- {
- "typeId": 1,
- "methodId": 1,
- "name": "June member promotion EDM",
- "description": "For any active member with birthday in June",
- "priorityId": 3,
- "approvedBy": 0,
- "statusId": 0,
- "startDate": "2022-01-20T15:45:00.000+00:00",
- "endDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 0,
- "lastModBy": 0,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create a new Campaign
Request body to create new campaign
| typeId required | integer The campaign's type:
|
| methodId | integer The campaign's method:
|
| name required | string <= 250 characters The campaign's name. |
| description | string The campaign's description. |
| priorityId | integer Default: 3 The campaign's sending priority:
|
| approvedBy | integer The user account id who approved the campaign sending. |
| statusId required | integer Default: 0 The campaign's sending status:
|
| startDate | string <date-time> The campaign's date to start sending. |
| endDate | string <date-time> The campaign's date to stop sending. |
| createBy | integer The user account id who created this resource. |
| lastModBy | integer The user account id who last modified this resource. |
{- "typeId": 1,
- "methodId": 1,
- "name": "June member promotion EDM",
- "description": "For any active member with birthday in June",
- "priorityId": 3,
- "approvedBy": 0,
- "statusId": 0,
- "startDate": "2022-01-20T15:45:00.000+00:00",
- "endDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 0,
- "lastModBy": 0
}{- "code": 201,
- "message": "Created a Campaign successfully!",
- "result": { },
- "results": {
- "typeId": 1,
- "methodId": 1,
- "name": "June member promotion EDM",
- "description": "For any active member with birthday in June",
- "priorityId": 3,
- "approvedBy": 0,
- "statusId": 0,
- "startDate": "2022-01-20T15:45:00.000+00:00",
- "endDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 0,
- "lastModBy": 0,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Check for all active email campaigns (type 1) and send to campaign recipients in queue.
{- "code": 200,
- "message": "Message Service ended successfully!",
- "results": [
- {
- "id": 111,
- "campaignid": 11,
- "custid": 1,
- "queuedate": "2022-01-20T15:45:00.000+00:00",
- "senddate": "2022-01-20T15:45:00.000+00:00",
- "refid": "string",
- "statusid": 0,
- "text1": "string"
}
]
}Check for all active sms campaigns (type 2) and send to campaign recipients in queue.
{- "code": 200,
- "message": "Message Service ended successfully!",
- "results": [
- {
- "id": 111,
- "campaignid": 11,
- "custid": 1,
- "queuedate": "2022-01-20T15:45:00.000+00:00",
- "senddate": "2022-01-20T15:45:00.000+00:00",
- "refid": "string",
- "statusid": 0,
- "text1": "string"
}
]
}Takes in a Campaign Id and send SMS to campaign recipients in queue via SMSNX Bulk SMS.
| campaignId required | integer The campaign identifier. |
| limit | integer Default: 500 The number of campaign recipients to send. |
| sendOnce | boolean Default: true Indicator if to check duplicate campaign recipient |
{- "code": 200,
- "message": "Message Service ended successfully!",
- "results": [
- {
- "id": 111,
- "campaignid": 11,
- "custid": 1,
- "queuedate": "2022-01-20T15:45:00.000+00:00",
- "senddate": "2022-01-20T15:45:00.000+00:00",
- "refid": "string",
- "statusid": 0,
- "text1": "string"
}
]
}Trigger automated campaign based on campaign key.
| campaignKey required | string The campaign key. |
| customerId | integer The customer identifier. Only applicable to some campaigns. |
| memberLevelId | integer The member level identifier. Only applicable to some campaigns. |
| processDate | string <date> The processing date. Date format should be yyyy-MM-dd. Only applicable to some campaigns. |
{- "code": 200,
- "message": "Process [welcome] successfully!"
}Get a campaign by its identifier.
| campaignId required | integer The campaign identifier. |
{- "code": 200,
- "message": "Found Campaign successfully!",
- "result": { },
- "results": {
- "typeId": 1,
- "methodId": 1,
- "name": "June member promotion EDM",
- "description": "For any active member with birthday in June",
- "priorityId": 3,
- "approvedBy": 0,
- "statusId": 0,
- "startDate": "2022-01-20T15:45:00.000+00:00",
- "endDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 0,
- "lastModBy": 0,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Update an existing Campaign by its identifier.
| campaignId required | integer The campaign identifier. |
Request body to update campaign by id.
| typeId required | integer The campaign's type:
|
| methodId | integer The campaign's method:
|
| name required | string <= 250 characters The campaign's name. |
| description | string The campaign's description. |
| priorityId | integer Default: 3 The campaign's sending priority:
|
| approvedBy | integer The user account id who approved the campaign sending. |
| statusId required | integer Default: 0 The campaign's sending status:
|
| startDate | string <date-time> The campaign's date to start sending. |
| endDate | string <date-time> The campaign's date to stop sending. |
| createBy | integer The user account id who created this resource. |
| lastModBy | integer The user account id who last modified this resource. |
{- "typeId": 1,
- "methodId": 1,
- "name": "June member promotion EDM",
- "description": "For any active member with birthday in June",
- "priorityId": 3,
- "approvedBy": 0,
- "statusId": 0,
- "startDate": "2022-01-20T15:45:00.000+00:00",
- "endDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 0,
- "lastModBy": 0
}{- "code": 200,
- "message": "Updated Campaign successfully!"
}Get recipients of a campaign by its identifier.
| campaignId required | integer The campaign identifier. |
{- "code": 200,
- "message": "Found Campaign Recipient successfully!",
- "result": { },
- "results": {
- "custId": 1,
- "campaignId": 11,
- "statusId": 0,
- "retry": 0,
- "queueDate": "2022-01-20T15:45:00.000+00:00",
- "sendDate": "2022-01-20T15:45:00.000+00:00",
- "openDate": "2022-01-20T15:45:00.000+00:00",
- "responseDate": "2022-01-20T15:45:00.000+00:00",
- "id1": 0,
- "id2": 0,
- "id3": 0,
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "id": 111,
- "createBy": 0,
- "lastModBy": 0,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Add recipients to a campaign by its identifier.
| campaignId required | integer The campaign identifier. |
Request body for adding new campaign recipients
| custId required | integer The profile primary id. |
| campaignId required | integer The campaign primary id. |
| statusId | integer Default: 0 Enum: 0 1 2 11 21 22 31 41 The campaign recipient's sending status:
|
| retry | integer The campaign recipient's attempt of sending. |
| queueDate | string <date> Default: "now()" The date and time the profile was added to the campaign. |
| sendDate | string <date> The date and time the campaign was processed for sending. |
| openDate | string <date> The date and time the campaign was opened or read. |
| responseDate | string <date> The date and time the campaign received any response. |
| id1 | integer Additional ID attached to the campaign. |
| id2 | integer Additional ID attached to the campaign. |
| id3 | integer Additional ID attached to the campaign. |
| text1 | string Additional string attached to the campaign. |
| text2 | string Additional string attached to the campaign. |
| text3 | string Additional string attached to the campaign. |
{- "custId": 1,
- "campaignId": 11,
- "statusId": 0,
- "retry": 0,
- "queueDate": "2022-01-20T15:45:00.000+00:00",
- "sendDate": "2022-01-20T15:45:00.000+00:00",
- "openDate": "2022-01-20T15:45:00.000+00:00",
- "responseDate": "2022-01-20T15:45:00.000+00:00",
- "id1": 0,
- "id2": 0,
- "id3": 0,
- "text1": "string",
- "text2": "string",
- "text3": "string"
}{- "code": 200,
- "message": "Campaign recipients added."
}Add recipient details of a campaign by its identifier.
| campaignId required | integer The campaign identifier. |
Request body to update recipients details of a campaign
| custId required | integer The profile primary id. |
| campaignId required | integer The campaign primary id. |
| statusId | integer Default: 0 Enum: 0 1 2 11 21 22 31 41 The campaign recipient's sending status:
|
| retry | integer The campaign recipient's attempt of sending. |
| queueDate | string <date> Default: "now()" The date and time the profile was added to the campaign. |
| sendDate | string <date> The date and time the campaign was processed for sending. |
| openDate | string <date> The date and time the campaign was opened or read. |
| responseDate | string <date> The date and time the campaign received any response. |
| id1 | integer Additional ID attached to the campaign. |
| id2 | integer Additional ID attached to the campaign. |
| id3 | integer Additional ID attached to the campaign. |
| text1 | string Additional string attached to the campaign. |
| text2 | string Additional string attached to the campaign. |
| text3 | string Additional string attached to the campaign. |
{- "custId": 1,
- "campaignId": 11,
- "statusId": 0,
- "retry": 0,
- "queueDate": "2022-01-20T15:45:00.000+00:00",
- "sendDate": "2022-01-20T15:45:00.000+00:00",
- "openDate": "2022-01-20T15:45:00.000+00:00",
- "responseDate": "2022-01-20T15:45:00.000+00:00",
- "id1": 0,
- "id2": 0,
- "id3": 0,
- "text1": "string",
- "text2": "string",
- "text3": "string"
}{- "code": 200,
- "message": "Campaign recipients updated."
}Get recipients of a campaign by its identifier.
| campaignId required | integer The campaign identifier. |
| campaignListId required | integer The campaign list identifier. |
{- "code": 200,
- "message": "Found Campaign Recipient successfully!",
- "result": {
- "custId": 1,
- "campaignId": 11,
- "statusId": 0,
- "retry": 0,
- "queueDate": "2022-01-20T15:45:00.000+00:00",
- "sendDate": "2022-01-20T15:45:00.000+00:00",
- "openDate": "2022-01-20T15:45:00.000+00:00",
- "responseDate": "2022-01-20T15:45:00.000+00:00",
- "id1": 0,
- "id2": 0,
- "id3": 0,
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "id": 111,
- "createBy": 0,
- "lastModBy": 0,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Add recipient details of a campaign by its identifier.
| campaignId required | integer The campaign identifier. |
| campaignListId required | integer The campaign list identifier. |
| statusId | integer Default: 0 Enum: 0 1 2 11 21 22 31 41 Status:
|
{- "statusId": 0
}{- "code": 200,
- "message": "Campaign recipients updated."
}Delete recipients of a campaign by its identifier.
| campaignId required | integer The campaign identifier. |
| campaignListId required | integer The campaign list identifier. |
{- "code": 200,
- "message": "Campaign recipients deleted."
}Get existing Product list.
| code | string The product's code from any of the |
| name | string The product's name. |
| status | string Enum: "0" "1" The product's status:
|
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for Products.",
- "results": [
- {
- "typeid": 1,
- "orgId1": 11,
- "orgId2": 21,
- "orgId3": 31,
- "name": "string",
- "altName1": "string",
- "altName2": "string",
- "altName3": "string",
- "description": "string",
- "pageUrl": "string",
- "imageUrl": "string",
- "statusId": 1,
- "tier1Name": "string",
- "tier2Name": "string",
- "tier3Name": "string",
- "tier4Name": "string",
- "tier5Name": "string",
- "tier6Name": "string",
- "tier7Name": "string",
- "tier8Name": "string",
- "tier9Name": "string",
- "qty1": 1,
- "qty2": 0,
- "qty3": 0,
- "currency": "AUD",
- "amount1": 4.5,
- "amount2": 4,
- "amount3": 5,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create new products
Request body to create new products
| typeid | integer Default: 1 Value: 1 The type of product:
|
| orgId1 required | string <= 50 characters The original product ID 1 in the source system. e.g. ean code |
| orgId2 | string <= 50 characters The original product ID 2 in the source system. e.g. pos id |
| orgId3 | string <= 50 characters The original product ID 3 in the source system. e.g. marsid |
| name required | string <= 250 characters The product name. |
| altName1 | string <= 250 characters The product alternate name 1. |
| altName2 | string <= 250 characters The product alternate name 2. |
| altName3 | string <= 250 characters The product alternate name 3. |
| description | string <= 2000 characters The product description. |
| pageUrl | string <= 250 characters The product page url string. |
| imageUrl | string <= 250 characters The product image url string. |
| statusId | string The product status:
|
| tier1Name | string <= 250 characters The product tier 1 name (e.g. Signature). |
| tier2Name | string <= 250 characters The product tier 1 name (e.g. Brand). |
| tier3Name | string <= 250 characters The product tier 1 name (e.g. Sub Brand). |
| tier4Name | string <= 250 characters The product tier 1 name (e.g. Reference). |
| tier5Name | string <= 250 characters The product tier 5 name. |
| tier6Name | string <= 250 characters The product tier 6 name (e.g. Axe). |
| tier7Name | string <= 250 characters The product tier 7 name (e.g. Sub Axe). |
| tier8Name | string <= 250 characters The product tier 8 name (e.g. Class). |
| tier9Name | string <= 250 characters The product tier 9 name (e.g. Function). |
| qty1 | integer The product quantity number. |
| qty2 | integer The product quantity number. |
| qty3 | integer The product quantity number. |
| currency | string <= 3 characters The product price's currency in 3-alpha ISO 4217. |
| amount1 | integer The product price (with tax). |
| amount2 | integer The product price (without tax). |
| amount3 | integer The product price (other). |
| orgCreateDate | string The creation date of this resource in the source system. |
| orgCreateBy | string <= 100 characters The original username who created this resource in the source system. |
| orgLastModDate | string The last modified date of this resource in the source system. |
| orgLastModBy | string <= 100 characters The original username who last modified this resource in the source system. |
{- "typeid": 1,
- "orgId1": 11,
- "orgId2": 21,
- "orgId3": 31,
- "name": "string",
- "altName1": "string",
- "altName2": "string",
- "altName3": "string",
- "description": "string",
- "pageUrl": "string",
- "imageUrl": "string",
- "statusId": 1,
- "tier1Name": "string",
- "tier2Name": "string",
- "tier3Name": "string",
- "tier4Name": "string",
- "tier5Name": "string",
- "tier6Name": "string",
- "tier7Name": "string",
- "tier8Name": "string",
- "tier9Name": "string",
- "qty1": 1,
- "qty2": 0,
- "qty3": 0,
- "currency": "AUD",
- "amount1": 4.5,
- "amount2": 4,
- "amount3": 5,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith"
}{- "code": 201,
- "message": "Created a Product successfully!",
- "result": { },
- "results": {
- "typeid": 1,
- "orgId1": 11,
- "orgId2": 21,
- "orgId3": 31,
- "name": "string",
- "altName1": "string",
- "altName2": "string",
- "altName3": "string",
- "description": "string",
- "pageUrl": "string",
- "imageUrl": "string",
- "statusId": 1,
- "tier1Name": "string",
- "tier2Name": "string",
- "tier3Name": "string",
- "tier4Name": "string",
- "tier5Name": "string",
- "tier6Name": "string",
- "tier7Name": "string",
- "tier8Name": "string",
- "tier9Name": "string",
- "qty1": 1,
- "qty2": 0,
- "qty3": 0,
- "currency": "AUD",
- "amount1": 4.5,
- "amount2": 4,
- "amount3": 5,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get an existing Product.
| productId required | integer Product Identifier |
{- "code": 200,
- "message": "Found Product successfully!",
- "result": { },
- "results": {
- "typeid": 1,
- "orgId1": 11,
- "orgId2": 21,
- "orgId3": 31,
- "name": "string",
- "altName1": "string",
- "altName2": "string",
- "altName3": "string",
- "description": "string",
- "pageUrl": "string",
- "imageUrl": "string",
- "statusId": 1,
- "tier1Name": "string",
- "tier2Name": "string",
- "tier3Name": "string",
- "tier4Name": "string",
- "tier5Name": "string",
- "tier6Name": "string",
- "tier7Name": "string",
- "tier8Name": "string",
- "tier9Name": "string",
- "qty1": 1,
- "qty2": 0,
- "qty3": 0,
- "currency": "AUD",
- "amount1": 4.5,
- "amount2": 4,
- "amount3": 5,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get existing Product Tier list.
| type | string Enum: "Signature" "Brand" "Sub Brand" "Reference" "Axe" "Sub Axe" "Class" "Function" The product tier's type. |
| code | string Enum: "orgId1" "orgId2" "orgId3" The product tier's code. |
| name | string The product tier's name. |
| status | string Enum: "0" "1" The product tier's status:
|
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Found Product Tiers successfully!",
- "results": [
- {
- "type": "Signature",
- "orgId1": "AC02011A",
- "orgId2": "string",
- "orgId3": "string",
- "name": "string",
- "description": "string",
- "seqNo": 0,
- "statusId": 1,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create new product tiers
Request body to create new product tiers
| type required | string Enum: "Signature" "Brand" "Sub Brand" "Reference" "Axe" "Sub Axe" "Class" "Function" The product tier's type |
| orgId1 required | string <= 50 characters The original product tier ID 1 in the source system. e.g. sap code |
| orgId2 | string <= 50 characters The original product tier ID 2 in the source system. |
| orgId3 | string <= 50 characters The original product tier ID 3 in the source system. |
| name | string <= 250 characters The product name. |
| description | string <= 2000 characters The product tier description. |
| seqNo | integer The product tier order number. |
| statusId | integer The product tier status:
|
| orgCreateDate | string The creation date of this resource in the source system. |
| orgCreateBy | string <= 100 characters The original username who created this resource in the source system. |
| orgLastModDate | string The last modified date of this resource in the source system. |
| orgLastModBy | string <= 100 characters The original username who last modified this resource in the source system. |
{- "type": "Signature",
- "orgId1": "AC02011A",
- "orgId2": "string",
- "orgId3": "string",
- "name": "string",
- "description": "string",
- "seqNo": 0,
- "statusId": 1,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith"
}{- "code": 201,
- "message": "Created a Product Tier successfully!",
- "result": { },
- "results": {
- "type": "Signature",
- "orgId1": "AC02011A",
- "orgId2": "string",
- "orgId3": "string",
- "name": "string",
- "description": "string",
- "seqNo": 0,
- "statusId": 1,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get an existing Product Tier.
| productTierId required | integer Product Tier Identifier |
| type | string Default: "Signature" Enum: "Signature" "Brand" "Sub Brand" "Reference" "Axe" "Sub Axe" "Class" "Function" The product tier identifier type. |
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Found Product Tier successfully!",
- "result": { },
- "results": {
- "type": "Signature",
- "orgId1": "AC02011A",
- "orgId2": "string",
- "orgId3": "string",
- "name": "string",
- "description": "string",
- "seqNo": 0,
- "statusId": 1,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createBy": 1,
- "lastModBy": 1,
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Update an existing product tier
| productTierId required | integer Product Tier Identifier |
| type | string Default: "Signature" Enum: "Signature" "Brand" "Sub Brand" "Reference" "Axe" "Sub Axe" "Class" "Function" The product tier identifier type. |
Request body to update product tier
| type required | string Enum: "Signature" "Brand" "Sub Brand" "Reference" "Axe" "Sub Axe" "Class" "Function" The product tier's type |
| orgId1 required | string <= 50 characters The original product tier ID 1 in the source system. e.g. sap code |
| orgId2 | string <= 50 characters The original product tier ID 2 in the source system. |
| orgId3 | string <= 50 characters The original product tier ID 3 in the source system. |
| name | string <= 250 characters The product name. |
| description | string <= 2000 characters The product tier description. |
| seqNo | integer The product tier order number. |
| statusId | integer The product tier status:
|
| orgCreateDate | string The creation date of this resource in the source system. |
| orgCreateBy | string <= 100 characters The original username who created this resource in the source system. |
| orgLastModDate | string The last modified date of this resource in the source system. |
| orgLastModBy | string <= 100 characters The original username who last modified this resource in the source system. |
{- "type": "Signature",
- "orgId1": "AC02011A",
- "orgId2": "string",
- "orgId3": "string",
- "name": "string",
- "description": "string",
- "seqNo": 0,
- "statusId": 1,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith"
}{- "code": 200,
- "message": "Update Product Tier Successfully!"
}Delete an existing product tier
| productTierId required | integer Product Tier Identifier |
| type | string Default: "Signature" Enum: "Signature" "Brand" "Sub Brand" "Reference" "Axe" "Sub Axe" "Class" "Function" The product tier identifier type. |
{- "code": 200,
- "message": "Deleted Product Tier successfully!"
}Get all transactions based on optional parameters to filter results. Results will be based on the logged in user's access level.
| customerId | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| type | string (type) Enum: "Purchase" "Service" "Consultation" "Newsletter" "Promotion" "Order" Example: type=Purchase The transaction's type (Purchase, Service, Consultation, etc). Supports comma-separated list. Non-case sensitive. Example: |
| statusId | string Default: "Created" Enum: "Created" "Paid" "Invoiced" "Cancelled" "Delivered" "Rejected" The transaction's current status:
|
| limit | number Default: 10 Limit number of results. |
| offset | number Default: 0 Offset index of results. |
| sort | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "transid" Enum: "transid" "custid" |
| from | string <date-time> Example: from=2022-01-20T15:45:00.000+00:00 Filter results by orgcreatedate |
| to | string <date-time> Example: to=2022-01-20T15:45:00.000+00:00 Filter results by orgcreatedate |
| storeType | string Example: storeType=Offline Filter results by store type |
{- "code": 200,
- "message": "Search results for Transactions.",
- "results": [
- {
- "transId": 123,
- "customerId": 1,
- "orgId1": "L00123",
- "orgId2": "SFCC000001",
- "orgId3": "SFCC_IN",
- "orgId4": "BACC_APAC",
- "orgId5": "BACC000001",
- "type": "Purchase",
- "subtype": "Purchase",
- "propertyId": 1,
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "date1": "2022-01-20T15:45:00.000+00:00",
- "date2": "2022-01-20T15:45:00.000+00:00",
- "date3": "2022-01-20T15:45:00.000+00:00",
- "date4": "2022-01-20T15:45:00.000+00:00",
- "date5": "2022-01-20T15:45:00.000+00:00",
- "code1": "string",
- "code2": "string",
- "code3": "string",
- "code4": "string",
- "code5": "string",
- "currency": "SGD",
- "amount1": 24,
- "amount2": 24,
- "amount3": 0,
- "qty1": 2,
- "qty2": 2,
- "qty3": 2,
- "products": [
- {
- "orgId1": "A01",
- "orgId2": "string",
- "orgId3": "string",
- "typeId": 1,
- "qty1": 2,
- "qty2": 0,
- "qty3": 0,
- "amount1": 24,
- "amount2": 25,
- "amount3": 26,
- "amount4": 27,
- "text1": "Purchase",
- "text2": "Visa",
- "productName": "SMK AURA DEW 02TES",
- "meta": [
- {
- "name": "productType",
- "value": "Purchase"
}
], - "transId": 123,
- "transItemId": 456,
- "point1": 24,
- "point2": 24,
- "point3": 24
}
], - "meta": [
- {
- "name": "campaignMedium",
- "value": "Facebook"
}
], - "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnAppleseed",
- "status": "Created",
- "outletId": 482,
- "outletCode": "SGTK4928",
- "outletName": "Takashimaya Mall Level 2",
- "outletType": "Offline",
- "point1": 24,
- "point2": 24,
- "point3": 24,
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "traceId1": 1,
- "traceId2": 1,
- "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1,
- "employeeId": 1,
- "employeeLoginName": "realtimeapi",
- "employeeName": "Ryan Hoang",
- "text1": "Purchase",
- "text2": "Visa",
- "text3": "Information"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create a new Transaction
| createNewSkus | integer Default: 0 Enum: 0 1 Setting this value to 1 allows the creation of SKUs defined in Transaction's Products if they are missing from Database. |
Request body to create a new transaction
| locationId required | string The Outlet Code where transaction was made. Can be used as identifier on external systems. |
| statusId required | integer <int32> Default: 1 Enum: 1 2 3 4 5 6 The transaction's current status:
|
| customerIdType required | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" The customer identifier type.
|
| customerId required | number The transaction's customer id. |
| orgId1 required | string <= 50 characters The transaction's order number (primary key). |
| orgId2 required | string <= 50 characters The transaction's Order reference number generated by the source system. |
| orgId3 | string <= 50 characters The transaction's Client Source Systems |
| orgId4 | string <= 50 characters Original Source System redirect to the Client Source Systems to make purchase. |
| orgId5 | string <= 50 characters The transaction's Order reference number generated by Original Source System |
| type required | string (type) Enum: "Purchase" "Service" "Consultation" "Newsletter" "Promotion" "Order" The transaction's type. |
| subtype | string Default: "Purchase" Enum: "Purchase" "Return" "Exchange" The transaction's subtype. |
| propertyId | number The transaction's property id. |
| id1 | number For storing additional identifiers. |
| id2 | number For storing additional identifiers. |
| id3 | number For storing additional identifiers. |
| date1 required | string <date> The transaction's order date. |
| date2 | string <date> |
| date3 | string <date> |
| date4 | string <date> |
| date5 | string <date> |
| code1 | string |
| code2 | string |
| code3 | string |
| code4 | string |
| code5 | string |
| currency | string <= 3 characters The transaction's currency (default by country, configured in DB). |
| amount1 required | number <double> The transaction's amount (with tax). |
| amount2 | number <double> The transaction's amount (without tax). |
| amount3 | number <double> The transaction's amount (other). |
| qty1 | number The transaction's total number of items. |
| qty2 | number |
| qty3 | number |
Array of objects (abstract-11) | |
Array of objects (meta-2) | |
| orgCreateDate | string <date-time> The creation date of this resource in the source system. |
| orgCreateBy | string <= 100 characters The employee's loginName who created this transaction. |
{- "locationId": "SGTK4928",
- "statusId": 1,
- "customerIdType": "uid",
- "customerId": 1,
- "orgId1": "L00123",
- "orgId2": "SFCC000001",
- "orgId3": "SFCC_IN",
- "orgId4": "BACC_APAC",
- "orgId5": "BACC000001",
- "type": "Purchase",
- "subtype": "Purchase",
- "propertyId": 1,
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "date1": "2022-01-20T15:45:00.000+00:00",
- "date2": "2022-01-20T15:45:00.000+00:00",
- "date3": "2022-01-20T15:45:00.000+00:00",
- "date4": "2022-01-20T15:45:00.000+00:00",
- "date5": "2022-01-20T15:45:00.000+00:00",
- "code1": "string",
- "code2": "string",
- "code3": "string",
- "code4": "string",
- "code5": "string",
- "currency": "SGD",
- "amount1": 24,
- "amount2": 24,
- "amount3": 0,
- "qty1": 2,
- "qty2": 2,
- "qty3": 2,
- "products": [
- {
- "orgId1": "A01",
- "orgId2": "string",
- "orgId3": "string",
- "typeId": 1,
- "qty1": 2,
- "qty2": 0,
- "qty3": 0,
- "amount1": 24,
- "amount2": 25,
- "amount3": 26,
- "amount4": 27,
- "text1": "Purchase",
- "text2": "Visa",
- "productName": "SMK AURA DEW 02TES",
- "meta": [
- {
- "name": "productType",
- "value": "Purchase"
}
]
}
], - "meta": [
- {
- "name": "campaignMedium",
- "value": "Facebook"
}
], - "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnAppleseed"
}{- "code": 201,
- "message": "Created a new Transaction successfully!",
- "result": {
- "transId": 123,
- "customerId": 1,
- "orgId1": "L00123",
- "orgId2": "SFCC000001",
- "orgId3": "SFCC_IN",
- "orgId4": "BACC_APAC",
- "orgId5": "BACC000001",
- "type": "Purchase",
- "subtype": "Purchase",
- "propertyId": 1,
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "date1": "2022-01-20T15:45:00.000+00:00",
- "date2": "2022-01-20T15:45:00.000+00:00",
- "date3": "2022-01-20T15:45:00.000+00:00",
- "date4": "2022-01-20T15:45:00.000+00:00",
- "date5": "2022-01-20T15:45:00.000+00:00",
- "code1": "string",
- "code2": "string",
- "code3": "string",
- "code4": "string",
- "code5": "string",
- "currency": "SGD",
- "amount1": 24,
- "amount2": 24,
- "amount3": 0,
- "qty1": 2,
- "qty2": 2,
- "qty3": 2,
- "products": [
- {
- "orgId1": "A01",
- "orgId2": "string",
- "orgId3": "string",
- "typeId": 1,
- "qty1": 2,
- "qty2": 0,
- "qty3": 0,
- "amount1": 24,
- "amount2": 25,
- "amount3": 26,
- "amount4": 27,
- "text1": "Purchase",
- "text2": "Visa",
- "productName": "SMK AURA DEW 02TES",
- "meta": [
- {
- "name": "productType",
- "value": "Purchase"
}
], - "transId": 123,
- "transItemId": 456,
- "point1": 24,
- "point2": 24,
- "point3": 24
}
], - "meta": [
- {
- "name": "campaignMedium",
- "value": "Facebook"
}
], - "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnAppleseed",
- "status": "Created",
- "outletId": 482,
- "outletCode": "SGTK4928",
- "outletName": "Takashimaya Mall Level 2",
- "outletType": "Offline",
- "point1": 24,
- "point2": 24,
- "point3": 24,
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "traceId1": 1,
- "traceId2": 1,
- "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1,
- "employeeId": 1,
- "employeeLoginName": "realtimeapi",
- "employeeName": "Ryan Hoang",
- "text1": "Purchase",
- "text2": "Visa",
- "text3": "Information"
}
}Get a transaction by its identifier.
| transactionId required | integer The transaction identifier. |
{- "code": 200,
- "message": "Found a Transaction successfully!",
- "result": {
- "transId": 123,
- "customerId": 1,
- "orgId1": "L00123",
- "orgId2": "SFCC000001",
- "orgId3": "SFCC_IN",
- "orgId4": "BACC_APAC",
- "orgId5": "BACC000001",
- "type": "Purchase",
- "subtype": "Purchase",
- "propertyId": 1,
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "date1": "2022-01-20T15:45:00.000+00:00",
- "date2": "2022-01-20T15:45:00.000+00:00",
- "date3": "2022-01-20T15:45:00.000+00:00",
- "date4": "2022-01-20T15:45:00.000+00:00",
- "date5": "2022-01-20T15:45:00.000+00:00",
- "code1": "string",
- "code2": "string",
- "code3": "string",
- "code4": "string",
- "code5": "string",
- "currency": "SGD",
- "amount1": 24,
- "amount2": 24,
- "amount3": 0,
- "qty1": 2,
- "qty2": 2,
- "qty3": 2,
- "products": [
- {
- "orgId1": "A01",
- "orgId2": "string",
- "orgId3": "string",
- "typeId": 1,
- "qty1": 2,
- "qty2": 0,
- "qty3": 0,
- "amount1": 24,
- "amount2": 25,
- "amount3": 26,
- "amount4": 27,
- "text1": "Purchase",
- "text2": "Visa",
- "productName": "SMK AURA DEW 02TES",
- "meta": [
- {
- "name": "productType",
- "value": "Purchase"
}
], - "transId": 123,
- "transItemId": 456,
- "point1": 24,
- "point2": 24,
- "point3": 24
}
], - "meta": [
- {
- "name": "campaignMedium",
- "value": "Facebook"
}
], - "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnAppleseed",
- "status": "Created",
- "outletId": 482,
- "outletCode": "SGTK4928",
- "outletName": "Takashimaya Mall Level 2",
- "outletType": "Offline",
- "point1": 24,
- "point2": 24,
- "point3": 24,
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "traceId1": 1,
- "traceId2": 1,
- "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1,
- "employeeId": 1,
- "employeeLoginName": "realtimeapi",
- "employeeName": "Ryan Hoang",
- "text1": "Purchase",
- "text2": "Visa",
- "text3": "Information"
}
}Update a transaction by its identifier.
| transactionId required | integer The transaction identifier. |
Request body to update transaction by id.
| locationId required | string The Outlet Code where transaction was made. Can be used as identifier on external systems. |
| statusId | integer <int32> Default: 1 Enum: 1 2 3 4 5 6 The transaction's current status:
|
| customerIdType required | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" The customer identifier type.
|
| customerId required | number The transaction's customer id. |
| orgId1 required | string <= 50 characters The transaction's order number (primary key). |
| orgId2 required | string <= 50 characters The transaction's Order reference number generated by the source system. |
| orgId3 | string <= 50 characters The transaction's Client Source Systems |
| orgId4 | string <= 50 characters Original Source System redirect to the Client Source Systems to make purchase. |
| orgId5 | string <= 50 characters The transaction's Order reference number generated by Original Source System |
| type required | string (type) Enum: "Purchase" "Service" "Consultation" "Newsletter" "Promotion" "Order" The transaction's type. |
| subtype | string Default: "Purchase" Enum: "Purchase" "Return" "Exchange" The transaction's subtype. |
| propertyId | number The transaction's property id. |
| id1 | number For storing additional identifiers. |
| id2 | number For storing additional identifiers. |
| id3 | number For storing additional identifiers. |
| date1 required | string <date> The transaction's order date. |
| date2 | string <date> |
| date3 | string <date> |
| date4 | string <date> |
| date5 | string <date> |
| code1 | string |
| code2 | string |
| code3 | string |
| code4 | string |
| code5 | string |
| currency | string <= 3 characters The transaction's currency (default by country, configured in DB). |
| amount1 required | number <double> The transaction's amount (with tax). |
| amount2 | number <double> The transaction's amount (without tax). |
| amount3 | number <double> The transaction's amount (other). |
| qty1 | number The transaction's total number of items. |
| qty2 | number |
| qty3 | number |
Array of objects (abstract-11) | |
Array of objects (meta-2) | |
| orgCreateDate | string <date-time> The creation date of this resource in the source system. |
| orgCreateBy | string <= 100 characters The employee's loginName who created this transaction. |
{- "locationId": "SGTK4928",
- "statusId": 1,
- "customerIdType": "uid",
- "customerId": 1,
- "orgId1": "L00123",
- "orgId2": "SFCC000001",
- "orgId3": "SFCC_IN",
- "orgId4": "BACC_APAC",
- "orgId5": "BACC000001",
- "type": "Purchase",
- "subtype": "Purchase",
- "propertyId": 1,
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "date1": "2022-01-20T15:45:00.000+00:00",
- "date2": "2022-01-20T15:45:00.000+00:00",
- "date3": "2022-01-20T15:45:00.000+00:00",
- "date4": "2022-01-20T15:45:00.000+00:00",
- "date5": "2022-01-20T15:45:00.000+00:00",
- "code1": "string",
- "code2": "string",
- "code3": "string",
- "code4": "string",
- "code5": "string",
- "currency": "SGD",
- "amount1": 24,
- "amount2": 24,
- "amount3": 0,
- "qty1": 2,
- "qty2": 2,
- "qty3": 2,
- "products": [
- {
- "orgId1": "A01",
- "orgId2": "string",
- "orgId3": "string",
- "typeId": 1,
- "qty1": 2,
- "qty2": 0,
- "qty3": 0,
- "amount1": 24,
- "amount2": 25,
- "amount3": 26,
- "amount4": 27,
- "text1": "Purchase",
- "text2": "Visa",
- "productName": "SMK AURA DEW 02TES",
- "meta": [
- {
- "name": "productType",
- "value": "Purchase"
}
]
}
], - "meta": [
- {
- "name": "campaignMedium",
- "value": "Facebook"
}
], - "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnAppleseed"
}{- "code": 200,
- "message": "Updated a Transaction successfully!",
- "result": {
- "transId": 123,
- "customerId": 1,
- "orgId1": "L00123",
- "orgId2": "SFCC000001",
- "orgId3": "SFCC_IN",
- "orgId4": "BACC_APAC",
- "orgId5": "BACC000001",
- "type": "Purchase",
- "subtype": "Purchase",
- "propertyId": 1,
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "date1": "2022-01-20T15:45:00.000+00:00",
- "date2": "2022-01-20T15:45:00.000+00:00",
- "date3": "2022-01-20T15:45:00.000+00:00",
- "date4": "2022-01-20T15:45:00.000+00:00",
- "date5": "2022-01-20T15:45:00.000+00:00",
- "code1": "string",
- "code2": "string",
- "code3": "string",
- "code4": "string",
- "code5": "string",
- "currency": "SGD",
- "amount1": 24,
- "amount2": 24,
- "amount3": 0,
- "qty1": 2,
- "qty2": 2,
- "qty3": 2,
- "products": [
- {
- "orgId1": "A01",
- "orgId2": "string",
- "orgId3": "string",
- "typeId": 1,
- "qty1": 2,
- "qty2": 0,
- "qty3": 0,
- "amount1": 24,
- "amount2": 25,
- "amount3": 26,
- "amount4": 27,
- "text1": "Purchase",
- "text2": "Visa",
- "productName": "SMK AURA DEW 02TES",
- "meta": [
- {
- "name": "productType",
- "value": "Purchase"
}
], - "transId": 123,
- "transItemId": 456,
- "point1": 24,
- "point2": 24,
- "point3": 24
}
], - "meta": [
- {
- "name": "campaignMedium",
- "value": "Facebook"
}
], - "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnAppleseed",
- "status": "Created",
- "outletId": 482,
- "outletCode": "SGTK4928",
- "outletName": "Takashimaya Mall Level 2",
- "outletType": "Offline",
- "point1": 24,
- "point2": 24,
- "point3": 24,
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "traceId1": 1,
- "traceId2": 1,
- "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1,
- "employeeId": 1,
- "employeeLoginName": "realtimeapi",
- "employeeName": "Ryan Hoang",
- "text1": "Purchase",
- "text2": "Visa",
- "text3": "Information"
}
}Get all products in transactions based on optional parameters to filter results. Results will be based on the logged in user's access level.
| customerId | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| dateFrom | string <date-time> Example: dateFrom=2022-01-20T15:45:00.000+00:00 Filter results by transaction date |
| dateTo | string <date-time> Example: dateTo=2022-01-20T15:45:00.000+00:00 Filter results by transaction date |
| status | string Enum: "Created" "Paid" "Invoiced" "Cancelled" "Delivered" "Rejected" Example: status=Invoiced,Delivered The transaction's current status:
Supports comma-separated list. Non-case sensitive. |
| productId | string Product code orgId1. Supports comma-separated list. Non-case sensitive. |
| limit | number Default: 10 Limit number of results. |
| offset | number Default: 0 Offset index of results. |
| sort | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "quantity" Value: "quantity" |
{- "code": 200,
- "message": "Search results for Transaction Products.",
- "results": [
- {
- "name": "SMK AURA DEW 02TES",
- "productId": "A10115718",
- "quantity": 9,
- "lastTransDate": "2023-02-10T11:37:00.000+00:00",
- "nextTransDate": "2023-06-24T11:37:00.000+00:00",
- "avgTransQty": 3
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Get all points in transactions based on optional parameters to filter results. Results will be based on the logged in user's access level.
| customerId | string The customer identifier. |
| customerIdType | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" Example: customerIdType=uid The customer identifier type.
|
| dateFrom | string <date-time> Example: dateFrom=2022-01-20T15:45:00.000+00:00 Filter results by transaction date |
| dateTo | string <date-time> Example: dateTo=2022-01-20T15:45:00.000+00:00 Filter results by transaction date |
| limit | number Default: 10 Limit number of results. |
| offset | number Default: 0 Offset index of results. |
| sort | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "transid" Value: "transid" |
{- "code": 200,
- "message": "Search results for Transaction Points.",
- "results": [
- {
- "transId": 100224,
- "awardId": 451,
- "date1": "2023-02-10T11:37:00.000+00:00",
- "points": 45,
- "orgId1": 21000009514,
- "amountSpent": 45,
- "notes": "New Transaction"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Get a transaction point details by its identifier.
| transactionId required | integer The transaction identifier. |
{- "code": 200,
- "message": "Search results for Transaction Points Details",
- "result": { },
- "results": {
- "purse": "Normal Multiplier",
- "point": 45
}
}Get all loyalty programs based on optional parameters to filter results. Results will be based on the logged in user's access level.
| pageSize | integer Default: 10 Page size of results. |
| page | string Default: 1 Page number of results. |
| sortBy | string Default: "id" Value: "id" |
| sort | string Default: "asc" Enum: "asc" "desc" |
{- "code": 200,
- "message": "Search results for Loyalty Programs.",
- "results": [
- {
- "id": 3802,
- "programId": "FOCPR",
- "name": "Friends of CPR",
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "pageSize": 10,
- "page": 1,
- "total": 100
}Create a new loyalty program.
Request body to create a new loyalty program
| programId required | string The unique loyalty program id for the brand. |
| name required | string The loyalty program name for the brand. |
| start | string <date-time> The start of loyalty program for the brand. Defaults to today. |
| end | string or null <date-time> The start of loyalty program for the brand. |
{- "programId": "FOCPR",
- "name": "Friends of CPR",
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}{- "code": 201,
- "message": "Created a new Loyalty Program successfully!",
- "result": { },
- "results": {
- "id": 3802,
- "programId": "FOCPR",
- "name": "Friends of CPR",
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get a loyalty program.
| programId required | string Example: FOCPR Loyalty Program ID |
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sortBy | string Default: "id" Value: "id" |
| sort | string Default: "asc" Enum: "asc" "desc" |
{- "code": 200,
- "message": "Found Loyalty Program.",
- "result": { },
- "results": {
- "id": 3802,
- "programId": "FOCPR",
- "name": "Friends of CPR",
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Update a loyalty program.
| programId required | string Example: FOCPR Loyalty Program ID |
Request body to update a loyalty program.
| programId required | string The unique loyalty program id for the brand. |
| name required | string The loyalty program name for the brand. |
| start | string <date-time> The start of loyalty program for the brand. Defaults to today. |
| end | string or null <date-time> The start of loyalty program for the brand. |
{- "programId": "FOCPR",
- "name": "Friends of CPR",
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}{- "code": 201,
- "message": "Updated Loyalty Program successfully!",
- "result": { },
- "results": {
- "id": 3802,
- "programId": "FOCPR",
- "name": "Friends of CPR",
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get all loyalty program tiers based on optional parameters to filter results. Results will be based on the logged in user's access level.
| programId required | string Example: FOCPR Loyalty Program ID |
| pageSize | integer Default: 10 Page size of results. |
| page | string Default: 1 Page number of results. |
| sortBy | string Default: "id" Value: "id" |
| sort | string Default: "asc" Enum: "asc" "desc" |
{- "code": 200,
- "message": "Search results for Loyalty Program tiers.",
- "results": [
- {
- "id": 3802,
- "memberLevelCode": "Gold",
- "memberLevelName": "Gold",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
], - "pageSize": 10,
- "page": 1,
- "total": 100
}Create a new loyalty program tier.
| programId required | string Example: FOCPR Loyalty Program ID |
Request body to create a new loyalty program tier
| memberLevelCode | string Member Level Code |
| memberLevelName | string Member Level Name |
{- "memberLevelCode": "Gold",
- "memberLevelName": "Gold"
}{- "code": 201,
- "message": "Created a new Loyalty Program Tier successfully!",
- "result": { },
- "results": {
- "id": 3802,
- "memberLevelCode": "Gold",
- "memberLevelName": "Gold",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
}Get all loyalty rules based on optional parameters to filter results. Results will be based on the logged in user's access level.
| ruleId | number Example: ruleId=123 Filter results by id of the loyalty rule. |
| name | string Example: name=Loyalty Rule 1 Filter results by name of the loyalty rule. |
| descr | string Example: descr=Loyalty Rule Description 1 Filter results by description of the loyalty rule. |
| propertyId | number Filter results by propertyId of the loyalty rule. |
| outletId | number Example: outletId=45 Filter results by outletId of the loyalty rule. |
| startDateFrom | string Example: startDateFrom=startDateFrom=2022-01-01T08:00:00.000+08:00 Filter results by startDate (from/start of startDate range) of loyalty rule (ISO format). |
| startDateTo | string Example: startDateTo=startDateTo=2022-01-31T08:00:00.000+08:00 Filter results by startDate (to/end of startDate range) of loyalty rule (ISO format). |
| endDateFrom | string Example: endDateFrom=endDateFrom=2022-01-01T08:00:00.000+08:00 Filter results by endDate (from/start of endDate range) of loyalty rule (ISO format). |
| endDateTo | string Example: endDateTo=endDateTo=2022-01-31T08:00:00.000+08:00 Filter results by endDate (to/end of endDate range) of loyalty rule (ISO format). |
| validity | number Example: validity=30 Filter results by validity of the loyalty rule. |
| expiryDateFrom | string Example: expiryDateFrom=expiryDateFrom=2022-12-01T08:00:00.000+08:00 Filter results by expiryDate (from/start of expiryDate range) of loyalty rule (ISO format). |
| expiryDateTo | string Example: expiryDateTo=expiryDateTo=2022-12-31T08:00:00.000+08:00 Filter results by expiryDate (to/end of expiryDate range) of loyalty rule (ISO format). |
| createDateFrom | string Example: createDateFrom=createDateFrom=2022-01-01T08:00:00.000+08:00 Filter results by createDate (from/start of createDate range) of loyalty rule (ISO format). |
| createDateTo | string Example: createDateTo=createDateTo=2022-01-31T08:00:00.000+08:00 Filter results by createDate (to/end of createDate range) of loyalty rule (ISO format). |
| createBy | number Example: createBy=56 Filter results by createBy of the loyalty rule. |
| typeId | number Example: typeId=1 Filter results by typeId of the loyalty rule. |
| rewardId | number Example: rewardId=2 Filter results by rewardId of the loyalty rule. |
| pageSize | number Default: 10 Page size of the results. |
| page | number Default: 1 Page number of the results. |
| sort | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "ruleid" Value: "ruleid" |
{- "code": 200,
- "message": "Search results for Loyalty Rules.",
- "results": [
- {
- "name": "Jaycern Promotion test 2",
- "descr": "Jaycern Promotion test 2",
- "propertyId": "Jaycern Promotion test 2",
- "outletId": null,
- "minSpent": 0,
- "maxSpent": 0,
- "startDate": "2022-12-06T08:50:05.000+00:00",
- "endDate": "2099-12-06T08:50:05.000+00:00",
- "dayFlags": 0,
- "hourFlags": 0,
- "dateFlags": 0,
- "monthFlags": 0,
- "revenueId": 0,
- "seqNo": 1,
- "voucherDescr": "Jaycern Promotion test 2",
- "expiryText": "",
- "validity": 30,
- "purseId": null,
- "spentMultiplier": 0,
- "purseMultiplier": 0,
- "flags": 0,
- "status": 1,
- "notifyDay": 0,
- "productGroupId": 0,
- "sourceId": 0,
- "redeemFlags": 0,
- "redeemMinSpent": 0,
- "redeemRevenueId": 0,
- "expiryDate": null,
- "startTime": 0,
- "endTime": "",
- "productId": 0,
- "productDateGoryId": 0,
- "productBrandId": 0,
- "minQty": 0,
- "specialFlags": 0,
- "maxQty": 0,
- "programmeStartDate": null,
- "programmeEndDate": null,
- "discountRevenueId": 0,
- "unit": "",
- "unique": 0,
- "amount": 0,
- "hidden": 0,
- "createDate": "2022-12-06T08:50:05.000+00:00",
- "createBy": 0,
- "lastModDate": "2022-12-06T08:50:05.000+00:00",
- "lastModBy": 0,
- "typeId": 0,
- "mbrlevelids": "1,2,3",
- "incoutletids": "",
- "excoutletids": "",
- "inccategoryids": "",
- "exccategoryids": "",
- "incproductids": "",
- "excproductids": "",
- "birthdaymonth": 0,
- "firsttrans": 0,
- "combine": 0,
- "pointsperdollarvalues": 0,
- "percentage": 0,
- "filters": [
- {
- "groupNo": 1,
- "filterId": 1,
- "filterOp": "!",
- "filterValue": "2nd entry"
}
], - "rewards": [
- {
- "rewardId": 51
}
], - "ruleId": 0
}
], - "pageSize": 10,
- "page": 1,
- "total": 100
}Create a new loyalty rule.
Request body to create a new loyalty rule
| name | string The loyalty rule name. |
| descr | string The loyalty rule descr. |
| propertyId | number The loyalty rule propertyId. |
| outletId | string The loyalty rule outletId. |
| minSpent | number The loyalty rule minSpent. |
| maxSpent | number The loyalty rule maxSpent. |
| startDate | string The loyalty rule startDate. |
| endDate | string The loyalty rule endDate. |
| dayFlags | number The loyalty rule dayFlags. |
| hourFlags | number The loyalty rule hourFlags. |
| dateFlags | number The loyalty rule dateFlags. |
| monthFlags | number The loyalty rule monthFlags. |
| revenueId | number The loyalty rule revenueId. |
| seqNo | number The loyalty rule seqNo. |
| voucherDescr | string The loyalty rule voucherDescr. |
| expiryText | string The loyalty rule expiryText. |
| validity | number The loyalty rule validity. |
| purseId | number The loyalty rule purseId. |
| spentMultiplier | number The loyalty rule spentMultiplier. |
| purseMultiplier | number The loyalty rule purseMultiplier. |
| flags | string The loyalty rule flags. |
| status | number The loyalty rule status. |
| notifyDay | number The loyalty rule notifyDay. |
| productGroupId | number The loyalty rule productGroupId. |
| sourceId | number The loyalty rule sourceId. |
| redeemFlags | number The loyalty rule redeemFlags. |
| redeemMinSpent | number The loyalty rule redeemMinSpent. |
| redeemRevenueId | number The loyalty rule redeemRevenueId. |
| expiryDate | string The loyalty rule expiryDate. |
| startTime | string The loyalty rule startTime. |
| endTime | string The loyalty rule endTime. |
| productId | number The loyalty rule productId. |
| productDateGoryId | number The loyalty rule productDateGoryId. |
| productBrandId | number The loyalty rule productBrandId. |
| minQty | number The loyalty rule minQty. |
| specialFlags | number The loyalty rule specialFlags. |
| maxQty | number The loyalty rule maxQty. |
| programmeStartDate | string The loyalty rule programmeStartDate. |
| programmeEndDate | string The loyalty rule programmeEndDate. |
| discountRevenueId | number The loyalty rule type. |
| unit | string The loyalty rule unit. |
| unique | number The loyalty rule unique. |
| amount | number The loyalty rule amount. |
| hidden | number The loyalty rule hidden. |
| createDate | string The loyalty rule createDate. |
| createBy | number The loyalty rule createBy. |
| lastModDate | string The loyalty rule lastModDate. |
| lastModBy | number The loyalty rule lastModBy. |
| typeId | string The loyalty rule typeId. |
| mbrlevelids | string The loyalty rule mbrlevelids. |
| incoutletids | string The loyalty rule incoutletids. |
| excoutletids | string The loyalty rule excoutletids. |
| inccategoryids | string The loyalty rule inccategoryids. |
| exccategoryids | string The loyalty rule exccategoryids. |
| incproductids | string The loyalty rule incproductids. |
| excproductids | string The loyalty rule excproductids. |
| birthdaymonth | number The loyalty rule birthdaymonth. |
| firsttrans | number The loyalty rule firsttrans. |
| combine | number The loyalty rule combine. |
| pointsperdollarvalues | number The loyalty rule pointsperdollarvalues. |
| percentage | number The loyalty rule percentage. |
Array of objects | |
Array of objects |
{- "name": "Jaycern Promotion test 2",
- "descr": "Jaycern Promotion test 2",
- "propertyId": "Jaycern Promotion test 2",
- "outletId": null,
- "minSpent": 0,
- "maxSpent": 0,
- "startDate": "2022-12-06T08:50:05.000+00:00",
- "endDate": "2099-12-06T08:50:05.000+00:00",
- "dayFlags": 0,
- "hourFlags": 0,
- "dateFlags": 0,
- "monthFlags": 0,
- "revenueId": 0,
- "seqNo": 1,
- "voucherDescr": "Jaycern Promotion test 2",
- "expiryText": "",
- "validity": 30,
- "purseId": null,
- "spentMultiplier": 0,
- "purseMultiplier": 0,
- "flags": 0,
- "status": 1,
- "notifyDay": 0,
- "productGroupId": 0,
- "sourceId": 0,
- "redeemFlags": 0,
- "redeemMinSpent": 0,
- "redeemRevenueId": 0,
- "expiryDate": null,
- "startTime": 0,
- "endTime": "",
- "productId": 0,
- "productDateGoryId": 0,
- "productBrandId": 0,
- "minQty": 0,
- "specialFlags": 0,
- "maxQty": 0,
- "programmeStartDate": null,
- "programmeEndDate": null,
- "discountRevenueId": 0,
- "unit": "",
- "unique": 0,
- "amount": 0,
- "hidden": 0,
- "createDate": "2022-12-06T08:50:05.000+00:00",
- "createBy": 0,
- "lastModDate": "2022-12-06T08:50:05.000+00:00",
- "lastModBy": 0,
- "typeId": 0,
- "mbrlevelids": "1,2,3",
- "incoutletids": "",
- "excoutletids": "",
- "inccategoryids": "",
- "exccategoryids": "",
- "incproductids": "",
- "excproductids": "",
- "birthdaymonth": 0,
- "firsttrans": 0,
- "combine": 0,
- "pointsperdollarvalues": 0,
- "percentage": 0,
- "filters": [
- {
- "groupNo": 1,
- "filterId": 1,
- "filterOp": "!",
- "filterValue": "2nd entry"
}
], - "rewards": [
- {
- "rewardId": 51
}
]
}{- "code": 201,
- "message": "Created a new Loyalty Rule successfully!",
- "result": { },
- "results": [
- {
- "name": "Jaycern Promotion test 2",
- "descr": "Jaycern Promotion test 2",
- "propertyId": "Jaycern Promotion test 2",
- "outletId": null,
- "minSpent": 0,
- "maxSpent": 0,
- "startDate": "2022-12-06T08:50:05.000+00:00",
- "endDate": "2099-12-06T08:50:05.000+00:00",
- "dayFlags": 0,
- "hourFlags": 0,
- "dateFlags": 0,
- "monthFlags": 0,
- "revenueId": 0,
- "seqNo": 1,
- "voucherDescr": "Jaycern Promotion test 2",
- "expiryText": "",
- "validity": 30,
- "purseId": null,
- "spentMultiplier": 0,
- "purseMultiplier": 0,
- "flags": 0,
- "status": 1,
- "notifyDay": 0,
- "productGroupId": 0,
- "sourceId": 0,
- "redeemFlags": 0,
- "redeemMinSpent": 0,
- "redeemRevenueId": 0,
- "expiryDate": null,
- "startTime": 0,
- "endTime": "",
- "productId": 0,
- "productDateGoryId": 0,
- "productBrandId": 0,
- "minQty": 0,
- "specialFlags": 0,
- "maxQty": 0,
- "programmeStartDate": null,
- "programmeEndDate": null,
- "discountRevenueId": 0,
- "unit": "",
- "unique": 0,
- "amount": 0,
- "hidden": 0,
- "createDate": "2022-12-06T08:50:05.000+00:00",
- "createBy": 0,
- "lastModDate": "2022-12-06T08:50:05.000+00:00",
- "lastModBy": 0,
- "typeId": 0,
- "mbrlevelids": "1,2,3",
- "incoutletids": "",
- "excoutletids": "",
- "inccategoryids": "",
- "exccategoryids": "",
- "incproductids": "",
- "excproductids": "",
- "birthdaymonth": 0,
- "firsttrans": 0,
- "combine": 0,
- "pointsperdollarvalues": 0,
- "percentage": 0,
- "filters": [
- {
- "groupNo": 1,
- "filterId": 1,
- "filterOp": "!",
- "filterValue": "2nd entry"
}
], - "rewards": [
- {
- "rewardId": 51
}
], - "ruleId": 0
}
]
}Get a loyalty rule by its identifier.
| ruleId required | string Loyalty Rule ID |
{- "code": 200,
- "message": "Found Loyalty Rule",
- "result": { },
- "results": {
- "name": "Jaycern Promotion test 2",
- "descr": "Jaycern Promotion test 2",
- "propertyId": "Jaycern Promotion test 2",
- "outletId": null,
- "minSpent": 0,
- "maxSpent": 0,
- "startDate": "2022-12-06T08:50:05.000+00:00",
- "endDate": "2099-12-06T08:50:05.000+00:00",
- "dayFlags": 0,
- "hourFlags": 0,
- "dateFlags": 0,
- "monthFlags": 0,
- "revenueId": 0,
- "seqNo": 1,
- "voucherDescr": "Jaycern Promotion test 2",
- "expiryText": "",
- "validity": 30,
- "purseId": null,
- "spentMultiplier": 0,
- "purseMultiplier": 0,
- "flags": 0,
- "status": 1,
- "notifyDay": 0,
- "productGroupId": 0,
- "sourceId": 0,
- "redeemFlags": 0,
- "redeemMinSpent": 0,
- "redeemRevenueId": 0,
- "expiryDate": null,
- "startTime": 0,
- "endTime": "",
- "productId": 0,
- "productDateGoryId": 0,
- "productBrandId": 0,
- "minQty": 0,
- "specialFlags": 0,
- "maxQty": 0,
- "programmeStartDate": null,
- "programmeEndDate": null,
- "discountRevenueId": 0,
- "unit": "",
- "unique": 0,
- "amount": 0,
- "hidden": 0,
- "createDate": "2022-12-06T08:50:05.000+00:00",
- "createBy": 0,
- "lastModDate": "2022-12-06T08:50:05.000+00:00",
- "lastModBy": 0,
- "typeId": 0,
- "mbrlevelids": "1,2,3",
- "incoutletids": "",
- "excoutletids": "",
- "inccategoryids": "",
- "exccategoryids": "",
- "incproductids": "",
- "excproductids": "",
- "birthdaymonth": 0,
- "firsttrans": 0,
- "combine": 0,
- "pointsperdollarvalues": 0,
- "percentage": 0,
- "filters": [
- {
- "groupNo": 1,
- "filterId": 1,
- "filterOp": "!",
- "filterValue": "2nd entry"
}
], - "rewards": [
- {
- "rewardId": 51
}
], - "ruleId": 0
}
}Update a loyalty rule by its identifier.
| ruleId required | string Loyalty Rule ID |
Request body to update loyalty rule by id.
| name | string The loyalty rule name. |
| descr | string The loyalty rule descr. |
| propertyId | number The loyalty rule propertyId. |
| outletId | string The loyalty rule outletId. |
| minSpent | number The loyalty rule minSpent. |
| maxSpent | number The loyalty rule maxSpent. |
| startDate | string The loyalty rule startDate. |
| endDate | string The loyalty rule endDate. |
| dayFlags | number The loyalty rule dayFlags. |
| hourFlags | number The loyalty rule hourFlags. |
| dateFlags | number The loyalty rule dateFlags. |
| monthFlags | number The loyalty rule monthFlags. |
| revenueId | number The loyalty rule revenueId. |
| seqNo | number The loyalty rule seqNo. |
| voucherDescr | string The loyalty rule voucherDescr. |
| expiryText | string The loyalty rule expiryText. |
| validity | number The loyalty rule validity. |
| purseId | number The loyalty rule purseId. |
| spentMultiplier | number The loyalty rule spentMultiplier. |
| purseMultiplier | number The loyalty rule purseMultiplier. |
| flags | string The loyalty rule flags. |
| status | number The loyalty rule status. |
| notifyDay | number The loyalty rule notifyDay. |
| productGroupId | number The loyalty rule productGroupId. |
| sourceId | number The loyalty rule sourceId. |
| redeemFlags | number The loyalty rule redeemFlags. |
| redeemMinSpent | number The loyalty rule redeemMinSpent. |
| redeemRevenueId | number The loyalty rule redeemRevenueId. |
| expiryDate | string The loyalty rule expiryDate. |
| startTime | string The loyalty rule startTime. |
| endTime | string The loyalty rule endTime. |
| productId | number The loyalty rule productId. |
| productDateGoryId | number The loyalty rule productDateGoryId. |
| productBrandId | number The loyalty rule productBrandId. |
| minQty | number The loyalty rule minQty. |
| specialFlags | number The loyalty rule specialFlags. |
| maxQty | number The loyalty rule maxQty. |
| programmeStartDate | string The loyalty rule programmeStartDate. |
| programmeEndDate | string The loyalty rule programmeEndDate. |
| discountRevenueId | number The loyalty rule type. |
| unit | string The loyalty rule unit. |
| unique | number The loyalty rule unique. |
| amount | number The loyalty rule amount. |
| hidden | number The loyalty rule hidden. |
| createDate | string The loyalty rule createDate. |
| createBy | number The loyalty rule createBy. |
| lastModDate | string The loyalty rule lastModDate. |
| lastModBy | number The loyalty rule lastModBy. |
| typeId | string The loyalty rule typeId. |
| mbrlevelids | string The loyalty rule mbrlevelids. |
| incoutletids | string The loyalty rule incoutletids. |
| excoutletids | string The loyalty rule excoutletids. |
| inccategoryids | string The loyalty rule inccategoryids. |
| exccategoryids | string The loyalty rule exccategoryids. |
| incproductids | string The loyalty rule incproductids. |
| excproductids | string The loyalty rule excproductids. |
| birthdaymonth | number The loyalty rule birthdaymonth. |
| firsttrans | number The loyalty rule firsttrans. |
| combine | number The loyalty rule combine. |
| pointsperdollarvalues | number The loyalty rule pointsperdollarvalues. |
| percentage | number The loyalty rule percentage. |
Array of objects | |
Array of objects |
{- "name": "Jaycern Promotion test 2",
- "descr": "Jaycern Promotion test 2",
- "propertyId": "Jaycern Promotion test 2",
- "outletId": null,
- "minSpent": 0,
- "maxSpent": 0,
- "startDate": "2022-12-06T08:50:05.000+00:00",
- "endDate": "2099-12-06T08:50:05.000+00:00",
- "dayFlags": 0,
- "hourFlags": 0,
- "dateFlags": 0,
- "monthFlags": 0,
- "revenueId": 0,
- "seqNo": 1,
- "voucherDescr": "Jaycern Promotion test 2",
- "expiryText": "",
- "validity": 30,
- "purseId": null,
- "spentMultiplier": 0,
- "purseMultiplier": 0,
- "flags": 0,
- "status": 1,
- "notifyDay": 0,
- "productGroupId": 0,
- "sourceId": 0,
- "redeemFlags": 0,
- "redeemMinSpent": 0,
- "redeemRevenueId": 0,
- "expiryDate": null,
- "startTime": 0,
- "endTime": "",
- "productId": 0,
- "productDateGoryId": 0,
- "productBrandId": 0,
- "minQty": 0,
- "specialFlags": 0,
- "maxQty": 0,
- "programmeStartDate": null,
- "programmeEndDate": null,
- "discountRevenueId": 0,
- "unit": "",
- "unique": 0,
- "amount": 0,
- "hidden": 0,
- "createDate": "2022-12-06T08:50:05.000+00:00",
- "createBy": 0,
- "lastModDate": "2022-12-06T08:50:05.000+00:00",
- "lastModBy": 0,
- "typeId": 0,
- "mbrlevelids": "1,2,3",
- "incoutletids": "",
- "excoutletids": "",
- "inccategoryids": "",
- "exccategoryids": "",
- "incproductids": "",
- "excproductids": "",
- "birthdaymonth": 0,
- "firsttrans": 0,
- "combine": 0,
- "pointsperdollarvalues": 0,
- "percentage": 0,
- "filters": [
- {
- "groupNo": 1,
- "filterId": 1,
- "filterOp": "!",
- "filterValue": "2nd entry"
}
], - "rewards": [
- {
- "rewardId": 51
}
]
}{- "code": 200,
- "message": "Updated a Loyalty Rule successfully!",
- "result": { },
- "results": {
- "name": "Jaycern Promotion test 2",
- "descr": "Jaycern Promotion test 2",
- "propertyId": "Jaycern Promotion test 2",
- "outletId": null,
- "minSpent": 0,
- "maxSpent": 0,
- "startDate": "2022-12-06T08:50:05.000+00:00",
- "endDate": "2099-12-06T08:50:05.000+00:00",
- "dayFlags": 0,
- "hourFlags": 0,
- "dateFlags": 0,
- "monthFlags": 0,
- "revenueId": 0,
- "seqNo": 1,
- "voucherDescr": "Jaycern Promotion test 2",
- "expiryText": "",
- "validity": 30,
- "purseId": null,
- "spentMultiplier": 0,
- "purseMultiplier": 0,
- "flags": 0,
- "status": 1,
- "notifyDay": 0,
- "productGroupId": 0,
- "sourceId": 0,
- "redeemFlags": 0,
- "redeemMinSpent": 0,
- "redeemRevenueId": 0,
- "expiryDate": null,
- "startTime": 0,
- "endTime": "",
- "productId": 0,
- "productDateGoryId": 0,
- "productBrandId": 0,
- "minQty": 0,
- "specialFlags": 0,
- "maxQty": 0,
- "programmeStartDate": null,
- "programmeEndDate": null,
- "discountRevenueId": 0,
- "unit": "",
- "unique": 0,
- "amount": 0,
- "hidden": 0,
- "createDate": "2022-12-06T08:50:05.000+00:00",
- "createBy": 0,
- "lastModDate": "2022-12-06T08:50:05.000+00:00",
- "lastModBy": 0,
- "typeId": 0,
- "mbrlevelids": "1,2,3",
- "incoutletids": "",
- "excoutletids": "",
- "inccategoryids": "",
- "exccategoryids": "",
- "incproductids": "",
- "excproductids": "",
- "birthdaymonth": 0,
- "firsttrans": 0,
- "combine": 0,
- "pointsperdollarvalues": 0,
- "percentage": 0,
- "filters": [
- {
- "groupNo": 1,
- "filterId": 1,
- "filterOp": "!",
- "filterValue": "2nd entry"
}
], - "rewards": [
- {
- "rewardId": 51
}
], - "ruleId": 0
}
}Loyalty Issue Award.
| flags required | string Loyalty Rule Flags |
Request body loyalty issue award
| customerId required | string The Customer Id. |
| customerIdType required | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" The customer identifier type.
|
| allowDuplicate | integer Allow issuing of duplicate of certain vouchers
|
| issueDate | string <date> The reward's issue date. |
{- "customerId": 1,
- "customerIdType": "uid",
- "allowDuplicate": 1,
- "issueDate": "2022-01-20 23:59:59"
}{- "code": 201,
- "message": "Issue Loyalty Award successfully!",
- "result": { },
- "results": [
- {
- "awardId": 123,
- "rewardId": 12,
- "typeId": 1,
- "qty": 1,
- "amount": 20.24,
- "point": 4,
- "currency": "SGD",
- "statusId": 1,
- "issueDate": "2022-01-20T15:45:00.000+00:00",
- "expiryDate": "2022-01-20T15:45:00.000+00:00",
- "approveDate": "2022-01-20T15:45:00.000+00:00",
- "approveBy": "BA123",
- "voidDate": "2022-01-20T15:45:00.000+00:00",
- "voidBy": "BA321",
- "reason": "string",
- "collectDate": "2022-01-20T15:45:00.000+00:00",
- "collectOutletId": "SGTK4928",
- "collectEmployeeId": "LoginName",
- "id1": 1,
- "id2": 1,
- "id3": 1,
- "id4": 1,
- "id5": 1,
- "imageUrl": "string",
- "text1": "string",
- "text2": "string",
- "text3": "string",
- "text4": "string",
- "text5": "string",
- "code": "ABC-DEF-GHI",
- "createBy": 55,
- "lastModBy": 55,
- "collectOutletName": "OutletCode",
- "collectEmployeeName": "John Appleseed",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00"
}
]
}Get all loyalty rewards based on optional parameters to filter results. Results will be based on the logged in user's access level.
| modeId | integer Enum: 1 2 Filter results by reward mode. The reward's mode:
|
| typeId | integer Enum: 1 2 Filter results by reward type. The type of reward:
|
| endDate | string <date-time> Example: endDate=2022-01-16T08:00:00.000+08:00 Filter results by endDate (ISO format, default value Tomorrow 00:00:00). |
| status | number Default: 1 Filter results by status. |
| flag | string Example: flag=F01 Filter results by flag. |
| code | string Example: code=RW1 Filter results by code of the reward. |
| name | string Example: name=Reward 1 Filter results by name of the reward. |
| descr | string Example: descr=Reward 1 Description Filter results by description of the reward. |
| pageSize | number Default: 10 Page size of the results. |
| page | number Default: 1 Page number of the results. |
| sort | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "rewardId" Enum: "rewardId" "name" "typeId" "point" "statusId" "amount" "startDate" "endDate" |
{- "code": 200,
- "message": "Search results for Loyalty Rewards.",
- "results": [
- {
- "rewardId": 1,
- "issueDate": "2022-01-20",
- "typeId": 1,
- "modeId": 1,
- "code": "string",
- "category": "string",
- "name": "string",
- "description": "string",
- "imageUrl": "string",
- "qty": 1,
- "weightage": 5,
- "amount": 20.24,
- "currency": "SGD",
- "unit": "unit",
- "points": 100,
- "productId": 123,
- "statusId": 1,
- "percentage": 15,
- "limitQty": 1,
- "startDate": "2022-01-20 23:59:59",
- "endDate": "2022-01-20 23:59:59",
- "expiryDate": "2022-12-31 23:59:59",
- "validity": 90,
- "rewardType": "Cash",
- "terms": "terms",
- "text1": "text1",
- "text2": "text2",
- "text3": "text3",
- "text4": "text4",
- "text5": "text5",
- "flags": "F01"
}
], - "limit": 10,
- "offset": 0,
- "total": 1
}Create a new loyalty reward.
Request body to create a new loyalty reward
| typeId | integer Default: 1 Enum: 1 2 The type of reward:
|
| modeId required | integer Enum: 1 2 The reward's mode:
|
| code | string <= 50 characters The code of the reward. |
| category | string <= 250 characters The category of the reward. |
| name required | string <= 50 characters The name of the reward. |
| description | string The description of the reward. |
| imageUrl | string The image of the reward. |
| qty | integer The quantity of reward. |
| weightage | integer The weightage of winning the reward. |
| amount required | number <decimal> The amount of dollar given reward. |
| currency required | string 3-alpha ISO 4217 |
| unit | string The unit of reward. |
| points | integer The point required to redeem the reward. |
| productId | integer The reward's productid. |
| statusId required | integer Default: 1 The reward's status (0 Inactive, 1 Active). |
| percentage | integer The discount percentage based voucher. |
| limitQty | integer How many time member can 'buy' this reward. |
| startDate | string <date> The reward's start date. |
| endDate | string <date> The reward's end date. |
| expiryDate | string <date> The reward's fixed expiry date. |
| validity | integer The reward's validity (in days). |
| rewardType | string Type of reward. |
| terms | string Terms of reward. |
| text1 | string Additional custom text to store where to use. |
| text2 | string Additional custom text to store usage. |
| text3 | string Additional custom text to store. |
| text4 | string Additional custom text to store. |
| text5 | string Additional custom text to store. |
| flags | string Additional flags for reward customization. |
{- "typeId": 1,
- "modeId": 1,
- "code": "string",
- "category": "string",
- "name": "string",
- "description": "string",
- "imageUrl": "string",
- "qty": 1,
- "weightage": 5,
- "amount": 20.24,
- "currency": "SGD",
- "unit": "unit",
- "points": 100,
- "productId": 123,
- "statusId": 1,
- "percentage": 15,
- "limitQty": 1,
- "startDate": "2022-01-20 23:59:59",
- "endDate": "2022-01-20 23:59:59",
- "expiryDate": "2022-12-31 23:59:59",
- "validity": 90,
- "rewardType": "Cash",
- "terms": "terms",
- "text1": "text1",
- "text2": "text2",
- "text3": "text3",
- "text4": "text4",
- "text5": "text5",
- "flags": "F01"
}{- "code": 201,
- "message": "Created a new Loyalty Reward successfully!",
- "result": { },
- "results": {
- "rewardId": 1,
- "issueDate": "2022-01-20",
- "typeId": 1,
- "modeId": 1,
- "code": "string",
- "category": "string",
- "name": "string",
- "description": "string",
- "imageUrl": "string",
- "qty": 1,
- "weightage": 5,
- "amount": 20.24,
- "currency": "SGD",
- "unit": "unit",
- "points": 100,
- "productId": 123,
- "statusId": 1,
- "percentage": 15,
- "limitQty": 1,
- "startDate": "2022-01-20 23:59:59",
- "endDate": "2022-01-20 23:59:59",
- "expiryDate": "2022-12-31 23:59:59",
- "validity": 90,
- "rewardType": "Cash",
- "terms": "terms",
- "text1": "text1",
- "text2": "text2",
- "text3": "text3",
- "text4": "text4",
- "text5": "text5",
- "flags": "F01"
}
}Get a loyalty reward by its identifier.
| rewardId required | string Loyalty Reward ID |
{- "code": 200,
- "message": "Found a loyalty reward successfully!",
- "result": { },
- "results": {
- "rewardId": 1,
- "issueDate": "2022-01-20",
- "typeId": 1,
- "modeId": 1,
- "code": "string",
- "category": "string",
- "name": "string",
- "description": "string",
- "imageUrl": "string",
- "qty": 1,
- "weightage": 5,
- "amount": 20.24,
- "currency": "SGD",
- "unit": "unit",
- "points": 100,
- "productId": 123,
- "statusId": 1,
- "percentage": 15,
- "limitQty": 1,
- "startDate": "2022-01-20 23:59:59",
- "endDate": "2022-01-20 23:59:59",
- "expiryDate": "2022-12-31 23:59:59",
- "validity": 90,
- "rewardType": "Cash",
- "terms": "terms",
- "text1": "text1",
- "text2": "text2",
- "text3": "text3",
- "text4": "text4",
- "text5": "text5",
- "flags": "F01"
}
}Update a loyalty reward by its identifier.
| rewardId required | string Loyalty Reward ID |
Request body to update loyalty reward by id.
| typeId | integer Default: 1 Enum: 1 2 The type of reward:
|
| modeId | integer Enum: 1 2 The reward's mode:
|
| code | string <= 50 characters The code of the reward. |
| category | string <= 250 characters The category of the reward. |
| name | string <= 50 characters The name of the reward. |
| description | string The description of the reward. |
| imageUrl | string The image of the reward. |
| qty | integer The quantity of reward. |
| weightage | integer The weightage of winning the reward. |
| amount | number <decimal> The amount of dollar given reward. |
| currency | string 3-alpha ISO 4217 |
| unit | string The unit of reward. |
| points | integer The point required to redeem the reward. |
| productId | integer The reward's productid. |
| statusId | integer Default: 1 The reward's status (0 Inactive, 1 Active). |
| percentage | integer The discount percentage based voucher. |
| limitQty | integer How many time member can 'buy' this reward. |
| startDate | string <date> The reward's start date. |
| endDate | string <date> The reward's end date. |
| expiryDate | string <date> The reward's fixed expiry date. |
| validity | integer The reward's validity (in days). |
| rewardType | string Type of reward. |
| terms | string Terms of reward. |
| text1 | string Additional custom text to store where to use. |
| text2 | string Additional custom text to store usage. |
| text3 | string Additional custom text to store. |
| text4 | string Additional custom text to store. |
| text5 | string Additional custom text to store. |
| flags | string Additional flags for reward customization. |
{- "typeId": 1,
- "modeId": 1,
- "code": "string",
- "category": "string",
- "name": "string",
- "description": "string",
- "imageUrl": "string",
- "qty": 1,
- "weightage": 5,
- "amount": 20.24,
- "currency": "SGD",
- "unit": "unit",
- "points": 100,
- "productId": 123,
- "statusId": 1,
- "percentage": 15,
- "limitQty": 1,
- "startDate": "2022-01-20 23:59:59",
- "endDate": "2022-01-20 23:59:59",
- "expiryDate": "2022-12-31 23:59:59",
- "validity": 90,
- "rewardType": "Cash",
- "terms": "terms",
- "text1": "text1",
- "text2": "text2",
- "text3": "text3",
- "text4": "text4",
- "text5": "text5",
- "flags": "F01"
}{- "code": 200,
- "message": "Updated a Loyalty Reward successfully!",
- "result": { },
- "results": {
- "rewardId": 1,
- "issueDate": "2022-01-20",
- "typeId": 1,
- "modeId": 1,
- "code": "string",
- "category": "string",
- "name": "string",
- "description": "string",
- "imageUrl": "string",
- "qty": 1,
- "weightage": 5,
- "amount": 20.24,
- "currency": "SGD",
- "unit": "unit",
- "points": 100,
- "productId": 123,
- "statusId": 1,
- "percentage": 15,
- "limitQty": 1,
- "startDate": "2022-01-20 23:59:59",
- "endDate": "2022-01-20 23:59:59",
- "expiryDate": "2022-12-31 23:59:59",
- "validity": 90,
- "rewardType": "Cash",
- "terms": "terms",
- "text1": "text1",
- "text2": "text2",
- "text3": "text3",
- "text4": "text4",
- "text5": "text5",
- "flags": "F01"
}
}Get all loyalty reward codes based on optional parameters to filter results. Results will be based on the logged in user's access level.
| pageSize | number Default: 10 Page size of the results. |
| page | number Default: 1 Page number of the results. |
| sort | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for Loyalty Reward Codes.",
- "results": [
- {
- "id": 1,
- "code": "string",
- "statusId": 1,
- "ruleId": 0
}
], - "pageSize": 10,
- "page": 1,
- "total": 100
}Create a new loyalty reward code.
Request body to create a new loyalty reward code
| code required | string <= 100 characters The reward code. |
| statusId required | number Default: 1 The reward code status (1 Available, 2 Claimed). |
{- "code": "string",
- "statusId": 1
}{- "code": 201,
- "message": "Created a new Loyalty Reward Code successfully!",
- "result": { },
- "results": {
- "id": 1,
- "code": "string",
- "statusId": 1,
- "ruleId": 0
}
}Get a loyalty reward code by its identifier.
| id required | string Loyalty Reward Code ID |
{- "code": 200,
- "message": "Found Loyalty Reward Code!",
- "result": { },
- "results": {
- "id": 1,
- "code": "string",
- "statusId": 1,
- "ruleId": 0
}
}Update a loyalty reward code by its identifier.
| id required | string Loyalty Reward Code ID |
Request body to update loyalty reward by id.
| code | string <= 100 characters The reward code. |
| statusId | number Default: 1 The reward code status (1 Available, 2 Claimed). |
{- "code": "string",
- "statusId": 1
}{- "code": 200,
- "message": "Updated a Loyalty Reward Code successfully!",
- "result": { },
- "results": {
- "id": 1,
- "code": "string",
- "statusId": 1,
- "ruleId": 0
}
}Redeem loyalty redward based on customerId
| rewardId required | string Loyalty Reward ID |
Request body to redeem loyalty reward
| customerId required | string The Customer Id. |
| customerIdType required | string (customerIdType) Default: "uid" Enum: "uid" "cuid" "ruid" "guid" The customer identifier type.
|
| redeemOutletId | integer Id for the outlet where the redemption is done. |
| redeemEmployeeId | integer Id for employee who assisted the customer on the redemption. |
{- "customerId": 1,
- "customerIdType": "uid",
- "redeemOutletId": 1,
- "redeemEmployeeId": 1
}{- "code": 201,
- "message": "Redeem Reward successfully!",
- "result": { }
}Get membership detail.
| membershipId required | string (membershipId) Example: SG-01-FOCPR-49321 The customer membership identifier. |
{- "code": 200,
- "message": "Found membership successfully!",
- "result": { },
- "results": {
- "membershipId": "SG-01-FOCPR-49321",
- "customerId": 1,
- "customerIdType": "uid",
- "mbrId": 16699,
- "programId": "FOCPR",
- "programName": "Friends of CPR",
- "creationOutletCode": "string",
- "memberNumber": "string",
- "statusId": 1,
- "joinDate": "2022-01-20T15:45:00Z",
- "cancelDate": "2022-01-20T15:45:00Z",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}
}Get Loyalty memberships.
| lucid required | string The customer identifier. |
| programId required | string Program id. |
| pageSize | integer Default: 10 Page size of results. |
| page | string Default: 1 Page number of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for customer memberships.",
- "results": [
- {
- "membershipId": "SG-01-FOCPR-49321",
- "customerId": 1,
- "customerIdType": "uid",
- "mbrId": 16699,
- "programId": "FOCPR",
- "programName": "Friends of CPR",
- "creationOutletCode": "string",
- "memberNumber": "string",
- "statusId": 1,
- "joinDate": "2022-01-20T15:45:00Z",
- "cancelDate": "2022-01-20T15:45:00Z",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 67,
- "lastModBy": 67
}
], - "pageSize": 10,
- "page": 1,
- "total": 100
}Get a import by its template code.
| templateCode required | string The import template identifier. |
| createFrom | string <date-time> Example: createFrom=2023-01-01T08:00:00.000+08:00 Filter results by |
| createTo | string <date-time> Example: createTo=2023-01-20T15:45:00.000+08:00 Filter results by |
| limit | number Default: 10 Limit number of results. |
| offset | number Default: 0 Offset index of results. |
| sort | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "startdate" Value: "startdate" |
{- "code": 200,
- "message": "Search results for Imports.",
- "result": { },
- "results": [
- {
- "id": 1,
- "file": {
- "source": {
- "name": "Sample_Import_Customer.csv",
- "path": "uploads/DEV/AU/LAN"
}, - "target": {
- "name": "Sample_Import_Customer_Proceesed.csv",
- "path": "uploads/DEV/AU/LAN/Archive"
}
}, - "createdDate": "2023-04-13T16:50:05Z",
- "status": "Success/Failed",
- "result": {
- "success": 1,
- "failed": 2,
- "total": 3
}
}
]
}Get resource details by template code.
| templateId required | string The filter's template identifier. |
| fileType | string Default: "json" Enum: "csv" "json" "facebook" The export's file type. |
| createtimefrom | string <date-time> Example: createtimefrom=2022-01-19T15:45:00.000+00:00 Filter results by |
| createtimeto | string <date-time> Example: createtimeto=2022-01-20T15:45:00.000+00:00 Filter results by |
| deliveryMethod | string Default: "api" Enum: "api" "file" "ftp" The delivery method. |
| fileTransferCode | string The file transfer code. Used with FTP delivery method. |
| fileTransferPath | string The file transfer path. Used with FTP delivery method. |
{- "code": 200,
- "message": "Exported successfully.",
- "results": [
- {
- "custid": 3958373174,
- "type": 1,
- "subType": 1,
- "orgId1": 11,
- "orgId2": 21,
- "orgId3": 31,
- "email": "john@acme.com",
- "mobileNo": 98765432,
- "mobileCc": 65,
- "firstName": "John",
- "lastName": "Appleseed",
- "fullName": "John Appleseed",
- "birthdate": "2022-01-20",
- "gender": "F",
- "username": "john_appleseed",
- "nationalityid": 1,
- "idNo1": "S9876543A",
- "idNo2": "E4829104",
- "idNo3": 235903,
- "prefContactMethod": 1,
- "prefContactNo": 1,
- "prefAddress": 1,
- "prefLanguage": 1,
- "orgCreateDate": "2022-01-20T15:45:00.000+00:00",
- "orgCreateBy": "JohnSmith",
- "orgLastModDate": "2022-01-20T15:45:00.000+00:00",
- "orgLastModBy": "JaneSmith",
- "createBy": 1,
- "lastModBy": 1
}
]
}Get list of countries.
| page[limit] | integer Default: 10 Limits the number of result items per page. |
| page[offset] | integer Default: 0 Offset index of results, must be multiples of page[limit] parameter. |
| filter | string Repeatable parameter for filtering results. Operators can be specified:
Example:
|
| sort | string Comma-separated list of fields for sorting the results. Prepend with - symbol for descending order.
|
| fields | string Comma-separated list of fields that you want to be returned. By default, all fields are returned.
|
| include | string Comma-separated list of sub resources that you want to be returned.
|
{- "links": {
}, - "meta": {
- "totalResourceCount": 1
}, - "data": [
- {
- "id": "1",
- "type": "countries",
- "name": "Singapore",
- "altName1": "string",
- "altName2": "string",
- "code2": "SG",
- "code3": "SGP",
- "no": "702",
- "prefix": "65",
- "seqNo": 999,
- "statusId": 1,
- "continent": "AS",
- "region": "Asia",
- "subRegion": "East, South, Southeast Asia",
- "nationality": "Singaporean",
- "language": "cmn,en-SG,ms-SG,ta-SG,zh-SG",
- "tld": ".sg",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
]
}Get an existing country
| countryId required | string Country ID |
{- "data": {
- "id": "1",
- "type": "countries",
- "name": "Singapore",
- "altName1": "string",
- "altName2": "string",
- "code2": "SG",
- "code3": "SGP",
- "no": "702",
- "prefix": "65",
- "seqNo": 999,
- "statusId": 1,
- "continent": "AS",
- "region": "Asia",
- "subRegion": "East, South, Southeast Asia",
- "nationality": "Singaporean",
- "language": "cmn,en-SG,ms-SG,ta-SG,zh-SG",
- "tld": ".sg",
- "createdDate": "2022-01-20T15:45:00.000+00:00",
- "createdBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
}Get list of cities
| page[limit] | integer Default: 10 Limits the number of result items per page. |
| page[offset] | integer Default: 0 Offset index of results, must be multiples of page[limit] parameter. |
| filter | string Repeatable parameter for filtering results. Operators can be specified:
Example:
|
| sort | string Comma-separated list of fields for sorting the results. Prepend with - symbol for descending order.
|
| fields | string Comma-separated list of fields that you want to be returned. By default, all fields are returned.
|
| include | string Comma-separated list of sub resources that you want to be returned.
|
{- "links": {
}, - "meta": {
- "totalResourceCount": 1
}, - "data": [
- {
- "id": "1",
- "type": "cities",
- "code": "MNL",
- "name": "Manila",
- "altName1": "string",
- "altName2": "string",
- "statusId": 1,
- "country": {
- "data": {
- "id": "1",
- "type": "countries"
}
}, - "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
]
}Get an existing city
| cityId required | string City ID |
{- "data": {
- "id": "1",
- "type": "cities",
- "code": "MNL",
- "name": "Manila",
- "altName1": "string",
- "altName2": "string",
- "statusId": 1,
- "country": {
- "data": {
- "id": "1",
- "type": "countries"
}
}, - "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
}Get list of outlets
| page[limit] | integer Default: 10 Limits the number of result items per page. |
| page[offset] | integer Default: 0 Offset index of results, must be multiples of page[limit] parameter. |
| filter | string Repeatable parameter for filtering results. Operators can be specified:
Example:
|
| sort | string Comma-separated list of fields for sorting the results. Prepend with - symbol for descending order.
|
| fields | string Comma-separated list of fields that you want to be returned. By default, all fields are returned.
|
| include | string Comma-separated list of sub resources that you want to be returned.
|
{- "links": {
}, - "meta": {
- "totalResourceCount": 1
}, - "data": [
- {
- "id": "1",
- "type": "outlets",
- "outletType": "Offline",
- "code": "ABC123",
- "name": "Outlet",
- "description": "string",
- "addressId": 1,
- "statusId": 1,
- "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
]
}Get an existing outlet
| outletId required | string Outlet ID |
{- "data": {
- "id": "1",
- "type": "outlets",
- "outletType": "Offline",
- "code": "ABC123",
- "name": "Outlet",
- "description": "string",
- "addressId": 1,
- "statusId": 1,
- "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
}Get list of properties
| page[limit] | integer Default: 10 Limits the number of result items per page. |
| page[offset] | integer Default: 0 Offset index of results, must be multiples of page[limit] parameter. |
| filter | string Repeatable parameter for filtering results. Operators can be specified:
Example:
|
| sort | string Comma-separated list of fields for sorting the results. Prepend with - symbol for descending order.
|
| fields | string Comma-separated list of fields that you want to be returned. By default, all fields are returned.
|
| include | string Comma-separated list of sub resources that you want to be returned.
|
{- "data": {
- "id": "1",
- "type": "properties",
- "code": "ABC123",
- "name": "Property",
- "description": "string",
- "addressId": 1,
- "statusId": 1,
- "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
}Get an existing property
| propertyId required | string Property ID |
{- "data": {
- "id": "1",
- "type": "properties",
- "code": "ABC123",
- "name": "Property",
- "description": "string",
- "addressId": 1,
- "statusId": 1,
- "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
}Get list of provinces
| page[limit] | integer Default: 10 Limits the number of result items per page. |
| page[offset] | integer Default: 0 Offset index of results, must be multiples of page[limit] parameter. |
| filter | string Repeatable parameter for filtering results. Operators can be specified:
Example:
|
| sort | string Comma-separated list of fields for sorting the results. Prepend with - symbol for descending order.
|
| fields | string Comma-separated list of fields that you want to be returned. By default, all fields are returned.
|
| include | string Comma-separated list of sub resources that you want to be returned.
|
{- "links": {
}, - "meta": {
- "totalResourceCount": 1
}, - "data": [
- {
- "id": "1",
- "type": "cities",
- "code": "MNL",
- "name": "Manila",
- "altName1": "string",
- "altName2": "string",
- "statusId": 1,
- "country": {
- "data": {
- "id": "1",
- "type": "countries"
}
}, - "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
]
}Get an existing province
| provinceId required | string Province ID |
{- "data": {
- "id": "1",
- "type": "cities",
- "code": "MNL",
- "name": "Manila",
- "altName1": "string",
- "altName2": "string",
- "statusId": 1,
- "country": {
- "data": {
- "id": "1",
- "type": "countries"
}
}, - "createDate": "2022-01-20T15:45:00.000+00:00",
- "createBy": 1,
- "lastModDate": "2022-01-20T15:45:00.000+00:00",
- "lastModBy": 1
}
}Payloads as sent to the endpoints as POST.
See payload examples:
Get existing webhooks
| limit | integer Default: 10 Limit number of results. |
| offset | string Default: 0 Offset index of results. |
| sort | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" |
{- "code": 200,
- "message": "Search results for Webhooks.",
- "limit": 10,
- "offset": 0,
- "total": 1
}Create a webhook for CRMNX to notify.
Request body
| url required | string The endpoint to receive webhook events. Request payloads to the endpoint will be via POST. |
| events required | Array of strings (eventType) Items Enum: "campaign.created" "campaign.updated" "campaign.deleted" "customer.created" "customer.updated" "customer.deleted" "customer.award.created" "customer.membership.created" "customer.membership.updated" "transaction.created" "transaction.updated" "transaction.deleted" "product.created" "product.updated" "product.deleted" "productTier.created" "productTier.updated" "productTier.deleted" "loyalty.reward.created" "loyalty.reward.updated" "loyalty.reward.deleted" "import.started" "import.completed" "export.started" "export.completed" If event is not defined in array, it will be removed from subscription. |
{- "events": [
- "campaign.created"
]
}{- "code": 201,
- "message": "Created Webhook",
}Update a webhook.
| webhookId required | string Webhook ID |
Request body
| url required | string The endpoint to receive webhook events. Request payloads to the endpoint will be via POST. |
| events required | Array of strings (eventType) Items Enum: "campaign.created" "campaign.updated" "campaign.deleted" "customer.created" "customer.updated" "customer.deleted" "customer.award.created" "customer.membership.created" "customer.membership.updated" "transaction.created" "transaction.updated" "transaction.deleted" "product.created" "product.updated" "product.deleted" "productTier.created" "productTier.updated" "productTier.deleted" "loyalty.reward.created" "loyalty.reward.updated" "loyalty.reward.deleted" "import.started" "import.completed" "export.started" "export.completed" If event is not defined in array, it will be removed from subscription. |
{- "events": [
- "campaign.created"
]
}{- "code": 200,
- "message": "OK"
}