| 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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
brand: String,
posCode: String,
date: 0001-01-01,
items:
[
{
articleCode: String,
quantity: 0,
serialNumbers:
[
String
]
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
validationId: 0
}