| GET | /warehouseItems/{brand}/{posCode} | Get a list Paginated Warehouse Stock |
|---|
"use strict";
export class WarehouseStockElement {
/** @param {{articleCode?:string,atpQuantity?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Article Code */
articleCode;
/**
* @type {number}
* @description Current Stock Quantity */
atpQuantity;
}
export class GetWarehouseStockResponse {
/** @param {{totalPages?:number,totalResults?:number,page?:number,items?:number,elements?:WarehouseStockElement[]}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {number}
* @description Total Pages */
totalPages;
/**
* @type {number}
* @description Total Results */
totalResults;
/**
* @type {number}
* @description Index of the result set returned */
page;
/**
* @type {number}
* @description Size of the result set returned */
items;
/**
* @type {WarehouseStockElement[]}
* @description List of movements */
elements;
}
export class GetWarehouseStock {
/** @param {{brand?:string,posCode?:string,articleCodes?:string[],page?:number,items?:number,noCount?:boolean,sortBy?:string}} [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 {number}
* @description Index of the result set returned */
page;
/**
* @type {number}
* @description Size of the result set returned */
items;
/**
* @type {boolean}
* @description Omit precise record count - save on performance */
noCount;
/**
* @type {string}
* @description Sorting expression */
sortBy;
}
JavaScript GetWarehouseStock DTOs
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 /warehouseItems/{brand}/{posCode} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"totalPages":0,"totalResults":0,"page":0,"items":0}