Richemont.Booster2.PublicApi

<back to all web services

GetCPOArticleEligibility

Requires Authentication
The following routes are available for this service:
GET/equipment/{brand}/{posCode}/{articleCode}/{serialNumber}/eligibilityGet CPO Article Eligibility
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.MasterFile.ServiceModel

Namespace Global

    Namespace Richemont.Booster2.PublicApi.MasterFile.ServiceModel

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

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

            '''<Summary>
            '''Article Reference Code (e.g. CRWSTA0030)
            '''</Summary>
            <ApiMember(Description:="Article Reference Code (e.g. CRWSTA0030)", IsRequired:=true)>
            Public Overridable Property articleCode As String

            '''<Summary>
            '''Serial Number
            '''</Summary>
            <ApiMember(Description:="Serial Number", IsRequired:=true)>
            Public Overridable Property serialNumber As String
        End Class

        Public Partial Class GetCPOArticleEligibilityResponse
            Public Overridable Property canBeBoughtIn As Boolean
            Public Overridable Property isInvalidSerialNumberReference As Boolean
            Public Overridable Property isLostOrStolen As Boolean
            Public Overridable Property existsInStock As Boolean
            Public Overridable Property existsInCPOStock As Boolean
        End Class
    End Namespace
End Namespace

VB.NET GetCPOArticleEligibility DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /equipment/{brand}/{posCode}/{articleCode}/{serialNumber}/eligibility HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"canBeBoughtIn":false,"isInvalidSerialNumberReference":false,"isLostOrStolen":false,"existsInStock":false,"existsInCPOStock":false}