| GET | /v1/VehicleSwap/Historical | Get Historical Vehicle Records | This endpoint calls the same named endpoint in the Agency API to return historical Vehicle Swap records. |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.Agency.Orchestration.API.ServiceModel.VehicleSwap
Imports Mercedes.Agency.API.Shared.POCO
Namespace Global
Namespace Mercedes.Agency.API.Shared.POCO
Public Partial Class VehicleSwapHistorical
Public Overridable Property Reference As String
Public Overridable Property OrderType As String
Public Overridable Property VehicleSwapGuid As Guid
Public Overridable Property OrderGuid As Guid
Public Overridable Property Showroom As String
Public Overridable Property GasUserId As String
Public Overridable Property OldCommissionNumber As String
Public Overridable Property NewCommissionNumber As String
Public Overridable Property RequestReason As String
Public Overridable Property SentToCesar As Boolean
Public Overridable Property StatusId As Integer
Public Overridable Property Status As String
Public Overridable Property SwapCreated As Date
Public Overridable Property SwapUpdated As Date?
End Class
Public Partial Class VehicleSwapHistoricalResponse
Public Overridable Property HistoricalVehicleSwaps As List(Of VehicleSwapHistorical) = New List(Of VehicleSwapHistorical)
End Class
End Namespace
Namespace Mercedes.Agency.Orchestration.API.ServiceModel.VehicleSwap
Public Partial Class VehicleSwapHistoricalRequest
Implements IPost
End Class
End Namespace
End Namespace
VB.NET VehicleSwapHistoricalRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/VehicleSwap/Historical HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
HistoricalVehicleSwaps:
[
{
Reference: String,
OrderType: String,
VehicleSwapGuid: 00000000000000000000000000000000,
OrderGuid: 00000000000000000000000000000000,
Showroom: String,
GasUserId: String,
OldCommissionNumber: String,
NewCommissionNumber: String,
RequestReason: String,
SentToCesar: False,
StatusId: 0,
SwapCreated: 0001-01-01,
SwapUpdated: 0001-01-01
}
]
}