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

export class DealerCostPrice
{
    /** @description Currency of the Dealer Cost Price */
    // @ApiMember(Description="Currency of the Dealer Cost Price", IsRequired=true)
    public currency: string;

    /** @description Dealer Cost Price of the item */
    // @ApiMember(Description="Dealer Cost Price of the item", IsRequired=true)
    public price: number;

    public constructor(init?: Partial<DealerCostPrice>) { (Object as any).assign(this, init); }
}

export class Price
{
    /** @description Reference Code of the item */
    // @ApiMember(Description="Reference Code of the item", IsRequired=true)
    public articleCode: string;

    /** @description Currency of the price */
    // @ApiMember(Description="Currency of the price", IsRequired=true)
    public currency: string;

    /** @description Retail price of the item */
    // @ApiMember(Description="Retail price of the item")
    public retailSalePrice: number;

    /** @description Code of currency applied */
    // @ApiMember(Description="Code of currency applied", IsRequired=true)
    public priceListCode: string;

    /** @description Dealer Cost Price */
    // @ApiMember(Description="Dealer Cost Price")
    public dealerCostPrice: DealerCostPrice;

    public constructor(init?: Partial<Price>) { (Object as any).assign(this, init); }
}

export class GetPriceResponse extends Array<Price>
{

    public constructor(init?: Partial<GetPriceResponse>) { super(); (Object as any).assign(this, init); }
}

export class GetPrice
{
    /** @description Brand */
    // @ApiMember(Description="Brand", IsRequired=true)
    public brand: string;

    /** @description POS Legacy */
    // @ApiMember(Description="POS Legacy", IsRequired=true)
    public posCode: string;

    /** @description List of Article Codes */
    // @ApiMember(Description="List of Article Codes", IsRequired=true)
    public articleCodes: string[];

    /** @description Include Dealer Cost Price in the response */
    // @ApiMember(Description="Include Dealer Cost Price in the response", IsRequired=true)
    public includeDealerCostPrice: boolean;

    public constructor(init?: Partial<GetPrice>) { (Object as any).assign(this, init); }
}

TypeScript 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" />