Richemont.Booster2.PublicApi

<back to all web services

GetPosAuth

Requires Authentication
The following routes are available for this service:
GET/security/{brand}/{posCode}/{mnemonicCode}Get information if a Pos/User is authorized on a specific function
import Foundation
import ServiceStack

public class GetPosAuth : Codable
{
    /**
    * Brand Trigram
    */
    // @ApiMember(Description="Brand Trigram", IsRequired=true)
    public var brand:String

    /**
    * POS Legacy
    */
    // @ApiMember(Description="POS Legacy", IsRequired=true)
    public var posCode:String

    /**
    * Mnemonic Petal Code
    */
    // @ApiMember(Description="Mnemonic Petal Code", IsRequired=true)
    public var mnemonicCode:String

    required public init(){}
}

public class GetPosAuthResponse : Codable
{
    /**
    * Is Authorized
    */
    // @ApiMember(Description="Is Authorized", IsRequired=true)
    public var isAuthorized:Bool

    required public init(){}
}


Swift GetPosAuth DTOs

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

HTTP + JSV

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

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

{
	isAuthorized: False
}