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
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.Stock.ServiceModel

Namespace Global

    Namespace Richemont.Booster2.PublicApi.Stock.ServiceModel

        Public Partial Class CreateStockValidateRequest
            Public Sub New()
                items = New List(Of CreateStockValidateRequestItem)
            End Sub

            '''<Summary>
            '''Brand Trigram, e.g. CAR, IWC
            '''</Summary>
            <ApiMember(Description:="Brand Trigram, e.g. CAR, IWC", IsRequired:=true)>
            Public Overridable Property brand As String

            '''<Summary>
            '''POS Code e.g. ES100:102048
            '''</Summary>
            <ApiMember(Description:="POS Code e.g. ES100:102048", IsRequired:=true)>
            Public Overridable Property posCode As String

            '''<Summary>
            '''Validation Date
            '''</Summary>
            <ApiMember(Description:="Validation Date", IsRequired:=true)>
            Public Overridable Property date As Date

            '''<Summary>
            '''Items
            '''</Summary>
            <ApiMember(Description:="Items", IsRequired:=true)>
            Public Overridable Property items As List(Of CreateStockValidateRequestItem)
        End Class

        Public Partial Class CreateStockValidateRequestItem
            Public Sub New()
                serialNumbers = New List(Of String)
            End Sub

            '''<Summary>
            '''Legacy Article Code of the item
            '''</Summary>
            <ApiMember(Description:="Legacy Article Code of the item", IsRequired:=true)>
            Public Overridable Property articleCode As String

            '''<Summary>
            '''Stock Quantity
            '''</Summary>
            <ApiMember(Description:="Stock Quantity", IsRequired:=true)>
            Public Overridable Property quantity As Integer

            '''<Summary>
            '''Serial Numbers
            '''</Summary>
            <ApiMember(Description:="Serial Numbers")>
            Public Overridable Property serialNumbers As List(Of String)
        End Class

        Public Partial Class CreateStockValidateResponse
            '''<Summary>
            '''Validation Id
            '''</Summary>
            <ApiMember(Description:="Validation Id", IsRequired:=true)>
            Public Overridable Property validationId As Integer
        End Class
    End Namespace
End Namespace

VB.NET 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
}