RAPP.Mercedes.VanCustomerAccount.Api

<back to all web services

VehicleVisits

The following routes are available for this service:
POST/vehiclevisits/
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports RAPP.Mercedes.VanCustomerAccount.Api.ServiceModel.SitecoreServiceModels

Namespace Global

    Namespace RAPP.Mercedes.VanCustomerAccount.Api.ServiceModel.SitecoreServiceModels

        Public Partial Class ReturnStatus
            Public Overridable Property ReturnCode As String
            Public Overridable Property Message As String
        End Class

        Public Partial Class VehicleVisits
            Public Overridable Property CIAMId As String
            Public Overridable Property ChassisNumber As String
            Public Overridable Property ItemsPerPage As Short
            Public Overridable Property PageNumber As Short
        End Class

        Public Partial Class VehicleVisitsResponse
            Public Sub New()
                Visits = New List(Of Visit)
            End Sub

            Public Overridable Property Status As ReturnStatus
            Public Overridable Property NumberOfPages As Short
            Public Overridable Property Visits As List(Of Visit)
        End Class

        Public Partial Class Visit
            Public Overridable Property VisitType As String
            Public Overridable Property VisitDate As Nullable(Of Date)
            Public Overridable Property Mileage As Decimal
            Public Overridable Property RegistrationNumber As String
            Public Overridable Property DealerName As String
            Public Overridable Property ContractNumber As String
        End Class
    End Namespace
End Namespace

VB.NET VehicleVisits 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.

POST /vehiclevisits/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"CIAMId":"String","ChassisNumber":"String","ItemsPerPage":0,"PageNumber":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Status":{"ReturnCode":"String","Message":"String"},"NumberOfPages":0,"Visits":[{"VisitType":"String","VisitDate":"\/Date(-62135596800000-0000)\/","Mileage":0,"RegistrationNumber":"String","DealerName":"String","ContractNumber":"String"}]}