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
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Service:
    # @ApiMember(Description="Language Code")
    language_code: Optional[str] = None
    """
    Language Code
    """


    # @ApiMember(Description="Service")
    service: Optional[str] = None
    """
    Service
    """


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetSerialNumberDetailsResponse:
    # @ApiMember(Description="Brand")
    brand: Optional[str] = None
    """
    Brand
    """


    # @ApiMember(Description="Article code", IsRequired=true)
    article_code: Optional[str] = None
    """
    Article code
    """


    # @ApiMember(Description="Serial Number", IsRequired=true)
    serial_number: Optional[str] = None
    """
    Serial Number
    """


    # @ApiMember(Description="Article Description")
    article_description: Optional[str] = None
    """
    Article Description
    """


    # @ApiMember(Description="Warranty Start Date")
    warranty_start_date: Optional[str] = None
    """
    Warranty Start Date
    """


    # @ApiMember(Description="Warranty End Date")
    warranty_end_date: Optional[str] = None
    """
    Warranty End Date
    """


    # @ApiMember(Description="Last Repair Date")
    last_repair_date: Optional[str] = None
    """
    Last Repair Date
    """


    # @ApiMember(Description="Sell In Date")
    sell_in_date: Optional[str] = None
    """
    Sell In Date
    """


    # @ApiMember(Description="Last Repair Site")
    last_repair_site: Optional[str] = None
    """
    Last Repair Site
    """


    # @ApiMember(Description="Services")
    services: Optional[List[Service]] = None
    """
    Services
    """


    # @ApiMember(Description="Enquirus lost or stolen")
    lost_or_stolen_status: bool = False
    """
    Enquirus lost or stolen
    """


    # @ApiMember(Description="Warranty CPO Start Date")
    warranty_resale_start_date: Optional[str] = None
    """
    Warranty CPO Start Date
    """


    # @ApiMember(Description="Warranty CPO End Date")
    warranty_resale_end_date: Optional[str] = None
    """
    Warranty CPO End Date
    """


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetSerialNumberDetails:
    # @ApiMember(Description="Article Code", IsRequired=true)
    article_code: Optional[str] = None
    """
    Article Code
    """


    # @ApiMember(Description="Serial Number", IsRequired=true)
    serial_number: Optional[str] = None
    """
    Serial Number
    """


    # @ApiMember(Description="POS Code e.g. ES100:102048")
    pos_code: Optional[str] = None
    """
    POS Code e.g. ES100:102048
    """

Python GetSerialNumberDetails 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.

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

{"brand":"String","articleCode":"String","serialNumber":"String","articleDescription":"String","warrantyStartDate":"String","warrantyEndDate":"String","lastRepairDate":"String","sellInDate":"String","lastRepairSite":"String","services":[{"languageCode":"String","service":"String"}],"lostOrStolenStatus":false,"warrantyResaleStartDate":"String","warrantyResaleEndDate":"String"}