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 java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetPosAuth
    {
        /**
        * Brand Trigram
        */
        @ApiMember(Description="Brand Trigram", IsRequired=true)
        public String brand = null;

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

        /**
        * Mnemonic Petal Code
        */
        @ApiMember(Description="Mnemonic Petal Code", IsRequired=true)
        public String mnemonicCode = null;
        
        public String getBrand() { return brand; }
        public GetPosAuth setBrand(String value) { this.brand = value; return this; }
        public String getPosCode() { return posCode; }
        public GetPosAuth setPosCode(String value) { this.posCode = value; return this; }
        public String getMnemonicCode() { return mnemonicCode; }
        public GetPosAuth setMnemonicCode(String value) { this.mnemonicCode = value; return this; }
    }

    public static class GetPosAuthResponse
    {
        /**
        * Is Authorized
        */
        @ApiMember(Description="Is Authorized", IsRequired=true)
        public Boolean isAuthorized = null;
        
        public Boolean getIsAuthorized() { return isAuthorized; }
        public GetPosAuthResponse setIsAuthorized(Boolean value) { this.isAuthorized = value; return this; }
    }

}

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

{"isAuthorized":false}