| 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
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ArrayOfPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.MasterFile.ServiceModel" />