Richemont.Booster2.PublicApi

<back to all web services

GetFilterValues

Requires Authentication
The following routes are available for this service:
GET/customer/{brand}/filter-valuesGet filters for customer search
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.CRM.ServiceModel

Namespace Global

    Namespace Richemont.Booster2.PublicApi.CRM.ServiceModel

        Public Partial Class FilterValues
            '''<Summary>
            '''Id
            '''</Summary>
            <ApiMember(Description:="Id", IsRequired:=true)>
            Public Overridable Property id As String

            '''<Summary>
            '''Description
            '''</Summary>
            <ApiMember(Description:="Description", IsRequired:=true)>
            Public Overridable Property name As String
        End Class

        Public Partial Class GetFilterValues
            Public Sub New()
                fields = New List(Of String)
                posCodes = New List(Of String)
            End Sub

            '''<Summary>
            '''Brand
            '''</Summary>
            <ApiMember(Description:="Brand", IsRequired:=true)>
            Public Overridable Property brand As String

            '''<Summary>
            '''Fields
            '''</Summary>
            <ApiMember(Description:="Fields", IsRequired:=true)>
            Public Overridable Property fields As List(Of String)

            '''<Summary>
            '''List of POS Legacy
            '''</Summary>
            <ApiMember(Description:="List of POS Legacy", IsRequired:=true)>
            Public Overridable Property posCodes As List(Of String)
        End Class

        Public Partial Class GetFilterValuesResponse
            Public Sub New()
                salesReps = New List(Of FilterValues)
            End Sub

            Public Overridable Property salesReps As List(Of FilterValues)
        End Class
    End Namespace
End Namespace

VB.NET GetFilterValues DTOs

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

HTTP + CSV

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

GET /customer/{brand}/filter-values HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"salesReps":[{"id":"String","name":"String"}]}