FirstChoice.API

<back to all web services

AuctionFloorVehicle

Requires Authentication
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 GenericResponse:
    message: Optional[str] = None
    success: bool = False


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AuctionFloorVehicle:
    # @ApiMember(IsRequired=true)
    bos_date: datetime.datetime = datetime.datetime(1, 1, 1)

    # @ApiMember(IsRequired=true)
    dealer_id: Optional[str] = None

    # @ApiMember(Description="Must be 17 characters", IsRequired=true)
    vin: Optional[str] = None
    """
    Must be 17 characters
    """


    # @ApiMember(IsRequired=true)
    year: int = 0

    # @ApiMember(IsRequired=true)
    make: Optional[str] = None

    # @ApiMember(IsRequired=true)
    model: Optional[str] = None

    # @ApiMember(IsRequired=true)
    miles: int = 0

    # @ApiMember(IsRequired=true)
    color: Optional[str] = None

    # @ApiMember(IsRequired=true)
    bos_amount: float = 0.0

    # @ApiMember()
    title_number: Optional[str] = None

    # @ApiMember()
    title_state: Optional[str] = None

Python AuctionFloorVehicle 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 /jsonl/reply/AuctionFloorVehicle HTTP/1.1 
Host: staging-api.my1stchoicefs.net 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"BOSDate":"0001-01-01T00:00:00.0000000","Vin":"String","Year":0,"Make":"String","Model":"String","Miles":0,"Color":"String","BOSAmount":0,"TitleNumber":"String","TitleState":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Message":"String","Success":false}