Booster.Microservices

<back to all web services

GetCustomerSuggestion

Requires Authentication
The following routes are available for this service:
POST/warranty/v1/GetCustomerSuggestion
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Booster.Microservices.ServiceModel.Sale
Imports Booster.Microservices.ServiceModel.Common

Namespace Global

    Namespace Booster.Microservices.ServiceModel.Common

        Public Partial Class BaseRequest(Of TResponse)
            Implements IRequest
            Public Overridable Property sid As String
            Public Overridable Property app As String
            Public Overridable Property _os As String
            Public Overridable Property _appVersion As String
            Public Overridable Property _searchMethod As String
        End Class

        Public Partial Class BaseResponse
            Implements IRespose
            Public Overridable Property _xmlns As String
            Public Overridable Property _type As String
            Public Overridable Property _source As String
            Public Overridable Property _tstamp As String
            Public Overridable Property _user As String
            Public Overridable Property _env As String
            Public Overridable Property _uri As String
            Public Overridable Property _query As String
        End Class

        Public Partial Class Lookup(Of T)
            Public Overridable Property Id As T
            Public Overridable Property Description As String
        End Class
    End Namespace

    Namespace Booster.Microservices.ServiceModel.Sale

        Public Partial Class CustomerAddress
            Public Overridable Property addressId As Guid
            Public Overridable Property description As String
            Public Overridable Property addressLine1 As String
            Public Overridable Property addressLine2 As String
            Public Overridable Property addressLine3 As String
            Public Overridable Property addressLine4 As String
            Public Overridable Property addressLine5 As String
            Public Overridable Property houseNumber As String
            Public Overridable Property city As String
            Public Overridable Property region As String
            Public Overridable Property county As String
            Public Overridable Property stateOrProvinceId As String
            Public Overridable Property countryId As String
            Public Overridable Property countryDs As String
            Public Overridable Property zipCode As String
            Public Overridable Property addressTypeId As String
            Public Overridable Property isMailingAddress As Boolean
            Public Overridable Property isMainAddress As Boolean
        End Class

        Public Partial Class CustomerEmail
            Public Overridable Property emailId As Guid
            Public Overridable Property description As String
            Public Overridable Property email As String
            Public Overridable Property isMainEmail As Boolean
            Public Overridable Property type As Lookup(Of Char)
        End Class

        Public Partial Class CustomerPhone
            Public Overridable Property phoneId As Guid
            Public Overridable Property description As String
            Public Overridable Property phone As String
            Public Overridable Property isMainPhone As Boolean
            Public Overridable Property prefixCountryId As String
            Public Overridable Property telephonePrefix As String
            Public Overridable Property type As Lookup(Of Integer)
        End Class

        Public Partial Class GetCustomerSuggestion
            Inherits BaseRequest(Of GetCustomerSuggestionResponse)
            Public Overridable Property emailAddress As String
            Public Overridable Property posId As Integer
            Public Overridable Property brandTrigram As String
            Public Overridable Property phoneNumber As String
            Public Overridable Property prefixCountryId As String
            Public Overridable Property countryId As String
        End Class

        Public Partial Class GetCustomerSuggestionResponse
            Inherits BaseResponse
            Public Sub New()
                addresses = New List(Of CustomerAddress)
                emails = New List(Of CustomerEmail)
                phones = New List(Of CustomerPhone)
            End Sub

            Public Overridable Property customerType As String
            Public Overridable Property customerRef As String
            Public Overridable Property title As Nullable(Of Integer)
            Public Overridable Property titleDs As String
            Public Overridable Property firstName As String
            Public Overridable Property lastName As String
            Public Overridable Property firstNameNotLatin As String
            Public Overridable Property lastNameNotLatin As String
            Public Overridable Property birthday As String
            Public Overridable Property birthDayEventId As Nullable(Of Guid)
            Public Overridable Property weddingDate As String
            Public Overridable Property canBeContacted As Nullable(Of Boolean)
            Public Overridable Property seller As Nullable(Of Guid)
            Public Overridable Property language As String
            Public Overridable Property languageDs As String
            Public Overridable Property nameSuffix As String
            Public Overridable Property gender As String
            Public Overridable Property companyName As String
            Public Overridable Property middleName As String
            Public Overridable Property customerId As Nullable(Of Guid)
            Public Overridable Property personId As Nullable(Of Guid)
            Public Overridable Property boosterCustomerId As Nullable(Of Integer)
            Public Overridable Property posOwnerId As Nullable(Of Integer)
            Public Overridable Property brandOwnerId As String
            Public Overridable Property businessUnitId As Nullable(Of Integer)
            Public Overridable Property sapGenderId As String
            Public Overridable Property allowStoreDataAbroad As Nullable(Of Boolean)
            Public Overridable Property privacyPolicyAcceptanceStorage As Nullable(Of Boolean)
            Public Overridable Property tvAllowStoreDataAbroad As Nullable(Of Boolean)
            Public Overridable Property tvPrivacyPolicyAcceptanceStorage As Nullable(Of Boolean)
            Public Overridable Property contactByMail As Nullable(Of Boolean)
            Public Overridable Property contactByEmail As Nullable(Of Boolean)
            Public Overridable Property contactByPhone As Nullable(Of Boolean)
            Public Overridable Property contactBySMS As Nullable(Of Boolean)
            Public Overridable Property contactBySocialMedia As Nullable(Of Boolean)
            Public Overridable Property addresses As List(Of CustomerAddress)
            Public Overridable Property emails As List(Of CustomerEmail)
            Public Overridable Property phones As List(Of CustomerPhone)
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET GetCustomerSuggestion DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /warranty/v1/GetCustomerSuggestion HTTP/1.1 
Host: qp-microservices-booster.richemont.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"emailAddress":"String","posId":0,"brandTrigram":"String","phoneNumber":"String","prefixCountryId":"String","countryId":"String","sid":"String","app":"String","_os":"String","_appVersion":"String","_searchMethod":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"customerType":"String","customerRef":"String","title":0,"titleDs":"String","firstName":"String","lastName":"String","firstNameNotLatin":"String","lastNameNotLatin":"String","birthday":"String","birthDayEventId":"00000000000000000000000000000000","weddingDate":"String","canBeContacted":false,"seller":"00000000000000000000000000000000","language":"String","languageDs":"String","nameSuffix":"String","gender":"String","companyName":"String","middleName":"String","customerId":"00000000000000000000000000000000","personId":"00000000000000000000000000000000","boosterCustomerId":0,"posOwnerId":0,"brandOwnerId":"String","businessUnitId":0,"sapGenderId":"String","allowStoreDataAbroad":false,"privacyPolicyAcceptanceStorage":false,"tvAllowStoreDataAbroad":false,"tvPrivacyPolicyAcceptanceStorage":false,"contactByMail":false,"contactByEmail":false,"contactByPhone":false,"contactBySMS":false,"contactBySocialMedia":false,"addresses":[{"addressId":"00000000000000000000000000000000","description":"String","addressLine1":"String","addressLine2":"String","addressLine3":"String","addressLine4":"String","addressLine5":"String","houseNumber":"String","city":"String","region":"String","county":"String","stateOrProvinceId":"String","countryId":"String","countryDs":"String","zipCode":"String","addressTypeId":"String","isMailingAddress":false,"isMainAddress":false}],"emails":[{"emailId":"00000000000000000000000000000000","description":"String","email":"String","isMainEmail":false,"type":{"Id":"\u0000","Description":"String"}}],"phones":[{"phoneId":"00000000000000000000000000000000","description":"String","phone":"String","isMainPhone":false,"prefixCountryId":"String","telephonePrefix":"String","type":{"Id":0,"Description":"String"}}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}