Mercedes.Agency.Orchestration.API

<back to all web services

VehicleSwapHistoricalRequest

VehicleSwapHistorical
Requires Authentication
The following routes are available for this service:
GET/v1/VehicleSwap/HistoricalGet Historical Vehicle RecordsThis 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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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":"\/Date(-62135596800000-0000)\/","SwapUpdated":"\/Date(-62135596800000-0000)\/"}]}