| POST | /stock/validate | Create Validate Stock Request |
|---|
"use strict";
export class CreateStockValidateResponse {
/** @param {{validationId?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {number}
* @description Validation Id */
validationId;
}
export class CreateStockValidateRequestItem {
/** @param {{articleCode?:string,quantity?:number,serialNumbers?:string[]}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Legacy Article Code of the item */
articleCode;
/**
* @type {number}
* @description Stock Quantity */
quantity;
/**
* @type {string[]}
* @description Serial Numbers */
serialNumbers;
}
export class CreateStockValidateRequest {
/** @param {{brand?:string,posCode?:string,date?:string,items?:CreateStockValidateRequestItem[]}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Brand Trigram, e.g. CAR, IWC */
brand;
/**
* @type {string}
* @description POS Code e.g. ES100:102048 */
posCode;
/**
* @type {string}
* @description Validation Date */
date;
/**
* @type {CreateStockValidateRequestItem[]}
* @description Items */
items;
}
JavaScript CreateStockValidateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /stock/validate HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CreateStockValidateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Stock.ServiceModel">
<brand>String</brand>
<date>0001-01-01T00:00:00</date>
<items>
<CreateStockValidateRequestItem>
<articleCode>String</articleCode>
<quantity>0</quantity>
<serialNumbers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</serialNumbers>
</CreateStockValidateRequestItem>
</items>
<posCode>String</posCode>
</CreateStockValidateRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CreateStockValidateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Stock.ServiceModel"> <validationId>0</validationId> </CreateStockValidateResponse>