Mercedes.Agency.Orchestration.API

<back to all web services

ValidateBackOrderBulkAllocationsRequest

Requires Authentication
The following routes are available for this service:
POST/v1/BackOrder/ValidateBulkAllocations
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.BackOrders
Imports Mercedes.Agency.Orchestration.API.Business.Poco
Imports Mercedes.Agency.API.Shared.POCO

Namespace Global

    Namespace Mercedes.Agency.API.Shared.POCO

        Public Partial Class BackOrderAllocation
            Public Overridable Property Row As Integer
            Public Overridable Property Comm As String
            Public Overridable Property BackOrder As String
        End Class

        Public Partial Class InvalidBackOrderAllocation
            Inherits BackOrderAllocation
            Public Overridable Property ValidationMessage As String
        End Class
    End Namespace

    Namespace Mercedes.Agency.Orchestration.API.Business.Poco

        Public Partial Class BackOrderBulkAllocationResponse
            Public Overridable Property Message As String
            Public Overridable Property Vehicles As BackOrderBulkAllocationVehicles
            Public Overridable Property Successful As Boolean
        End Class

        Public Partial Class BackOrderBulkAllocationVehicles
            Public Overridable Property TotalVehicles As Integer
            Public Overridable Property ValidVehicles As Integer
            Public Overridable Property WarningVehicles As Integer
            Public Overridable Property InvalidVehicles As Integer
            Public Overridable Property Valid As List(Of BackOrderAllocation) = New List(Of BackOrderAllocation)
            Public Overridable Property Warning As List(Of InvalidBackOrderAllocation) = New List(Of InvalidBackOrderAllocation)
            Public Overridable Property Invalid As List(Of InvalidBackOrderAllocation) = New List(Of InvalidBackOrderAllocation)
        End Class
    End Namespace

    Namespace Mercedes.Agency.Orchestration.API.ServiceModel.BackOrders

        Public Partial Class ValidateBackOrderBulkAllocationsRequest
        End Class
    End Namespace
End Namespace

VB.NET ValidateBackOrderBulkAllocationsRequest DTOs

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

HTTP + CSV

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

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

{}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Message":"One or more errors in file","Vehicles":{"TotalVehicles":3,"ValidVehicles":1,"WarningVehicles":1,"InvalidVehicles":1,"Valid":[{"Row":0,"Comm":"String","BackOrder":"String"}],"Warning":[{"ValidationMessage":"String","Row":0,"Comm":"String","BackOrder":"String"}],"Invalid":[{"ValidationMessage":"String","Row":0,"Comm":"String","BackOrder":"String"}]},"Successful":false}