Richemont.Booster2.PublicApi

<back to all web services

CreateStockValidateRequest

Requires Authentication
The following routes are available for this service:
POST/stock/validateCreate 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 .jsv suffix or ?format=jsv

HTTP + 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
}