| POST | /stock/validate | Create Validate Stock Request |
|---|
namespace Richemont.Booster2.PublicApi.Stock.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type CreateStockValidateResponse() =
///<summary>
///Validation Id
///</summary>
[<ApiMember(Description="Validation Id", IsRequired=true)>]
member val validationId:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type CreateStockValidateRequestItem() =
///<summary>
///Legacy Article Code of the item
///</summary>
[<ApiMember(Description="Legacy Article Code of the item", IsRequired=true)>]
member val articleCode:String = null with get,set
///<summary>
///Stock Quantity
///</summary>
[<ApiMember(Description="Stock Quantity", IsRequired=true)>]
member val quantity:Int32 = new Int32() with get,set
///<summary>
///Serial Numbers
///</summary>
[<ApiMember(Description="Serial Numbers")>]
member val serialNumbers:ResizeArray<String> = new ResizeArray<String>() with get,set
[<AllowNullLiteral>]
type CreateStockValidateRequest() =
///<summary>
///Brand Trigram, e.g. CAR, IWC
///</summary>
[<ApiMember(Description="Brand Trigram, e.g. CAR, IWC", IsRequired=true)>]
member val brand:String = null with get,set
///<summary>
///POS Code e.g. ES100:102048
///</summary>
[<ApiMember(Description="POS Code e.g. ES100:102048", IsRequired=true)>]
member val posCode:String = null with get,set
///<summary>
///Validation Date
///</summary>
[<ApiMember(Description="Validation Date", IsRequired=true)>]
member val date:DateTime = new DateTime() with get,set
///<summary>
///Items
///</summary>
[<ApiMember(Description="Items", IsRequired=true)>]
member val items:ResizeArray<CreateStockValidateRequestItem> = new ResizeArray<CreateStockValidateRequestItem>() with get,set
F# CreateStockValidateRequest 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.
POST /stock/validate HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"brand":"String","posCode":"String","date":"\/Date(-62135596800000-0000)\/","items":[{"articleCode":"String","quantity":0,"serialNumbers":["String"]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"validationId":0}