| GET | /v1/order/detail/{OrderGuid} | Get Order by Guid | Get Order by Guid |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetOrderDetailByGuidRequest:
order_guid: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class OrderDetailByGuid:
guid: Optional[str] = None
back_order_reference: Optional[str] = None
reference: Optional[str] = None
agent: Optional[str] = None
vin: Optional[str] = None
description: Optional[str] = None
image_url: Optional[str] = None
outright_purchase_corporation: Optional[str] = None
net_price: Optional[str] = None
otr_price: Optional[str] = None
actual_price: Optional[str] = None
commission_number: Optional[str] = None
body_style: Optional[str] = None
line: Optional[str] = None
engine: Optional[str] = None
transmission: Optional[str] = None
fuel: Optional[str] = None
colour: Optional[str] = None
upholstery: Optional[str] = None
package: Optional[str] = None
full_model_year_code: Optional[str] = None
port_arrival_date: Optional[str] = None
production_date: Optional[str] = None
personalised_offer: List[str] = field(default_factory=list)
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetOrderDetailByGuidResponse:
order: Optional[OrderDetailByGuid] = None
Python GetOrderDetailByGuidRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
]
}
}