| 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;
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length []