Richemont.Booster2.PublicApi

<back to all web services

GetSerialNumberDetails

Requires Authentication
The following routes are available for this service:
GET/serialnumber/{articleCode}/{serialNumber}Get a serial number with details
namespace Richemont.Booster2.PublicApi.MasterFile.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Service() = 
        ///<summary>
        ///Language Code
        ///</summary>
        [<ApiMember(Description="Language Code")>]
        member val languageCode:String = null with get,set

        ///<summary>
        ///Service
        ///</summary>
        [<ApiMember(Description="Service")>]
        member val service:String = null with get,set

    [<AllowNullLiteral>]
    type GetSerialNumberDetailsResponse() = 
        ///<summary>
        ///Brand
        ///</summary>
        [<ApiMember(Description="Brand")>]
        member val brand:String = null with get,set

        ///<summary>
        ///Article code
        ///</summary>
        [<ApiMember(Description="Article code", IsRequired=true)>]
        member val articleCode:String = null with get,set

        ///<summary>
        ///Serial Number
        ///</summary>
        [<ApiMember(Description="Serial Number", IsRequired=true)>]
        member val serialNumber:String = null with get,set

        ///<summary>
        ///Article Description
        ///</summary>
        [<ApiMember(Description="Article Description")>]
        member val articleDescription:String = null with get,set

        ///<summary>
        ///Warranty Start Date
        ///</summary>
        [<ApiMember(Description="Warranty Start Date")>]
        member val warrantyStartDate:String = null with get,set

        ///<summary>
        ///Warranty End Date
        ///</summary>
        [<ApiMember(Description="Warranty End Date")>]
        member val warrantyEndDate:String = null with get,set

        ///<summary>
        ///Last Repair Date
        ///</summary>
        [<ApiMember(Description="Last Repair Date")>]
        member val lastRepairDate:String = null with get,set

        ///<summary>
        ///Sell In Date
        ///</summary>
        [<ApiMember(Description="Sell In Date")>]
        member val sellInDate:String = null with get,set

        ///<summary>
        ///Last Repair Site
        ///</summary>
        [<ApiMember(Description="Last Repair Site")>]
        member val lastRepairSite:String = null with get,set

        ///<summary>
        ///Services
        ///</summary>
        [<ApiMember(Description="Services")>]
        member val services:ResizeArray<Service> = new ResizeArray<Service>() with get,set

        ///<summary>
        ///Enquirus lost or stolen
        ///</summary>
        [<ApiMember(Description="Enquirus lost or stolen")>]
        member val lostOrStolenStatus:Boolean = new Boolean() with get,set

        ///<summary>
        ///Warranty CPO Start Date
        ///</summary>
        [<ApiMember(Description="Warranty CPO Start Date")>]
        member val warrantyResaleStartDate:String = null with get,set

        ///<summary>
        ///Warranty CPO End Date
        ///</summary>
        [<ApiMember(Description="Warranty CPO End Date")>]
        member val warrantyResaleEndDate:String = null with get,set

    [<AllowNullLiteral>]
    type GetSerialNumberDetails() = 
        ///<summary>
        ///Article Code
        ///</summary>
        [<ApiMember(Description="Article Code", IsRequired=true)>]
        member val articleCode:String = null with get,set

        ///<summary>
        ///Serial Number
        ///</summary>
        [<ApiMember(Description="Serial Number", IsRequired=true)>]
        member val serialNumber:String = null with get,set

        ///<summary>
        ///POS Code e.g. ES100:102048
        ///</summary>
        [<ApiMember(Description="POS Code e.g. ES100:102048")>]
        member val posCode:String = null with get,set

F# GetSerialNumberDetails DTOs

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

HTTP + XML

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

GET /serialnumber/{articleCode}/{serialNumber} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetSerialNumberDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.MasterFile.ServiceModel">
  <articleCode>String</articleCode>
  <articleDescription>String</articleDescription>
  <brand>String</brand>
  <lastRepairDate>String</lastRepairDate>
  <lastRepairSite>String</lastRepairSite>
  <lostOrStolenStatus>false</lostOrStolenStatus>
  <sellInDate>String</sellInDate>
  <serialNumber>String</serialNumber>
  <services>
    <Service>
      <languageCode>String</languageCode>
      <service>String</service>
    </Service>
  </services>
  <warrantyEndDate>String</warrantyEndDate>
  <warrantyResaleEndDate>String</warrantyResaleEndDate>
  <warrantyResaleStartDate>String</warrantyResaleStartDate>
  <warrantyStartDate>String</warrantyStartDate>
</GetSerialNumberDetailsResponse>