Mercedes.Agency.Orchestration.API

<back to all web services

GetOrderDetailByGuidRequest

Order
Requires Authentication
The following routes are available for this service:
GET/v1/order/detail/{OrderGuid}Get Order by Guid
import Foundation
import ServiceStack

public class GetOrderDetailByGuidRequest : Codable
{
    public var orderGuid:String

    required public init(){}
}

public class GetOrderDetailByGuidResponse : Codable
{
    public var order:OrderDetailByGuid

    required public init(){}
}

public class OrderDetailByGuid : Codable
{
    public var guid:String
    public var backOrderReference:String
    public var reference:String
    public var agent:String
    public var vin:String
    public var Description:String
    public var imageUrl:String
    public var outrightPurchaseCorporation:String
    public var netPrice:String
    public var otrPrice:String
    public var actualPrice:String
    public var commissionNumber:String
    public var bodyStyle:String
    public var line:String
    public var engine:String
    public var transmission:String
    public var fuel:String
    public var colour:String
    public var upholstery:String
    public var package:String
    public var fullModelYearCode:String
    public var portArrivalDate:String
    public var productionDate:String
    public var personalisedOffer:[String] = []

    required public init(){}
}


Swift GetOrderDetailByGuidRequest 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.

GET /v1/order/detail/{OrderGuid} HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Order":{"Guid":"String","BackOrderReference":"String","Reference":"String","Agent":"String","Vin":"String","Description":"String","ImageUrl":"String","OutrightPurchaseCorporation":"String","NetPrice":"String","OtrPrice":"String","ActualPrice":"String","CommissionNumber":"String","BodyStyle":"String","Line":"String","Engine":"String","Transmission":"String","Fuel":"String","Colour":"String","Upholstery":"String","Package":"String","FullModelYearCode":"String","PortArrivalDate":"String","ProductionDate":"String","PersonalisedOffer":["String"]}}