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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.CRM.ServiceModel;

namespace Richemont.Booster2.PublicApi.CRM.ServiceModel
{
    public partial class FilterValues
    {
        ///<summary>
        ///Id
        ///</summary>
        [ApiMember(Description="Id", IsRequired=true)]
        public virtual string id { get; set; }

        ///<summary>
        ///Description
        ///</summary>
        [ApiMember(Description="Description", IsRequired=true)]
        public virtual string name { get; set; }
    }

    public partial class GetFilterValues
    {
        public GetFilterValues()
        {
            fields = new List<string>{};
            posCodes = new List<string>{};
        }

        ///<summary>
        ///Brand
        ///</summary>
        [ApiMember(Description="Brand", IsRequired=true)]
        public virtual string brand { get; set; }

        ///<summary>
        ///Fields
        ///</summary>
        [ApiMember(Description="Fields", IsRequired=true)]
        public virtual List<string> fields { get; set; }

        ///<summary>
        ///List of POS Legacy
        ///</summary>
        [ApiMember(Description="List of POS Legacy", IsRequired=true)]
        public virtual List<string> posCodes { get; set; }
    }

    public partial class GetFilterValuesResponse
    {
        public GetFilterValuesResponse()
        {
            salesReps = new List<FilterValues>{};
        }

        public virtual List<FilterValues> salesReps { get; set; }
    }

}

C# 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"}]}