Richemont.Booster2.PublicApi

<back to all web services

GetPrice

Requires Authentication
The following routes are available for this service:
GET/price/{brand}Get the list of prices of the requested items
import java.math.*
import java.util.*
import net.servicestack.client.*


open class GetPrice
{
    /**
    * Brand
    */
    @ApiMember(Description="Brand", IsRequired=true)
    var brand:String? = null

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

    /**
    * List of Article Codes
    */
    @ApiMember(Description="List of Article Codes", IsRequired=true)
    var articleCodes:ArrayList<String> = ArrayList<String>()

    /**
    * Include Dealer Cost Price in the response
    */
    @ApiMember(Description="Include Dealer Cost Price in the response", IsRequired=true)
    var includeDealerCostPrice:Boolean? = null
}

open class GetPriceResponse : ArrayList<Price>()
{
}

open class Price
{
    /**
    * Reference Code of the item
    */
    @ApiMember(Description="Reference Code of the item", IsRequired=true)
    var articleCode:String? = null

    /**
    * Currency of the price
    */
    @ApiMember(Description="Currency of the price", IsRequired=true)
    var currency:String? = null

    /**
    * Retail price of the item
    */
    @ApiMember(Description="Retail price of the item")
    var retailSalePrice:BigDecimal? = null

    /**
    * Code of currency applied
    */
    @ApiMember(Description="Code of currency applied", IsRequired=true)
    var priceListCode:String? = null

    /**
    * Dealer Cost Price
    */
    @ApiMember(Description="Dealer Cost Price")
    var dealerCostPrice:DealerCostPrice? = null
}

open class DealerCostPrice
{
    /**
    * Currency of the Dealer Cost Price
    */
    @ApiMember(Description="Currency of the Dealer Cost Price", IsRequired=true)
    var currency:String? = null

    /**
    * Dealer Cost Price of the item
    */
    @ApiMember(Description="Dealer Cost Price of the item", IsRequired=true)
    var price:BigDecimal? = null
}

Kotlin GetPrice 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 /price/{brand} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[]