FirstChoice.API

<back to all web services

AuctionFloorVehicle

Requires Authentication
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports FirstChoice.API.ServiceModel

Namespace Global

    Namespace FirstChoice.API.ServiceModel

        Public Partial Class AuctionFloorVehicle
            <ApiMember(IsRequired:=true)>
            Public Overridable Property BOSDate As Date

            <ApiMember(IsRequired:=true)>
            Public Overridable Property DealerId As Guid

            '''<Summary>
            '''Must be 17 characters
            '''</Summary>
            <ApiMember(Description:="Must be 17 characters", IsRequired:=true)>
            Public Overridable Property Vin As String

            <ApiMember(IsRequired:=true)>
            Public Overridable Property Year As Integer

            <ApiMember(IsRequired:=true)>
            Public Overridable Property Make As String

            <ApiMember(IsRequired:=true)>
            Public Overridable Property Model As String

            <ApiMember(IsRequired:=true)>
            Public Overridable Property Miles As Integer

            <ApiMember(IsRequired:=true)>
            Public Overridable Property Color As String

            <ApiMember(IsRequired:=true)>
            Public Overridable Property BOSAmount As Double

            <ApiMember>
            Public Overridable Property TitleNumber As String

            <ApiMember>
            Public Overridable Property TitleState As String
        End Class

        Public Partial Class GenericResponse
            Public Overridable Property Message As String
            Public Overridable Property Success As Boolean
        End Class
    End Namespace
End Namespace

VB.NET AuctionFloorVehicle DTOs

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

HTTP + CSV

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

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

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