Download OpenAPI specification:Download
HiiRelevate Customer Service API docs
OpenAPI Document (json)
customerId required | string Customer unique id in uuid format |
{- "id": "string",
- "email": [
- {
- "primary": true,
- "type": "work",
- "value": "example@gmail.com"
}
], - "phoneNumber": [
- {
- "primary": true,
- "type": "work",
- "value": "+461111111111"
}
], - "socialSecurityNumber": "string",
- "identifiers": [
- "string"
], - "displayName": "string",
- "birthdate": "2019-08-24",
- "addresses": [
- {
- "primary": true,
- "type": "string",
- "streetAddress": "string",
- "city": "string",
- "postalCode": "string",
- "country": "string",
- "region": "string"
}
], - "gender": "male",
- "currency": "string",
- "businessUnitId": "string",
- "consents": [
- {
- "version": 0,
- "url": "string",
- "availableFrom": "2019-08-24",
- "status": "active",
- "createdBy": "string",
- "createdDate": "2019-08-24",
- "modifiedBy": "string",
- "modifiedDate": "2019-08-24"
}
], - "status": "string",
- "createdBy": "string",
- "createdDate": "string",
- "channelChoices": [
- {
- "optIn": true,
- "channelId": "string"
}
]
}
customerId required | string Customer id |
Update customer DTO
Array of objects (AddressDto) <= 5 items Customer addresses | |
birthdate | string <date> Birthday |
businessUnitId | string Business unit id where the customer is registered |
Array of objects (CreateChannelChoiceDto) Channels accepted by this customer | |
currency | string Currency to use for this customer |
displayName | string Customer name |
Array of objects (EmailDto) <= 5 items Customer email. Used for identification. | |
gender | string (Gender) Enum: "male" "female" "other" |
identifiers | Array of strings External identifiers used to identify this customer |
Array of objects (PhoneNumberDto) <= 5 items Customer phone number. Used for identification | |
socialSecurityNumber | string Customer social security number. Used for identification |
{ }
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
Find customer DTO
email required | string <email> Email Address of customer |
phoneNumber required | string Phone Number of customer |
socialSecurityNumber required | string Social security number of customer |
{- "email": "user@example.com",
- "phoneNumber": "string",
- "socialSecurityNumber": "string"
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
Create customer DTO
Array of objects (AddressDto) <= 5 items Customer addresses | |
birthdate | string <date> Birthday |
businessUnitId | string Business unit id where the customer is registered |
Array of objects (CreateChannelChoiceDto) Channels accepted by this customer | |
Array of objects (ConsentDto) Communication channels accepted by this customer | |
currency | string Currency to use for this customer |
displayName required | string Customer name |
required | Array of objects (EmailDto) <= 5 items Customer email. Used for identification. |
gender | string (Gender) Enum: "male" "female" "other" |
identifiers | Array of strings External identifiers used to identify this customer |
Array of objects (PhoneNumberDto) <= 5 items Customer phone number. Used for identification | |
socialSecurityNumber | string Customer social security number. Used for identification |
{- "email": [
- {
- "value": "example@gmail.com"
}
], - "displayName": "string"
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
Create consent DTO
availableFrom required | string <date> A date from which consent is accessible |
createdDate | string <date> Created Date |
description required | string Consent description |
isRequired required | boolean Consent Require |
modifiedDate | string <date> Modified Date |
name required | string Consent name |
url required | string Consent URL |
{- "name": "string",
- "description": "string",
- "isRequired": true,
- "url": "string",
- "availableFrom": "2019-08-24"
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
consentBaseId required | string Consent Base Id is used to create the consent version |
Consent values to create the consent
availableFrom required | string <date> A date from which consent is accessible |
createdDate | string <date> Created Date |
description required | string Consent description |
isRequired required | boolean Consent Require |
modifiedDate | string <date> Modified Date |
name required | string Consent name |
url required | string Consent URL |
{- "name": "string",
- "description": "string",
- "isRequired": true,
- "url": "string",
- "availableFrom": "2019-08-24"
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
customerId required | string Customer unique id in uuid format |
[- "string"
]
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
customerId required | string Customer id |
Create customer DTO
channelId required | string Channel Id |
optIn required | boolean Opt in |
[- {
- "optIn": true,
- "channelId": "string"
}
]
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
Create Segment DTO
allowMultiple required | boolean Allow customers to belong to multiple segment values of the same Segment at once |
daysValid required | number Validity field |
name required | string A name of the segment |
{- "name": "string",
- "daysValid": 0,
- "allowMultiple": true
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
segmentName required | string Name of Segment |
Create Segment Value DTO
index required | number A ranking order of the segment values in that Segment |
name required | string Name of the segment value |
{- "name": "string",
- "index": 0
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
customerId required | string Customer id |
expires | string <date> A date when customer segment expires |
segment required | string A name that describes the segment |
segmentValue required | string A name that describes the segment value |
{- "segment": "string",
- "segmentValue": "string"
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
customerId required | string Customer id |
required | object The new segment values that has to be updated for customer |
required | object The old customer segment |
{- "oldSegment": {
- "segment": "string",
- "segmentValue": "string"
}, - "newSegment": {
- "segment": "string",
- "segmentValue": "string"
}
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
customerId required | string Customer id |
deviceOs required | string An OS of a device that a customer is using |
deviceUid required | string A uid of a device that a customer is using |
token required | string A token |
{- "deviceOs": "string",
- "deviceUid": "string",
- "token": "string"
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}
Pubsub channel DTO
required | object PubSub Message. |
subscription required | string Channel subscription |
{- "subscription": "string",
- "message": {
- "data": "string",
- "messageId": "string",
- "attributes": {
- "tenantId": "string",
- "userId": "string",
- "correlationId": "string"
}
}
}
{- "statusCode": 400,
- "message": [
- "string"
], - "error": "Bad Request"
}