Richemont.Booster2.PublicApi

<back to all web services

AcceptDelivery

Requires Authentication
The following routes are available for this service:
POST/stock/{brand}/acceptDeliveryManual Order Reception
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 AcceptDeliveryResponse:
    pass


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AcceptDeliveryNoteItem:
    # @ApiMember(Description="Delivery Notes Number, e.g. 7040123456", IsRequired=true)
    delivery_notes_number: int = 0
    """
    Delivery Notes Number, e.g. 7040123456
    """


    # @ApiMember(Description="Delivery Notes Date, e.g. 2022-10-10", IsRequired=true)
    delivery_notes_date: datetime.datetime = datetime.datetime(1, 1, 1)
    """
    Delivery Notes Date, e.g. 2022-10-10
    """


    # @ApiMember(Description="Delivery Notes Line Number (DeliveryNotesNoSplit), e.g. 10", IsRequired=true)
    delivery_notes_line_number: int = 0
    """
    Delivery Notes Line Number (DeliveryNotesNoSplit), e.g. 10
    """


    # @ApiMember(Description="ReceivedQuantity, e.g. 2", IsRequired=true)
    received_quantity: int = 0
    """
    ReceivedQuantity, e.g. 2
    """


    # @ApiMember(Description="Serial Numbers, e.g. '6361234', '6361235'")
    serial_numbers: Optional[List[str]] = None
    """
    Serial Numbers, e.g. '6361234', '6361235'
    """


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


    # @ApiMember(Description="Pos Legacy Code with Legacy System ID, e.g. ES123:123456", IsRequired=true)
    pos_code: Optional[str] = None
    """
    Pos Legacy Code with Legacy System ID, e.g. ES123:123456
    """


    # @ApiMember(Description="Received deliveries", IsRequired=true)
    delivery_notes: Optional[List[AcceptDeliveryNoteItem]] = None
    """
    Received deliveries
    """

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

POST /stock/{brand}/acceptDelivery HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"brand":"String","posCode":"String","deliveryNotes":[{"deliveryNotesNumber":0,"deliveryNotesDate":"\/Date(-62135596800000-0000)\/","deliveryNotesLineNumber":0,"receivedQuantity":0,"serialNumbers":["String"]}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{}