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
"use strict";
export class DealerCostPrice {
    /** @param {{currency?:string,price?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Currency of the Dealer Cost Price */
    currency;
    /**
     * @type {number}
     * @description Dealer Cost Price of the item */
    price;
}
export class Price {
    /** @param {{articleCode?:string,currency?:string,retailSalePrice?:number,priceListCode?:string,dealerCostPrice?:DealerCostPrice}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Reference Code of the item */
    articleCode;
    /**
     * @type {string}
     * @description Currency of the price */
    currency;
    /**
     * @type {number}
     * @description Retail price of the item */
    retailSalePrice;
    /**
     * @type {string}
     * @description Code of currency applied */
    priceListCode;
    /**
     * @type {DealerCostPrice}
     * @description Dealer Cost Price */
    dealerCostPrice;
}
export class GetPriceResponse extends Array {
    constructor(init) { super(init); Object.assign(this, init) }
}
export class GetPrice {
    /** @param {{brand?:string,posCode?:string,articleCodes?:string[],includeDealerCostPrice?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Brand */
    brand;
    /**
     * @type {string}
     * @description POS Legacy */
    posCode;
    /**
     * @type {string[]}
     * @description List of Article Codes */
    articleCodes;
    /**
     * @type {boolean}
     * @description Include Dealer Cost Price in the response */
    includeDealerCostPrice;
}

JavaScript GetPrice DTOs

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

HTTP + JSV

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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

[
	
]