MB Key2Key CCD API

<back to all web services

GetKey2keyDataRequest

Requires Authentication
The following routes are available for this service:
POST/GetKey2keyData/
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports MBKey2keyCCD.GetKey2keyData
Imports MBKey2keyCCD.BusinessLib.DomainClasses
Imports MBKey2keyCCD.DomainClasses

Namespace Global

    Namespace MBKey2keyCCD.BusinessLib.DomainClasses

        Public Partial Class Offer
            Public Overridable Property OfferDescription As String
            Public Overridable Property ParityLeadType As String
            Public Overridable Property EquityFigure As Decimal?
            Public Overridable Property ParityFigure As Decimal?
        End Class
    End Namespace

    Namespace MBKey2keyCCD.DomainClasses

        Public Partial Class Comments
            Public Overridable Property Comment As String
            Public Overridable Property Created As Date?
        End Class
    End Namespace

    Namespace MBKey2keyCCD.GetKey2keyData

        <DataContract>
        Public Partial Class GetKey2keyDataRequest
            <DataMember>
            Public Overridable Property ContractNumber As String

            <DataMember>
            Public Overridable Property BPID As Integer?

            <DataMember>
            Public Overridable Property AppointmentDate As String

            <DataMember>
            Public Overridable Property Offers As Offer()

            <DataMember>
            Public Overridable Property EstimatedSettlement As Decimal?

            <DataMember>
            Public Overridable Property Valuation As Decimal?

            <DataMember>
            Public Overridable Property K2KActivityStatus As String

            <DataMember>
            Public Overridable Property K2KMileage As Integer?

            <DataMember>
            Public Overridable Property Comments As Comments()

            <DataMember>
            Public Overridable Property UpdatedDate As String
        End Class

        <DataContract>
        Public Partial Class GetKey2keyDataResponse
            <DataMember>
            Public Overridable Property Code As String

            <DataMember>
            Public Overridable Property Message As String
        End Class
    End Namespace
End Namespace

VB.NET GetKey2keyDataRequest 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 /GetKey2keyData/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ContractNumber":"String","BPID":0,"AppointmentDate":"String","Offers":[{"OfferDescription":"String","ParityLeadType":"String","EquityFigure":0,"ParityFigure":0}],"EstimatedSettlement":0,"Valuation":0,"K2KActivityStatus":"String","K2KMileage":0,"Comments":[{"Comment":"String","Created":"\/Date(-62135596800000-0000)\/"}],"UpdatedDate":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Code":"String","Message":"String"}