Mercedes.Agency.Orchestration.API

<back to all web services

ValidateOutRightPurchaseRequest

OutrightPurchase
Requires Authentication
The following routes are available for this service:
POST/v1/outrightpurchase/validateValidate Outright Purchase
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.OutrightPurchases
Imports Mercedes.Agency.Orchestration.API.Clients.AgencyApi.Responses
Imports Mercedes.Agency.API.Shared.POCO

Namespace Global

    Namespace Mercedes.Agency.API.Shared.POCO

        Public Partial Class OutrightPurchaseDiscount
            Public Overridable Property BaumusterNST As String
            Public Overridable Property DiscountPercentage As Decimal
        End Class

        Public Partial Class OutrightPurchaseFleetCustomer
            Public Overridable Property CustomerIdentifier As String
            Public Overridable Property CompanyName As String
            Public Overridable Property Title As String
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property Email As String
            Public Overridable Property PhoneNumber As String
            Public Overridable Property HouseNumber As String
            Public Overridable Property AddressLine2 As String
            Public Overridable Property Town As String
            Public Overridable Property County As String
            Public Overridable Property PostCode As String
            Public Overridable Property OutrightPurchaseCustomerDiscounts As List(Of OutrightPurchaseDiscount) = New List(Of OutrightPurchaseDiscount)
            Public Overridable Property ImportSucessful As Boolean
            Public Overridable Property IsEligibleCOPConverter As Boolean
        End Class
    End Namespace

    Namespace Mercedes.Agency.Orchestration.API.Clients.AgencyApi.Responses

        Public Partial Class ValidateOutRightPurchaseResponse
            Public Overridable Property OutrightPurchaseFleetCustomer As OutrightPurchaseFleetCustomer
            Public Overridable Property IsBackOrder As Boolean?
        End Class
    End Namespace

    Namespace Mercedes.Agency.Orchestration.API.ServiceModel.OutrightPurchases

        Public Partial Class ValidateOutRightPurchaseRequest
            Inherits ValidateOutRightPurchaseRequest
            Implements IPost
        End Class
    End Namespace
End Namespace

VB.NET ValidateOutRightPurchaseRequest DTOs

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

HTTP + OTHER

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

POST /v1/outrightpurchase/validate HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Criteria":{"Reference":"String","Bm7NST":"String","IsBackOrder":false}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"OutrightPurchaseFleetCustomer":{"CustomerIdentifier":"String","CompanyName":"String","Title":"String","FirstName":"String","LastName":"String","Email":"String","PhoneNumber":"String","HouseNumber":"String","AddressLine2":"String","Town":"String","County":"String","PostCode":"String","OutrightPurchaseCustomerDiscounts":[{"BaumusterNST":"String","DiscountPercentage":0}],"ImportSucessful":false,"IsEligibleCOPConverter":false},"IsBackOrder":false}