Richemont.Booster2.PublicApi

<back to all web services

GetStockSlim

Requires Authentication
The following routes are available for this service:
GET/stock/{brand}/slimGet slim Stock
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 GetStockSlimResponse:
    # @ApiMember(Description="Total Product Count", IsRequired=true)
    total_product_count: int = 0
    """
    Total Product Count
    """


    # @ApiMember(Description="Total Consignment Count", IsRequired=true)
    total_consignment_count: int = 0
    """
    Total Consignment Count
    """


    # @ApiMember(Description="Articles", IsRequired=true)
    elements: Optional[List[str]] = None
    """
    Articles
    """


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


    # @ApiMember(Description="POS Legacy")
    pos_codes: Optional[List[str]] = None
    """
    POS Legacy
    """


    # @ApiMember(Description="Article Codes")
    article_codes: Optional[List[str]] = None
    """
    Article Codes
    """


    # @ApiMember(Description="Cluster Id")
    cluster_ids: Optional[List[str]] = None
    """
    Cluster Id
    """


    # @ApiMember(Description="Include Extra Info")
    include_extra_info: bool = False
    """
    Include Extra Info
    """


    # @ApiMember(Description="Include Consignment NotAuthorized POS")
    include_consignment_not_authorized_p_o_s: bool = False
    """
    Include Consignment NotAuthorized POS
    """


    # @ApiMember(Description="Item type, 'standard' OR 'consigned'. By default, all are coming")
    type: Optional[str] = None
    """
    Item type, 'standard' OR 'consigned'. By default, all are coming
    """

Python GetStockSlim DTOs

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

HTTP + OTHER

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

GET /stock/{brand}/slim HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"totalProductCount":0,"totalConsignmentCount":0,"elements":["String"]}