| GET | /v1/order/customer/{CustomerId} | Get Order by Customer | Get Order by Customer |
|---|
"use strict";
export class Order {
/** @param {{Guid?:string,Reference?:string,Status?:number,CustomerId?:string,MulesoftReference?:string,GasId?:string,OrderDate?:string,OfferSnapShot?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {string} */
Reference;
/** @type {number} */
Status;
/** @type {string} */
CustomerId;
/** @type {string} */
MulesoftReference;
/** @type {string} */
GasId;
/** @type {string} */
OrderDate;
/** @type {string} */
OfferSnapShot;
}
export class OrderStatus {
/** @param {{Id?:number,Description?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {string} */
Description;
}
export class OnlineShowroomStatus {
/** @param {{Id?:number,Description?:string,Slug?:string,Current?:boolean,Completed?:boolean,OrderStatuses?:OrderStatus[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {string} */
Description;
/** @type {string} */
Slug;
/** @type {boolean} */
Current;
/** @type {boolean} */
Completed;
/** @type {OrderStatus[]} */
OrderStatuses = [];
}
export class RetailerOpeningTime {
/** @param {{Day?:string,OpenFrom?:string,OpenTo?:string,Special?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Day;
/** @type {string} */
OpenFrom;
/** @type {string} */
OpenTo;
/** @type {string} */
Special;
}
export class RetailerOpeningTimes {
/** @param {{New?:RetailerOpeningTime[],Used?:RetailerOpeningTime[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {RetailerOpeningTime[]} */
New = [];
/** @type {RetailerOpeningTime[]} */
Used = [];
}
export class Retailer {
/** @param {{Id?:number,GssnId?:string,Description?:string,Street?:string,City?:string,Postcode?:string,GoogleMapPostcode?:string,Phone?:string,Fax?:string,Email?:string,Website?:string,RetailerGroupId?:string,RetailerGroupName?:string,IsOnline?:boolean,IsNewCarRetailer?:boolean,IsUsedCarRetailer?:boolean,IsCentralRetailer?:boolean,ChatEnabled?:boolean,TradeInEnabled?:boolean,smart?:boolean,DisplayPhoneNumberNew?:string,DisplayPhoneNumberUsed?:string,Latitude?:number,Longitude?:number,smartDescription?:string,smartWebsite?:string,smartPhone?:string,LegacyId?:string,Agent?:boolean,MarketAreaId?:number,DigitalLoungeParentGssnId?:string,SendLeadsToDigitalLoungeParent?:boolean,OpeningTimes?:RetailerOpeningTimes}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {string} */
GssnId;
/** @type {string} */
Description;
/** @type {string} */
Street;
/** @type {string} */
City;
/** @type {string} */
Postcode;
/** @type {string} */
GoogleMapPostcode;
/** @type {string} */
Phone;
/** @type {string} */
Fax;
/** @type {string} */
Email;
/** @type {string} */
Website;
/** @type {string} */
RetailerGroupId;
/** @type {string} */
RetailerGroupName;
/** @type {boolean} */
IsOnline;
/** @type {boolean} */
IsNewCarRetailer;
/** @type {boolean} */
IsUsedCarRetailer;
/** @type {boolean} */
IsCentralRetailer;
/** @type {boolean} */
ChatEnabled;
/** @type {boolean} */
TradeInEnabled;
/** @type {boolean} */
smart;
/** @type {string} */
DisplayPhoneNumberNew;
/** @type {string} */
DisplayPhoneNumberUsed;
/** @type {number} */
Latitude;
/** @type {number} */
Longitude;
/** @type {string} */
smartDescription;
/** @type {string} */
smartWebsite;
/** @type {string} */
smartPhone;
/** @type {string} */
LegacyId;
/** @type {boolean} */
Agent;
/** @type {number} */
MarketAreaId;
/** @type {?string} */
DigitalLoungeParentGssnId;
/** @type {boolean} */
SendLeadsToDigitalLoungeParent;
/** @type {?RetailerOpeningTimes} */
OpeningTimes;
}
export class OnlineShowroomVehicle {
/** @param {{Vin?:string,VehicleClass?:string,TransmissionType?:string,FuelType?:string,ImageUrl?:string,Colour?:string,Description?:string,BodyStyle?:string,UpholsteryType?:string,Retailer?:Retailer,OTR?:number,ActualPrice?:number,TotalOfferValue?:number,NetPrice?:number,VehicleType?:string,OfferExpiryDate?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Vin;
/** @type {string} */
VehicleClass;
/** @type {string} */
TransmissionType;
/** @type {string} */
FuelType;
/** @type {string} */
ImageUrl;
/** @type {string} */
Colour;
/** @type {string} */
Description;
/** @type {string} */
BodyStyle;
/** @type {string} */
UpholsteryType;
/** @type {Retailer} */
Retailer;
/** @type {number} */
OTR;
/** @type {number} */
ActualPrice;
/** @type {number} */
TotalOfferValue;
/** @type {number} */
NetPrice;
/** @type {string} */
VehicleType;
/** @type {?string} */
OfferExpiryDate;
}
export class Payment {
/** @param {{PaymentType?:string,PaymentLink?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
PaymentType;
/** @type {string} */
PaymentLink;
}
export class Refund {
/** @param {{Name?:string,Amount?:string,PaymentType?:string,CreatedDate?:string,Status?:string,RefundMpayTransactionId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Name;
/** @type {string} */
Amount;
/** @type {string} */
PaymentType;
/** @type {string} */
CreatedDate;
/** @type {string} */
Status;
/** @type {string} */
RefundMpayTransactionId;
}
export class PaymentDetail {
/** @param {{Name?:string,MpayTransactionId?:string,MerchantReference?:string,PaymentMethod?:string,Amount?:string,NewConfirmedAmount?:string,PaymentType?:string,PaymentStatus?:string,RefundType?:string,PaymentLink?:string,CreatedDate?:string,DateTimePaymentConfirmed?:string,Refunds?:Refund[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Name;
/** @type {string} */
MpayTransactionId;
/** @type {string} */
MerchantReference;
/** @type {string} */
PaymentMethod;
/** @type {string} */
Amount;
/** @type {string} */
NewConfirmedAmount;
/** @type {string} */
PaymentType;
/** @type {string} */
PaymentStatus;
/** @type {string} */
RefundType;
/** @type {string} */
PaymentLink;
/** @type {string} */
CreatedDate;
/** @type {string} */
DateTimePaymentConfirmed;
/** @type {Refund[]} */
Refunds = [];
}
export class PaymentGroup {
/** @param {{OutstandingBalance?:string,Deposit?:string,PaymentsReceived?:string,AmountPaidByMercedesBenz?:string,Finance?:string,FinanceDepositContribution?:string,CombinedFinanceAndFDC?:string,CombinedFDCUVDReconciliationPayment?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
OutstandingBalance;
/** @type {string} */
Deposit;
/** @type {string} */
PaymentsReceived;
/** @type {string} */
AmountPaidByMercedesBenz;
/** @type {string} */
Finance;
/** @type {string} */
FinanceDepositContribution;
/** @type {string} */
CombinedFinanceAndFDC;
/** @type {string} */
CombinedFDCUVDReconciliationPayment;
}
export class OnlineShowroomOrder {
/** @param {{Guid?:string,Reference?:string,Status?:OnlineShowroomStatus[],Vehicle?:OnlineShowroomVehicle,ClosedDate?:string,CustomerId?:string,HandoverDate?:string,ClosedReason?:string,OrderDate?:string,PaymentLinks?:Payment[],PaymentDetails?:PaymentDetail[],PaymentGroups?:PaymentGroup[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {string} */
Reference;
/** @type {OnlineShowroomStatus[]} */
Status = [];
/** @type {OnlineShowroomVehicle} */
Vehicle;
/** @type {string} */
ClosedDate;
/** @type {string} */
CustomerId;
/** @type {string} */
HandoverDate;
/** @type {string} */
ClosedReason;
/** @type {string} */
OrderDate;
/** @type {Payment[]} */
PaymentLinks = [];
/** @type {PaymentDetail[]} */
PaymentDetails = [];
/** @type {PaymentGroup[]} */
PaymentGroups = [];
}
export class GetOrderCustomerResponse {
/** @param {{Orders?:Order[],Completed?:OnlineShowroomOrder[],Cancelled?:OnlineShowroomOrder[],InProgress?:OnlineShowroomOrder[],Archived?:OnlineShowroomOrder[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {Order[]} */
Orders = [];
/** @type {OnlineShowroomOrder[]} */
Completed = [];
/** @type {OnlineShowroomOrder[]} */
Cancelled = [];
/** @type {OnlineShowroomOrder[]} */
InProgress = [];
/** @type {OnlineShowroomOrder[]} */
Archived = [];
}
export class GetOrderCustomerRequest {
/** @param {{CustomerId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
CustomerId;
}
JavaScript GetOrderCustomerRequest 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/customer/{CustomerId} 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
{
Orders:
[
{
Guid: 00000000000000000000000000000000,
Reference: String,
Status: 0,
CustomerId: String,
MulesoftReference: String,
GasId: String,
OrderDate: String,
OfferSnapShot: String
}
],
Completed:
[
{
Guid: 00000000000000000000000000000000,
Reference: String,
Status:
[
{
Id: 0,
Description: String,
Slug: String,
Current: False,
Completed: False,
OrderStatuses:
[
{
Id: 0,
Description: String
}
]
}
],
Vehicle:
{
Vin: String,
VehicleClass: String,
TransmissionType: String,
FuelType: String,
ImageUrl: String,
Colour: String,
Description: String,
BodyStyle: String,
UpholsteryType: String,
Retailer:
{
Id: 0,
GssnId: String,
Description: String,
Street: String,
City: String,
Postcode: String,
GoogleMapPostcode: String,
Phone: String,
Fax: String,
Email: String,
Website: String,
RetailerGroupId: String,
RetailerGroupName: String,
IsOnline: False,
IsNewCarRetailer: False,
IsUsedCarRetailer: False,
IsCentralRetailer: False,
ChatEnabled: False,
TradeInEnabled: False,
smart: False,
DisplayPhoneNumberNew: String,
DisplayPhoneNumberUsed: String,
Latitude: 0,
Longitude: 0,
smartDescription: String,
smartWebsite: String,
smartPhone: String,
LegacyId: String,
Agent: False,
MarketAreaId: 0,
DigitalLoungeParentGssnId: String,
SendLeadsToDigitalLoungeParent: False,
OpeningTimes:
{
New:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
],
Used:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
]
}
},
OTR: 0,
ActualPrice: 0,
TotalOfferValue: 0,
NetPrice: 0,
VehicleType: String,
OfferExpiryDate: String
},
ClosedDate: String,
CustomerId: String,
HandoverDate: String,
ClosedReason: String,
OrderDate: String,
PaymentLinks:
[
{
PaymentType: String,
PaymentLink: String
}
],
PaymentDetails:
[
{
Name: String,
MpayTransactionId: String,
MerchantReference: String,
PaymentMethod: String,
Amount: String,
NewConfirmedAmount: String,
PaymentType: String,
PaymentStatus: String,
RefundType: String,
PaymentLink: String,
CreatedDate: String,
DateTimePaymentConfirmed: String,
Refunds:
[
{
Name: String,
Amount: String,
PaymentType: String,
CreatedDate: String,
Status: String,
RefundMpayTransactionId: String
}
]
}
],
PaymentGroups:
[
{
OutstandingBalance: String,
Deposit: String,
PaymentsReceived: String,
AmountPaidByMercedesBenz: String,
Finance: String,
FinanceDepositContribution: String,
CombinedFinanceAndFDC: String,
CombinedFDCUVDReconciliationPayment: String
}
]
}
],
Cancelled:
[
{
Guid: 00000000000000000000000000000000,
Reference: String,
Status:
[
{
Id: 0,
Description: String,
Slug: String,
Current: False,
Completed: False,
OrderStatuses:
[
{
Id: 0,
Description: String
}
]
}
],
Vehicle:
{
Vin: String,
VehicleClass: String,
TransmissionType: String,
FuelType: String,
ImageUrl: String,
Colour: String,
Description: String,
BodyStyle: String,
UpholsteryType: String,
Retailer:
{
Id: 0,
GssnId: String,
Description: String,
Street: String,
City: String,
Postcode: String,
GoogleMapPostcode: String,
Phone: String,
Fax: String,
Email: String,
Website: String,
RetailerGroupId: String,
RetailerGroupName: String,
IsOnline: False,
IsNewCarRetailer: False,
IsUsedCarRetailer: False,
IsCentralRetailer: False,
ChatEnabled: False,
TradeInEnabled: False,
smart: False,
DisplayPhoneNumberNew: String,
DisplayPhoneNumberUsed: String,
Latitude: 0,
Longitude: 0,
smartDescription: String,
smartWebsite: String,
smartPhone: String,
LegacyId: String,
Agent: False,
MarketAreaId: 0,
DigitalLoungeParentGssnId: String,
SendLeadsToDigitalLoungeParent: False,
OpeningTimes:
{
New:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
],
Used:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
]
}
},
OTR: 0,
ActualPrice: 0,
TotalOfferValue: 0,
NetPrice: 0,
VehicleType: String,
OfferExpiryDate: String
},
ClosedDate: String,
CustomerId: String,
HandoverDate: String,
ClosedReason: String,
OrderDate: String,
PaymentLinks:
[
{
PaymentType: String,
PaymentLink: String
}
],
PaymentDetails:
[
{
Name: String,
MpayTransactionId: String,
MerchantReference: String,
PaymentMethod: String,
Amount: String,
NewConfirmedAmount: String,
PaymentType: String,
PaymentStatus: String,
RefundType: String,
PaymentLink: String,
CreatedDate: String,
DateTimePaymentConfirmed: String,
Refunds:
[
{
Name: String,
Amount: String,
PaymentType: String,
CreatedDate: String,
Status: String,
RefundMpayTransactionId: String
}
]
}
],
PaymentGroups:
[
{
OutstandingBalance: String,
Deposit: String,
PaymentsReceived: String,
AmountPaidByMercedesBenz: String,
Finance: String,
FinanceDepositContribution: String,
CombinedFinanceAndFDC: String,
CombinedFDCUVDReconciliationPayment: String
}
]
}
],
InProgress:
[
{
Guid: 00000000000000000000000000000000,
Reference: String,
Status:
[
{
Id: 0,
Description: String,
Slug: String,
Current: False,
Completed: False,
OrderStatuses:
[
{
Id: 0,
Description: String
}
]
}
],
Vehicle:
{
Vin: String,
VehicleClass: String,
TransmissionType: String,
FuelType: String,
ImageUrl: String,
Colour: String,
Description: String,
BodyStyle: String,
UpholsteryType: String,
Retailer:
{
Id: 0,
GssnId: String,
Description: String,
Street: String,
City: String,
Postcode: String,
GoogleMapPostcode: String,
Phone: String,
Fax: String,
Email: String,
Website: String,
RetailerGroupId: String,
RetailerGroupName: String,
IsOnline: False,
IsNewCarRetailer: False,
IsUsedCarRetailer: False,
IsCentralRetailer: False,
ChatEnabled: False,
TradeInEnabled: False,
smart: False,
DisplayPhoneNumberNew: String,
DisplayPhoneNumberUsed: String,
Latitude: 0,
Longitude: 0,
smartDescription: String,
smartWebsite: String,
smartPhone: String,
LegacyId: String,
Agent: False,
MarketAreaId: 0,
DigitalLoungeParentGssnId: String,
SendLeadsToDigitalLoungeParent: False,
OpeningTimes:
{
New:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
],
Used:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
]
}
},
OTR: 0,
ActualPrice: 0,
TotalOfferValue: 0,
NetPrice: 0,
VehicleType: String,
OfferExpiryDate: String
},
ClosedDate: String,
CustomerId: String,
HandoverDate: String,
ClosedReason: String,
OrderDate: String,
PaymentLinks:
[
{
PaymentType: String,
PaymentLink: String
}
],
PaymentDetails:
[
{
Name: String,
MpayTransactionId: String,
MerchantReference: String,
PaymentMethod: String,
Amount: String,
NewConfirmedAmount: String,
PaymentType: String,
PaymentStatus: String,
RefundType: String,
PaymentLink: String,
CreatedDate: String,
DateTimePaymentConfirmed: String,
Refunds:
[
{
Name: String,
Amount: String,
PaymentType: String,
CreatedDate: String,
Status: String,
RefundMpayTransactionId: String
}
]
}
],
PaymentGroups:
[
{
OutstandingBalance: String,
Deposit: String,
PaymentsReceived: String,
AmountPaidByMercedesBenz: String,
Finance: String,
FinanceDepositContribution: String,
CombinedFinanceAndFDC: String,
CombinedFDCUVDReconciliationPayment: String
}
]
}
],
Archived:
[
{
Guid: 00000000000000000000000000000000,
Reference: String,
Status:
[
{
Id: 0,
Description: String,
Slug: String,
Current: False,
Completed: False,
OrderStatuses:
[
{
Id: 0,
Description: String
}
]
}
],
Vehicle:
{
Vin: String,
VehicleClass: String,
TransmissionType: String,
FuelType: String,
ImageUrl: String,
Colour: String,
Description: String,
BodyStyle: String,
UpholsteryType: String,
Retailer:
{
Id: 0,
GssnId: String,
Description: String,
Street: String,
City: String,
Postcode: String,
GoogleMapPostcode: String,
Phone: String,
Fax: String,
Email: String,
Website: String,
RetailerGroupId: String,
RetailerGroupName: String,
IsOnline: False,
IsNewCarRetailer: False,
IsUsedCarRetailer: False,
IsCentralRetailer: False,
ChatEnabled: False,
TradeInEnabled: False,
smart: False,
DisplayPhoneNumberNew: String,
DisplayPhoneNumberUsed: String,
Latitude: 0,
Longitude: 0,
smartDescription: String,
smartWebsite: String,
smartPhone: String,
LegacyId: String,
Agent: False,
MarketAreaId: 0,
DigitalLoungeParentGssnId: String,
SendLeadsToDigitalLoungeParent: False,
OpeningTimes:
{
New:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
],
Used:
[
{
Day: String,
OpenFrom: String,
OpenTo: String,
Special: String
}
]
}
},
OTR: 0,
ActualPrice: 0,
TotalOfferValue: 0,
NetPrice: 0,
VehicleType: String,
OfferExpiryDate: String
},
ClosedDate: String,
CustomerId: String,
HandoverDate: String,
ClosedReason: String,
OrderDate: String,
PaymentLinks:
[
{
PaymentType: String,
PaymentLink: String
}
],
PaymentDetails:
[
{
Name: String,
MpayTransactionId: String,
MerchantReference: String,
PaymentMethod: String,
Amount: String,
NewConfirmedAmount: String,
PaymentType: String,
PaymentStatus: String,
RefundType: String,
PaymentLink: String,
CreatedDate: String,
DateTimePaymentConfirmed: String,
Refunds:
[
{
Name: String,
Amount: String,
PaymentType: String,
CreatedDate: String,
Status: String,
RefundMpayTransactionId: String
}
]
}
],
PaymentGroups:
[
{
OutstandingBalance: String,
Deposit: String,
PaymentsReceived: String,
AmountPaidByMercedesBenz: String,
Finance: String,
FinanceDepositContribution: String,
CombinedFinanceAndFDC: String,
CombinedFDCUVDReconciliationPayment: String
}
]
}
]
}