Skip to content

Instantly share code, notes, and snippets.

<Quote>
<CashPrice>7194.00</CashPrice>
<Deposit>1699.00</Deposit>
<Balance>5495.00</Balance>
<Term>24</Term>
<FirstPayment>451.43</FirstPayment>
<RegularPayment>256.43</RegularPayment>
<NumberOfRegularPayments>22</NumberOfRegularPayments>
<FinalPayment>451.43</FinalPayment>
<AnnualMileage>10000</AnnualMileage>
<CustomerParameters>
<AnnualMileage>10000<AnnualMileage>
<MaximumTerm>24<MaximumTerm>
<TotalDeposit>1699<TotalDeposit>
</CustomerParameters>
<Vehicle>
<CashPrice>7194</CashPrice>
<CurrentMileage>12000</CurrentMileage>
<DateOfRegistration>2010-02-18</DateOfRegistration>
<IsNew>false</IsNew>
<?php
require_once('/path/to/nusoap.php');
//Webservice namespace
$namespace = 'https://services.codeweavers.net/soap/v2';
//Link to the WSDL
$wsdl = 'https://services.codeweavers.net/soap/v2/Finance.wsdl';
//Using xml string
$xml = "<PaymentSearchForStockIdentifiers xmlns='". $namespace ."'>";
<?php
//Link to the WSDL
$wsdl = 'https://services.codeweavers.net/soap/v2/Finance.wsdl';
//Create the SoapClient object
$option = array('trace' => 1, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS);
$soapClient = new SoapClient($wsdl, $option);
//Helper variable for Vehicle Registration Dates, defaults to today for New Vehicle requests
$dateOfRegistration = date('Y-m-d', strtotime("-3 months"));
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / Json Finance Response
Last active December 27, 2015 11:19
Json Finance Response
{
"VehicleResults": [
{
"FinanceProductResults": [
{
"Key": "HP",
"Notifications": {
"Public": [],
"Private": []
},
<script type="text/javascript">
var request = {
Credentials: {
Username: "USERNAME",
Password: "PASSWORD",
ApiKey: "YourApiKey"
},
Customer: {
Reference: "SESSIONID"
},
<?xml version="1.0"?>
<ProposalTransfer xmlns="http://www.codeweavers.net/webservices">
<IndividualApplicant>
...
</IndividualApplicant>
<BankDetails>
...
</BankDetails>
<Vehicle>
...
https://forms.yourcarloan.co.uk/quote/UNIQUE_CODEWEAVERS_QUOTE_ID/check
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / OptionalInformationForIndividualApplicant.xml
Last active December 23, 2015 21:59
Optional Information for Individual Applicants
<IndividualApplicant>
...
<Address OrderNumber="1">
...
</Address>
<Type>Primary</Type>
<Employment OrderNumber="1">
...
<GrossMonthlyIncome>2500.99</GrossMonthlyIncome>
</Employment>
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / PaymentSearchForStockIdentifiresGroupedByVehicle.xml
Last active December 19, 2015 14:09
PaymentSearchForStockIdentifiresGroupedByVehicle
<PaymentSearchForQuotesResponse xmlns="https://services.codeweavers.net/soap/v2">
<PaymentSearchForQuotesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<HasGlobalError>false</HasGlobalError>
<Error i:nil="true"/>
<NumberOfMatchingQuotes>3</NumberOfMatchingQuotes>
<NumberOfMatchingVehicles>2</NumberOfMatchingVehicles>
<NumberOfVehiclesSearched>23</NumberOfVehiclesSearched>
<NumberOfPages>1</NumberOfPages>
<PageNumber>1</PageNumber>
<TimeTaken>5</TimeTaken>