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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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}