Richemont.Booster2.PublicApi

<back to all web services

GetSalesReps

Requires Authentication
The following routes are available for this service:
GET/salesReps/{brand}/{posCode}Get Sales Reps
namespace Richemont.Booster2.PublicApi.POS.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type SalesRep() = 
        ///<summary>
        ///The first name of the sales representative.
        ///</summary>
        [<ApiMember(Description="The first name of the sales representative.", IsRequired=true)>]
        member val firstName:String = null with get,set

        ///<summary>
        ///The last name of the sales representative.
        ///</summary>
        [<ApiMember(Description="The last name of the sales representative.", IsRequired=true)>]
        member val lastName:String = null with get,set

        ///<summary>
        ///The email address of the sales representative.
        ///</summary>
        [<ApiMember(Description="The email address of the sales representative.", IsRequired=true)>]
        member val email:String = null with get,set

        ///<summary>
        ///The unique user ID of the sales representative.
        ///</summary>
        [<ApiMember(Description="The unique user ID of the sales representative.", IsRequired=true)>]
        member val userId:Guid = new Guid() with get,set

        ///<summary>
        ///Whether the sales representative's account is locked.
        ///</summary>
        [<ApiMember(Description="Whether the sales representative's account is locked.", IsRequired=true)>]
        member val accountLocked:Boolean = new Boolean() with get,set

        ///<summary>
        ///Whether the sales representative's account is pinned.
        ///</summary>
        [<ApiMember(Description="Whether the sales representative's account is pinned.", IsRequired=true)>]
        member val isPinned:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type GetSalesRepsResponse() = 
        inherit ResizeArray<SalesRep>()

    [<AllowNullLiteral>]
    type GetSalesReps() = 
        ///<summary>
        ///Brand Triagram, e.g. CAR, IWC, VAC
        ///</summary>
        [<ApiMember(Description="Brand Triagram, e.g. CAR, IWC, VAC", IsRequired=true)>]
        member val brand:String = null with get,set

        ///<summary>
        ///Point of Sale Code, e.g. ES100:102048
        ///</summary>
        [<ApiMember(Description="Point of Sale Code, e.g. ES100:102048", IsRequired=true)>]
        member val posCode:String = null with get,set

        ///<summary>
        ///Booster Customer Id
        ///</summary>
        [<ApiMember(Description="Booster Customer Id")>]
        member val boosterCustomerId:Nullable<Int32> = new Nullable<Int32>() with get,set

        ///<summary>
        ///Whether the sales representative's account is locked.
        ///</summary>
        [<ApiMember(Description="Whether the sales representative's account is locked.")>]
        member val accountLocked:Nullable<Boolean> = new Nullable<Boolean>() with get,set

        ///<summary>
        ///Whether the sales representative's account is pinned.
        ///</summary>
        [<ApiMember(Description="Whether the sales representative's account is pinned.")>]
        member val isPinned:Nullable<Boolean> = new Nullable<Boolean>() with get,set

F# GetSalesReps 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.

GET /salesReps/{brand}/{posCode} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[]