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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.MasterFile.ServiceModel;

namespace Richemont.Booster2.PublicApi.MasterFile.ServiceModel
{
    public partial class DealerCostPrice
    {
        ///<summary>
        ///Currency of the Dealer Cost Price
        ///</summary>
        [ApiMember(Description="Currency of the Dealer Cost Price", IsRequired=true)]
        public virtual string currency { get; set; }

        ///<summary>
        ///Dealer Cost Price of the item
        ///</summary>
        [ApiMember(Description="Dealer Cost Price of the item", IsRequired=true)]
        public virtual decimal? price { get; set; }
    }

    public partial class GetPrice
    {
        public GetPrice()
        {
            articleCodes = new List<string>{};
        }

        ///<summary>
        ///Brand
        ///</summary>
        [ApiMember(Description="Brand", IsRequired=true)]
        public virtual string brand { get; set; }

        ///<summary>
        ///POS Legacy
        ///</summary>
        [ApiMember(Description="POS Legacy", IsRequired=true)]
        public virtual string posCode { get; set; }

        ///<summary>
        ///List of Article Codes
        ///</summary>
        [ApiMember(Description="List of Article Codes", IsRequired=true)]
        public virtual List<string> articleCodes { get; set; }

        ///<summary>
        ///Include Dealer Cost Price in the response
        ///</summary>
        [ApiMember(Description="Include Dealer Cost Price in the response", IsRequired=true)]
        public virtual bool includeDealerCostPrice { get; set; }
    }

    public partial class GetPriceResponse
        : List<Price>
    {
    }

    public partial class Price
    {
        ///<summary>
        ///Reference Code of the item
        ///</summary>
        [ApiMember(Description="Reference Code of the item", IsRequired=true)]
        public virtual string articleCode { get; set; }

        ///<summary>
        ///Currency of the price
        ///</summary>
        [ApiMember(Description="Currency of the price", IsRequired=true)]
        public virtual string currency { get; set; }

        ///<summary>
        ///Retail price of the item
        ///</summary>
        [ApiMember(Description="Retail price of the item")]
        public virtual decimal retailSalePrice { get; set; }

        ///<summary>
        ///Code of currency applied
        ///</summary>
        [ApiMember(Description="Code of currency applied", IsRequired=true)]
        public virtual string priceListCode { get; set; }

        ///<summary>
        ///Dealer Cost Price
        ///</summary>
        [ApiMember(Description="Dealer Cost Price")]
        public virtual DealerCostPrice dealerCostPrice { get; set; }
    }

}

C# GetPrice DTOs

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

HTTP + 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" />