Richemont.Booster2.PublicApi

<back to all web services

GetPosChainTransferAvailable

Requires Authentication
The following routes are available for this service:
GET/posChain/{brand}/{posCode}/availableForTransferGet available POS within the same Chain where stock is transferable
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 Pos:
    # @ApiMember(Description="POS Code", IsRequired=true)
    pos_code: Optional[str] = None
    """
    POS Code
    """


    # @ApiMember(Description="Name of the POS", IsRequired=true)
    name: Optional[str] = None
    """
    Name of the POS
    """


    # @ApiMember(Description="City of the POS", IsRequired=true)
    city: Optional[str] = None
    """
    City of the POS
    """


    # @ApiMember(Description="Address of the POS", IsRequired=true)
    address: Optional[str] = None
    """
    Address of the POS
    """


    # @ApiMember(Description="Country of the POS", IsRequired=true)
    country: Optional[str] = None
    """
    Country of the POS
    """


    # @ApiMember(Description="Brand of the POS", IsRequired=true)
    brand: Optional[str] = None
    """
    Brand of the POS
    """


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetPosChainTransferAvailableResponse(List[Pos]):
    pass


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


    # @ApiMember(Description="POS Legacy Code", IsRequired=true)
    pos_code: Optional[str] = None
    """
    POS Legacy Code
    """

Python GetPosChainTransferAvailable 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 /posChain/{brand}/{posCode}/availableForTransfer HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[]