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
import Foundation
import ServiceStack

public class GetSalesReps : Codable
{
    /**
    * Brand Triagram, e.g. CAR, IWC, VAC
    */
    // @ApiMember(Description="Brand Triagram, e.g. CAR, IWC, VAC", IsRequired=true)
    public var brand:String

    /**
    * Point of Sale Code, e.g. ES100:102048
    */
    // @ApiMember(Description="Point of Sale Code, e.g. ES100:102048", IsRequired=true)
    public var posCode:String

    /**
    * Booster Customer Id
    */
    // @ApiMember(Description="Booster Customer Id")
    public var boosterCustomerId:Int?

    /**
    * Whether the sales representative's account is locked.
    */
    // @ApiMember(Description="Whether the sales representative's account is locked.")
    public var accountLocked:Bool?

    /**
    * Whether the sales representative's account is pinned.
    */
    // @ApiMember(Description="Whether the sales representative's account is pinned.")
    public var isPinned:Bool?

    required public init(){}
}

public class GetSalesRepsResponse : List<SalesRep>
{
    required public init(){ super.init() }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
    }
}

public class SalesRep : Codable
{
    /**
    * The first name of the sales representative.
    */
    // @ApiMember(Description="The first name of the sales representative.", IsRequired=true)
    public var firstName:String

    /**
    * The last name of the sales representative.
    */
    // @ApiMember(Description="The last name of the sales representative.", IsRequired=true)
    public var lastName:String

    /**
    * The email address of the sales representative.
    */
    // @ApiMember(Description="The email address of the sales representative.", IsRequired=true)
    public var email:String

    /**
    * The unique user ID of the sales representative.
    */
    // @ApiMember(Description="The unique user ID of the sales representative.", IsRequired=true)
    public var userId:String

    /**
    * Whether the sales representative's account is locked.
    */
    // @ApiMember(Description="Whether the sales representative's account is locked.", IsRequired=true)
    public var accountLocked:Bool

    /**
    * Whether the sales representative's account is pinned.
    */
    // @ApiMember(Description="Whether the sales representative's account is pinned.", IsRequired=true)
    public var isPinned:Bool

    required public init(){}
}


Swift GetSalesReps 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 /salesReps/{brand}/{posCode} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[]