| GET | /price/{brand} | Get the list of prices of the requested items |
|---|
namespace Richemont.Booster2.PublicApi.MasterFile.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type DealerCostPrice() =
///<summary>
///Currency of the Dealer Cost Price
///</summary>
[<ApiMember(Description="Currency of the Dealer Cost Price", IsRequired=true)>]
member val currency:String = null with get,set
///<summary>
///Dealer Cost Price of the item
///</summary>
[<ApiMember(Description="Dealer Cost Price of the item", IsRequired=true)>]
member val price:Nullable<Decimal> = new Nullable<Decimal>() with get,set
[<AllowNullLiteral>]
type Price() =
///<summary>
///Reference Code of the item
///</summary>
[<ApiMember(Description="Reference Code of the item", IsRequired=true)>]
member val articleCode:String = null with get,set
///<summary>
///Currency of the price
///</summary>
[<ApiMember(Description="Currency of the price", IsRequired=true)>]
member val currency:String = null with get,set
///<summary>
///Retail price of the item
///</summary>
[<ApiMember(Description="Retail price of the item")>]
member val retailSalePrice:Decimal = new Decimal() with get,set
///<summary>
///Code of currency applied
///</summary>
[<ApiMember(Description="Code of currency applied", IsRequired=true)>]
member val priceListCode:String = null with get,set
///<summary>
///Dealer Cost Price
///</summary>
[<ApiMember(Description="Dealer Cost Price")>]
member val dealerCostPrice:DealerCostPrice = null with get,set
[<AllowNullLiteral>]
type GetPriceResponse() =
inherit ResizeArray<Price>()
[<AllowNullLiteral>]
type GetPrice() =
///<summary>
///Brand
///</summary>
[<ApiMember(Description="Brand", IsRequired=true)>]
member val brand:String = null with get,set
///<summary>
///POS Legacy
///</summary>
[<ApiMember(Description="POS Legacy", IsRequired=true)>]
member val posCode:String = null with get,set
///<summary>
///List of Article Codes
///</summary>
[<ApiMember(Description="List of Article Codes", IsRequired=true)>]
member val articleCodes:ResizeArray<String> = new ResizeArray<String>() with get,set
///<summary>
///Include Dealer Cost Price in the response
///</summary>
[<ApiMember(Description="Include Dealer Cost Price in the response", IsRequired=true)>]
member val includeDealerCostPrice:Boolean = new Boolean() with get,set
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" />