| PUT | /CreateOCA/ |
|---|
"use strict";
export class CreateOCARequestResponse {
/** @param {{Code?:string,Message?:string,URN?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Code;
/** @type {string} */
Message;
/** @type {number} */
URN;
}
export class GeneralDetails {
/** @param {{OCAApprovalNumber?:string,EnquiryDateTime?:string,Brand?:number,CustomerReferenceNumber?:string,CustomerType?:string,SourceofBusiness?:string,TagURL?:string,RequestSource?:number,FormID?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
OCAApprovalNumber;
/** @type {string} */
EnquiryDateTime;
/** @type {number} */
Brand;
/** @type {string} */
CustomerReferenceNumber;
/** @type {string} */
CustomerType;
/** @type {string} */
SourceofBusiness;
/** @type {string} */
TagURL;
/** @type {number} */
RequestSource;
/** @type {string} */
FormID;
}
export class FinanceDetails {
/** @param {{FinancialProduct?:string,Duration?:number,PaymentRentalAmount?:number,AnnualMileage?:number,ExcessMileageRate?:number,CustomerDepositContribution?:number,RetailerDepositContribution?:number,ManufacturerDepositContribution?:number,TotalDepositContribution?:number,CostForCredit?:number,PurchaseActivationFee?:number,TotalAmountPayable?:number,FixedInterestRate?:number,RepresentativeAPR?:number,OptionalPurchasePayment?:number,AdvancedRentalAmount?:number,PaymentProfile?:string,RandMIncluded?:string,RandMLevel?:string,ProductType?:string,Frequency?:string,PauseType?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
FinancialProduct;
/** @type {number} */
Duration;
/** @type {number} */
PaymentRentalAmount;
/** @type {number} */
AnnualMileage;
/** @type {number} */
ExcessMileageRate;
/** @type {?number} */
CustomerDepositContribution;
/** @type {?number} */
RetailerDepositContribution;
/** @type {?number} */
ManufacturerDepositContribution;
/** @type {?number} */
TotalDepositContribution;
/** @type {?number} */
CostForCredit;
/** @type {?number} */
PurchaseActivationFee;
/** @type {?number} */
TotalAmountPayable;
/** @type {?number} */
FixedInterestRate;
/** @type {?number} */
RepresentativeAPR;
/** @type {?number} */
OptionalPurchasePayment;
/** @type {number} */
AdvancedRentalAmount;
/** @type {string} */
PaymentProfile;
/** @type {string} */
RandMIncluded;
/** @type {string} */
RandMLevel;
/** @type {string} */
ProductType;
/** @type {string} */
Frequency;
/** @type {string} */
PauseType;
}
export class ModelOptionDetails {
/** @param {{Seq?:number,Code?:string,Description?:string,Price?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Seq;
/** @type {string} */
Code;
/** @type {string} */
Description;
/** @type {number} */
Price;
}
export class VehicleDetails {
/** @param {{OnlineCode?:string,ModelClass?:string,ModelBody?:string,ModelDerivative?:string,TotalPrice?:number,OTRPrice?:number,VIN?:string,RegNo?:string,CurrentMileage?:number,FirstRegistrationDate?:string,NewUsedFlag?:string,NewVehicleModelOptionDetails?:ModelOptionDetails[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
OnlineCode;
/** @type {string} */
ModelClass;
/** @type {string} */
ModelBody;
/** @type {string} */
ModelDerivative;
/** @type {number} */
TotalPrice;
/** @type {number} */
OTRPrice;
/** @type {string} */
VIN;
/** @type {string} */
RegNo;
/** @type {number} */
CurrentMileage;
/** @type {string} */
FirstRegistrationDate;
/** @type {string} */
NewUsedFlag;
/** @type {ModelOptionDetails[]} */
NewVehicleModelOptionDetails;
}
export class DeliveryDetails {
/** @param {{DealerCode?:string,DeliveryPreference?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
DealerCode;
/** @type {string} */
DeliveryPreference;
}
export class ExistingVehicleDetails {
/** @param {{TradeInFlag?:string,TradeInValue?:number,TradeInRegNo?:string,SettlementFlag?:string,SettlementValue?:number,SettlementRegNo?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
TradeInFlag;
/** @type {number} */
TradeInValue;
/** @type {string} */
TradeInRegNo;
/** @type {string} */
SettlementFlag;
/** @type {number} */
SettlementValue;
/** @type {string} */
SettlementRegNo;
}
export class AddressWithTimeLine {
/** @param {{AddressLine1?:string,AddressLine2?:string,AddressLine3?:string,Town?:string,County?:string,Country?:string,Postcode?:string,Duration?:string,DateStarted?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
AddressLine1;
/** @type {string} */
AddressLine2;
/** @type {string} */
AddressLine3;
/** @type {string} */
Town;
/** @type {string} */
County;
/** @type {string} */
Country;
/** @type {string} */
Postcode;
/** @type {string} */
Duration;
/** @type {string} */
DateStarted;
}
export class PreviousAddress {
/** @param {{Seq?:number,Address?:AddressWithTimeLine}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Seq;
/** @type {AddressWithTimeLine} */
Address;
}
export class Address {
/** @param {{AddressLine1?:string,AddressLine2?:string,AddressLine3?:string,AddressLine4?:string,AddressLine5?:string,Postcode?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
AddressLine1;
/** @type {string} */
AddressLine2;
/** @type {string} */
AddressLine3;
/** @type {string} */
AddressLine4;
/** @type {string} */
AddressLine5;
/** @type {string} */
Postcode;
}
export class EmployerDetails {
/** @param {{EmploymentType?:string,EmployersName?:string,Occupation?:string,EmployersAddress?:AddressWithTimeLine}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
EmploymentType;
/** @type {string} */
EmployersName;
/** @type {string} */
Occupation;
/** @type {AddressWithTimeLine} */
EmployersAddress;
}
export class CurrentEmploymentDetails {
/** @param {{EmployerDetails?:EmployerDetails,MonthsAtEmployer?:string,DateEmploymentCommenced?:string,AnnualIncome?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {EmployerDetails} */
EmployerDetails;
/** @type {string} */
MonthsAtEmployer;
/** @type {string} */
DateEmploymentCommenced;
/** @type {string} */
AnnualIncome;
}
export class PreviousEmployment {
/** @param {{Seq?:number,previousEmployment?:EmployerDetails}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Seq;
/** @type {EmployerDetails} */
previousEmployment;
}
export class CreditApplicationIndividual {
/** @param {{Title?:string,Initial?:string,FirstName?:string,Surname?:string,DateofBirth?:string,Gender?:string,MaritalStatus?:string,ResidentialStatus?:string,CurrentAddress?:AddressWithTimeLine,PreviousAddresses?:PreviousAddress[],HomePhone?:string,MobilePhone?:string,WorkPhone?:string,Email?:string,BankSortCode?:string,BankAccountNumber?:string,BankAccountName?:string,BankName?:string,BankAddress?:Address,DoNotEmail?:string,DoNotMail?:string,DoNotPhone?:string,DoNotSMS?:string,DrivingLicenceNumber?:string,CurrentEmploymentDetails?:CurrentEmploymentDetails,PreviousEmploymentDetails?:PreviousEmployment[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Title;
/** @type {string} */
Initial;
/** @type {string} */
FirstName;
/** @type {string} */
Surname;
/** @type {string} */
DateofBirth;
/** @type {string} */
Gender;
/** @type {string} */
MaritalStatus;
/** @type {string} */
ResidentialStatus;
/** @type {AddressWithTimeLine} */
CurrentAddress;
/** @type {PreviousAddress[]} */
PreviousAddresses;
/** @type {string} */
HomePhone;
/** @type {string} */
MobilePhone;
/** @type {string} */
WorkPhone;
/** @type {string} */
Email;
/** @type {string} */
BankSortCode;
/** @type {string} */
BankAccountNumber;
/** @type {string} */
BankAccountName;
/** @type {string} */
BankName;
/** @type {Address} */
BankAddress;
/** @type {string} */
DoNotEmail;
/** @type {string} */
DoNotMail;
/** @type {string} */
DoNotPhone;
/** @type {string} */
DoNotSMS;
/** @type {string} */
DrivingLicenceNumber;
/** @type {CurrentEmploymentDetails} */
CurrentEmploymentDetails;
/** @type {PreviousEmployment[]} */
PreviousEmploymentDetails;
}
export class BusinessPartner {
/** @param {{Seq?:number,Title?:string,Initial?:string,FirstName?:string,Surname?:string,DateofBirth?:string,Gender?:string,MaritalStatus?:string,ResidentialStatus?:string,CurrentAddress?:AddressWithTimeLine,PreviousAddresses?:PreviousAddress[],HomePhone?:string,MobilePhone?:string,BusinessPhone?:string,Relationship?:string,Email?:string,CurrentEmploymentDetails?:CurrentEmploymentDetails,PreviousEmploymentDetails?:PreviousEmployment[],PartnerType?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Seq;
/** @type {string} */
Title;
/** @type {string} */
Initial;
/** @type {string} */
FirstName;
/** @type {string} */
Surname;
/** @type {string} */
DateofBirth;
/** @type {string} */
Gender;
/** @type {string} */
MaritalStatus;
/** @type {string} */
ResidentialStatus;
/** @type {AddressWithTimeLine} */
CurrentAddress;
/** @type {PreviousAddress[]} */
PreviousAddresses;
/** @type {string} */
HomePhone;
/** @type {string} */
MobilePhone;
/** @type {string} */
BusinessPhone;
/** @type {string} */
Relationship;
/** @type {string} */
Email;
/** @type {CurrentEmploymentDetails} */
CurrentEmploymentDetails;
/** @type {PreviousEmployment[]} */
PreviousEmploymentDetails;
/** @type {string} */
PartnerType;
}
export class CreditApplicationBusiness {
/** @param {{TypeOfBusiness?:string,BusinessContactPosition?:string,Title?:string,Initial?:string,FirstName?:string,Surname?:string,CurrentHomeAddress?:AddressWithTimeLine,HomePhone?:string,WorkPhone?:string,MobilePhone?:string,Email?:string,DoNotEmail?:string,DoNotMail?:string,DoNotPhone?:string,DoNotSMS?:string,CompanyName?:string,CompanyRegistrationNumber?:string,TradingAs?:string,BusinessActivity?:string,NumberOfEmployees?:number,YearsTrading?:number,Position?:string,BankSortCode?:string,BankAccountNumber?:string,BankAccountName?:string,BankName?:string,BankAddress?:Address,NumberofPartners?:number,BusinessPartners?:BusinessPartner[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
TypeOfBusiness;
/** @type {string} */
BusinessContactPosition;
/** @type {string} */
Title;
/** @type {string} */
Initial;
/** @type {string} */
FirstName;
/** @type {string} */
Surname;
/** @type {AddressWithTimeLine} */
CurrentHomeAddress;
/** @type {string} */
HomePhone;
/** @type {string} */
WorkPhone;
/** @type {string} */
MobilePhone;
/** @type {string} */
Email;
/** @type {string} */
DoNotEmail;
/** @type {string} */
DoNotMail;
/** @type {string} */
DoNotPhone;
/** @type {string} */
DoNotSMS;
/** @type {string} */
CompanyName;
/** @type {string} */
CompanyRegistrationNumber;
/** @type {string} */
TradingAs;
/** @type {string} */
BusinessActivity;
/** @type {number} */
NumberOfEmployees;
/** @type {number} */
YearsTrading;
/** @type {string} */
Position;
/** @type {string} */
BankSortCode;
/** @type {string} */
BankAccountNumber;
/** @type {string} */
BankAccountName;
/** @type {string} */
BankName;
/** @type {Address} */
BankAddress;
/** @type {number} */
NumberofPartners;
/** @type {BusinessPartner[]} */
BusinessPartners;
}
export class PaymentDetail {
/** @param {{Seq?:number,PaymentType?:string,AmountPaid?:number,PaymentTransactionID?:string,Description?:string,PaymentDateTime?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Seq;
/** @type {string} */
PaymentType;
/** @type {number} */
AmountPaid;
/** @type {string} */
PaymentTransactionID;
/** @type {string} */
Description;
/** @type {string} */
PaymentDateTime;
}
export class PaymentDetails {
/** @param {{paymentDetails?:PaymentDetail[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {PaymentDetail[]} */
paymentDetails;
}
export class DiPReasons {
/** @param {{DipReasonSeq?:number,DipDecisionCode?:string,DiPDecisionReason?:string,DiPDealerMessage?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
DipReasonSeq;
/** @type {string} */
DipDecisionCode;
/** @type {string} */
DiPDecisionReason;
/** @type {string} */
DiPDealerMessage;
}
export class DiPDetails {
/** @param {{DiPCustomerId?:string,DiPTimestamp?:string,DiPRequestID?:string,DiPDecisionType?:string,DiPPrimaryDecisionCode?:string,DiPDecisionDescription?:string,DipDecisionDescriptionCode?:string,DipPrimaryDecisionReason?:string,DiPPrimaryDecisionReasonDealerMessage?:string,diPReasons?:DiPReasons[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
DiPCustomerId;
/** @type {string} */
DiPTimestamp;
/** @type {string} */
DiPRequestID;
/** @type {string} */
DiPDecisionType;
/** @type {string} */
DiPPrimaryDecisionCode;
/** @type {string} */
DiPDecisionDescription;
/** @type {string} */
DipDecisionDescriptionCode;
/** @type {string} */
DipPrimaryDecisionReason;
/** @type {string} */
DiPPrimaryDecisionReasonDealerMessage;
/** @type {DiPReasons[]} */
diPReasons;
}
export class CreateOCARequest {
/** @param {{Username?:string,Timestamp?:string,Token?:string,GeneralDetails?:GeneralDetails,FinanceDetails?:FinanceDetails,VehicleDetails?:VehicleDetails,DeliveryDetails?:DeliveryDetails,ExistingVehicleDetails?:ExistingVehicleDetails,CreditApplicationIndividual?:CreditApplicationIndividual,CreditApplicationBusiness?:CreditApplicationBusiness,PaymentDetails?:PaymentDetails,DiPDetails?:DiPDetails}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Username;
/** @type {string} */
Timestamp;
/** @type {string} */
Token;
/** @type {GeneralDetails} */
GeneralDetails;
/** @type {FinanceDetails} */
FinanceDetails;
/** @type {VehicleDetails} */
VehicleDetails;
/** @type {DeliveryDetails} */
DeliveryDetails;
/** @type {ExistingVehicleDetails} */
ExistingVehicleDetails;
/** @type {CreditApplicationIndividual} */
CreditApplicationIndividual;
/** @type {CreditApplicationBusiness} */
CreditApplicationBusiness;
/** @type {PaymentDetails} */
PaymentDetails;
/** @type {DiPDetails} */
DiPDetails;
}
JavaScript CreateOCARequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /CreateOCA/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CreateOCARequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<CreditApplicationBusiness xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBOnlineCreditApplicationService.BusinessLib.DomainClasses">
<d2p1:BankAccountName>String</d2p1:BankAccountName>
<d2p1:BankAccountNumber>String</d2p1:BankAccountNumber>
<d2p1:BankAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:AddressLine4>String</d2p1:AddressLine4>
<d2p1:AddressLine5>String</d2p1:AddressLine5>
<d2p1:Postcode>String</d2p1:Postcode>
</d2p1:BankAddress>
<d2p1:BankName>String</d2p1:BankName>
<d2p1:BankSortCode>String</d2p1:BankSortCode>
<d2p1:BusinessActivity>String</d2p1:BusinessActivity>
<d2p1:BusinessContactPosition>String</d2p1:BusinessContactPosition>
<d2p1:BusinessPartners>
<d2p1:BusinessPartner>
<d2p1:BusinessPhone>String</d2p1:BusinessPhone>
<d2p1:CurrentAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:Country>String</d2p1:Country>
<d2p1:County>String</d2p1:County>
<d2p1:DateStarted>String</d2p1:DateStarted>
<d2p1:Duration>String</d2p1:Duration>
<d2p1:Postcode>String</d2p1:Postcode>
<d2p1:Town>String</d2p1:Town>
</d2p1:CurrentAddress>
<d2p1:CurrentEmploymentDetails>
<d2p1:AnnualIncome>String</d2p1:AnnualIncome>
<d2p1:DateEmploymentCommenced>String</d2p1:DateEmploymentCommenced>
<d2p1:EmployerDetails>
<d2p1:EmployersAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:Country>String</d2p1:Country>
<d2p1:County>String</d2p1:County>
<d2p1:DateStarted>String</d2p1:DateStarted>
<d2p1:Duration>String</d2p1:Duration>
<d2p1:Postcode>String</d2p1:Postcode>
<d2p1:Town>String</d2p1:Town>
</d2p1:EmployersAddress>
<d2p1:EmployersName>String</d2p1:EmployersName>
<d2p1:EmploymentType>String</d2p1:EmploymentType>
<d2p1:Occupation>String</d2p1:Occupation>
</d2p1:EmployerDetails>
<d2p1:MonthsAtEmployer>String</d2p1:MonthsAtEmployer>
</d2p1:CurrentEmploymentDetails>
<d2p1:DateofBirth>String</d2p1:DateofBirth>
<d2p1:Email>String</d2p1:Email>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:Gender>String</d2p1:Gender>
<d2p1:HomePhone>String</d2p1:HomePhone>
<d2p1:Initial>String</d2p1:Initial>
<d2p1:MaritalStatus>String</d2p1:MaritalStatus>
<d2p1:MobilePhone>String</d2p1:MobilePhone>
<d2p1:PartnerType>String</d2p1:PartnerType>
<d2p1:PreviousAddresses>
<d2p1:PreviousAddress>
<d2p1:Address>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:Country>String</d2p1:Country>
<d2p1:County>String</d2p1:County>
<d2p1:DateStarted>String</d2p1:DateStarted>
<d2p1:Duration>String</d2p1:Duration>
<d2p1:Postcode>String</d2p1:Postcode>
<d2p1:Town>String</d2p1:Town>
</d2p1:Address>
<d2p1:Seq>0</d2p1:Seq>
</d2p1:PreviousAddress>
</d2p1:PreviousAddresses>
<d2p1:PreviousEmploymentDetails>
<d2p1:PreviousEmployment>
<d2p1:Seq>0</d2p1:Seq>
<d2p1:previousEmployment>
<d2p1:EmployersAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:Country>String</d2p1:Country>
<d2p1:County>String</d2p1:County>
<d2p1:DateStarted>String</d2p1:DateStarted>
<d2p1:Duration>String</d2p1:Duration>
<d2p1:Postcode>String</d2p1:Postcode>
<d2p1:Town>String</d2p1:Town>
</d2p1:EmployersAddress>
<d2p1:EmployersName>String</d2p1:EmployersName>
<d2p1:EmploymentType>String</d2p1:EmploymentType>
<d2p1:Occupation>String</d2p1:Occupation>
</d2p1:previousEmployment>
</d2p1:PreviousEmployment>
</d2p1:PreviousEmploymentDetails>
<d2p1:Relationship>String</d2p1:Relationship>
<d2p1:ResidentialStatus>String</d2p1:ResidentialStatus>
<d2p1:Seq>0</d2p1:Seq>
<d2p1:Surname>String</d2p1:Surname>
<d2p1:Title>String</d2p1:Title>
</d2p1:BusinessPartner>
</d2p1:BusinessPartners>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:CompanyRegistrationNumber>String</d2p1:CompanyRegistrationNumber>
<d2p1:CurrentHomeAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:Country>String</d2p1:Country>
<d2p1:County>String</d2p1:County>
<d2p1:DateStarted>String</d2p1:DateStarted>
<d2p1:Duration>String</d2p1:Duration>
<d2p1:Postcode>String</d2p1:Postcode>
<d2p1:Town>String</d2p1:Town>
</d2p1:CurrentHomeAddress>
<d2p1:DoNotEmail>String</d2p1:DoNotEmail>
<d2p1:DoNotMail>String</d2p1:DoNotMail>
<d2p1:DoNotPhone>String</d2p1:DoNotPhone>
<d2p1:DoNotSMS>String</d2p1:DoNotSMS>
<d2p1:Email>String</d2p1:Email>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:HomePhone>String</d2p1:HomePhone>
<d2p1:Initial>String</d2p1:Initial>
<d2p1:MobilePhone>String</d2p1:MobilePhone>
<d2p1:NumberOfEmployees>0</d2p1:NumberOfEmployees>
<d2p1:NumberofPartners>0</d2p1:NumberofPartners>
<d2p1:Position>String</d2p1:Position>
<d2p1:Surname>String</d2p1:Surname>
<d2p1:Title>String</d2p1:Title>
<d2p1:TradingAs>String</d2p1:TradingAs>
<d2p1:TypeOfBusiness>String</d2p1:TypeOfBusiness>
<d2p1:WorkPhone>String</d2p1:WorkPhone>
<d2p1:YearsTrading>0</d2p1:YearsTrading>
</CreditApplicationBusiness>
<CreditApplicationIndividual xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBOnlineCreditApplicationService.BusinessLib.DomainClasses">
<d2p1:BankAccountName>String</d2p1:BankAccountName>
<d2p1:BankAccountNumber>String</d2p1:BankAccountNumber>
<d2p1:BankAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:AddressLine4>String</d2p1:AddressLine4>
<d2p1:AddressLine5>String</d2p1:AddressLine5>
<d2p1:Postcode>String</d2p1:Postcode>
</d2p1:BankAddress>
<d2p1:BankName>String</d2p1:BankName>
<d2p1:BankSortCode>String</d2p1:BankSortCode>
<d2p1:CurrentAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:Country>String</d2p1:Country>
<d2p1:County>String</d2p1:County>
<d2p1:DateStarted>String</d2p1:DateStarted>
<d2p1:Duration>String</d2p1:Duration>
<d2p1:Postcode>String</d2p1:Postcode>
<d2p1:Town>String</d2p1:Town>
</d2p1:CurrentAddress>
<d2p1:CurrentEmploymentDetails>
<d2p1:AnnualIncome>String</d2p1:AnnualIncome>
<d2p1:DateEmploymentCommenced>String</d2p1:DateEmploymentCommenced>
<d2p1:EmployerDetails>
<d2p1:EmployersAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:Country>String</d2p1:Country>
<d2p1:County>String</d2p1:County>
<d2p1:DateStarted>String</d2p1:DateStarted>
<d2p1:Duration>String</d2p1:Duration>
<d2p1:Postcode>String</d2p1:Postcode>
<d2p1:Town>String</d2p1:Town>
</d2p1:EmployersAddress>
<d2p1:EmployersName>String</d2p1:EmployersName>
<d2p1:EmploymentType>String</d2p1:EmploymentType>
<d2p1:Occupation>String</d2p1:Occupation>
</d2p1:EmployerDetails>
<d2p1:MonthsAtEmployer>String</d2p1:MonthsAtEmployer>
</d2p1:CurrentEmploymentDetails>
<d2p1:DateofBirth>String</d2p1:DateofBirth>
<d2p1:DoNotEmail>String</d2p1:DoNotEmail>
<d2p1:DoNotMail>String</d2p1:DoNotMail>
<d2p1:DoNotPhone>String</d2p1:DoNotPhone>
<d2p1:DoNotSMS>String</d2p1:DoNotSMS>
<d2p1:DrivingLicenceNumber>String</d2p1:DrivingLicenceNumber>
<d2p1:Email>String</d2p1:Email>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:Gender>String</d2p1:Gender>
<d2p1:HomePhone>String</d2p1:HomePhone>
<d2p1:Initial>String</d2p1:Initial>
<d2p1:MaritalStatus>String</d2p1:MaritalStatus>
<d2p1:MobilePhone>String</d2p1:MobilePhone>
<d2p1:PreviousAddresses>
<d2p1:PreviousAddress>
<d2p1:Address>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:Country>String</d2p1:Country>
<d2p1:County>String</d2p1:County>
<d2p1:DateStarted>String</d2p1:DateStarted>
<d2p1:Duration>String</d2p1:Duration>
<d2p1:Postcode>String</d2p1:Postcode>
<d2p1:Town>String</d2p1:Town>
</d2p1:Address>
<d2p1:Seq>0</d2p1:Seq>
</d2p1:PreviousAddress>
</d2p1:PreviousAddresses>
<d2p1:PreviousEmploymentDetails>
<d2p1:PreviousEmployment>
<d2p1:Seq>0</d2p1:Seq>
<d2p1:previousEmployment>
<d2p1:EmployersAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressLine3>String</d2p1:AddressLine3>
<d2p1:Country>String</d2p1:Country>
<d2p1:County>String</d2p1:County>
<d2p1:DateStarted>String</d2p1:DateStarted>
<d2p1:Duration>String</d2p1:Duration>
<d2p1:Postcode>String</d2p1:Postcode>
<d2p1:Town>String</d2p1:Town>
</d2p1:EmployersAddress>
<d2p1:EmployersName>String</d2p1:EmployersName>
<d2p1:EmploymentType>String</d2p1:EmploymentType>
<d2p1:Occupation>String</d2p1:Occupation>
</d2p1:previousEmployment>
</d2p1:PreviousEmployment>
</d2p1:PreviousEmploymentDetails>
<d2p1:ResidentialStatus>String</d2p1:ResidentialStatus>
<d2p1:Surname>String</d2p1:Surname>
<d2p1:Title>String</d2p1:Title>
<d2p1:WorkPhone>String</d2p1:WorkPhone>
</CreditApplicationIndividual>
<DeliveryDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBOnlineCreditApplicationService.BusinessLib.DomainClasses">
<d2p1:DealerCode>String</d2p1:DealerCode>
<d2p1:DeliveryPreference>String</d2p1:DeliveryPreference>
</DeliveryDetails>
<DiPDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBOnlineCreditApplicationService.BusinessLib.DomainClasses">
<d2p1:DiPCustomerId>String</d2p1:DiPCustomerId>
<d2p1:DiPDecisionDescription>String</d2p1:DiPDecisionDescription>
<d2p1:DiPDecisionType>String</d2p1:DiPDecisionType>
<d2p1:DiPPrimaryDecisionCode>String</d2p1:DiPPrimaryDecisionCode>
<d2p1:DiPPrimaryDecisionReasonDealerMessage>String</d2p1:DiPPrimaryDecisionReasonDealerMessage>
<d2p1:DiPRequestID>String</d2p1:DiPRequestID>
<d2p1:DiPTimestamp>String</d2p1:DiPTimestamp>
<d2p1:DipDecisionDescriptionCode>String</d2p1:DipDecisionDescriptionCode>
<d2p1:DipPrimaryDecisionReason>String</d2p1:DipPrimaryDecisionReason>
<d2p1:diPReasons>
<d2p1:DiPReasons>
<d2p1:DiPDealerMessage>String</d2p1:DiPDealerMessage>
<d2p1:DiPDecisionReason>String</d2p1:DiPDecisionReason>
<d2p1:DipDecisionCode>String</d2p1:DipDecisionCode>
<d2p1:DipReasonSeq>0</d2p1:DipReasonSeq>
</d2p1:DiPReasons>
</d2p1:diPReasons>
</DiPDetails>
<ExistingVehicleDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBOnlineCreditApplicationService.BusinessLib.DomainClasses">
<d2p1:SettlementFlag>String</d2p1:SettlementFlag>
<d2p1:SettlementRegNo>String</d2p1:SettlementRegNo>
<d2p1:SettlementValue>0</d2p1:SettlementValue>
<d2p1:TradeInFlag>String</d2p1:TradeInFlag>
<d2p1:TradeInRegNo>String</d2p1:TradeInRegNo>
<d2p1:TradeInValue>0</d2p1:TradeInValue>
</ExistingVehicleDetails>
<FinanceDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBOnlineCreditApplicationService.BusinessLib.DomainClasses">
<d2p1:AdvancedRentalAmount>0</d2p1:AdvancedRentalAmount>
<d2p1:AnnualMileage>0</d2p1:AnnualMileage>
<d2p1:CostForCredit>0</d2p1:CostForCredit>
<d2p1:CustomerDepositContribution>0</d2p1:CustomerDepositContribution>
<d2p1:Duration>0</d2p1:Duration>
<d2p1:ExcessMileageRate>0</d2p1:ExcessMileageRate>
<d2p1:FinancialProduct>String</d2p1:FinancialProduct>
<d2p1:FixedInterestRate>0</d2p1:FixedInterestRate>
<d2p1:Frequency>String</d2p1:Frequency>
<d2p1:ManufacturerDepositContribution>0</d2p1:ManufacturerDepositContribution>
<d2p1:OptionalPurchasePayment>0</d2p1:OptionalPurchasePayment>
<d2p1:PauseType>String</d2p1:PauseType>
<d2p1:PaymentProfile>String</d2p1:PaymentProfile>
<d2p1:PaymentRentalAmount>0</d2p1:PaymentRentalAmount>
<d2p1:ProductType>String</d2p1:ProductType>
<d2p1:PurchaseActivationFee>0</d2p1:PurchaseActivationFee>
<d2p1:RandMIncluded>String</d2p1:RandMIncluded>
<d2p1:RandMLevel>String</d2p1:RandMLevel>
<d2p1:RepresentativeAPR>0</d2p1:RepresentativeAPR>
<d2p1:RetailerDepositContribution>0</d2p1:RetailerDepositContribution>
<d2p1:TotalAmountPayable>0</d2p1:TotalAmountPayable>
<d2p1:TotalDepositContribution>0</d2p1:TotalDepositContribution>
</FinanceDetails>
<GeneralDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBOnlineCreditApplicationService.BusinessLib.DomainClasses">
<d2p1:Brand>0</d2p1:Brand>
<d2p1:CustomerReferenceNumber>String</d2p1:CustomerReferenceNumber>
<d2p1:CustomerType>String</d2p1:CustomerType>
<d2p1:EnquiryDateTime>String</d2p1:EnquiryDateTime>
<d2p1:FormID>String</d2p1:FormID>
<d2p1:OCAApprovalNumber>String</d2p1:OCAApprovalNumber>
<d2p1:RequestSource>0</d2p1:RequestSource>
<d2p1:SourceofBusiness>String</d2p1:SourceofBusiness>
<d2p1:TagURL>String</d2p1:TagURL>
</GeneralDetails>
<PaymentDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBOnlineCreditApplicationService.BusinessLib.DomainClasses">
<d2p1:paymentDetails>
<d2p1:PaymentDetail>
<d2p1:AmountPaid>0</d2p1:AmountPaid>
<d2p1:Description>String</d2p1:Description>
<d2p1:PaymentDateTime>String</d2p1:PaymentDateTime>
<d2p1:PaymentTransactionID>String</d2p1:PaymentTransactionID>
<d2p1:PaymentType>String</d2p1:PaymentType>
<d2p1:Seq>0</d2p1:Seq>
</d2p1:PaymentDetail>
</d2p1:paymentDetails>
</PaymentDetails>
<Timestamp>String</Timestamp>
<Token>String</Token>
<Username>String</Username>
<VehicleDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBOnlineCreditApplicationService.BusinessLib.DomainClasses">
<d2p1:CurrentMileage>0</d2p1:CurrentMileage>
<d2p1:FirstRegistrationDate>String</d2p1:FirstRegistrationDate>
<d2p1:ModelBody>String</d2p1:ModelBody>
<d2p1:ModelClass>String</d2p1:ModelClass>
<d2p1:ModelDerivative>String</d2p1:ModelDerivative>
<d2p1:NewUsedFlag>String</d2p1:NewUsedFlag>
<d2p1:NewVehicleModelOptionDetails>
<d2p1:ModelOptionDetails>
<d2p1:Code>String</d2p1:Code>
<d2p1:Description>String</d2p1:Description>
<d2p1:Price>0</d2p1:Price>
<d2p1:Seq>0</d2p1:Seq>
</d2p1:ModelOptionDetails>
</d2p1:NewVehicleModelOptionDetails>
<d2p1:OTRPrice>0</d2p1:OTRPrice>
<d2p1:OnlineCode>String</d2p1:OnlineCode>
<d2p1:RegNo>String</d2p1:RegNo>
<d2p1:TotalPrice>0</d2p1:TotalPrice>
<d2p1:VIN>String</d2p1:VIN>
</VehicleDetails>
</CreateOCARequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CreateOCARequestResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types"> <Code>String</Code> <Message>String</Message> <URN>0</URN> </CreateOCARequestResponse>