Content-Type: application/x-www-form-urlencoded
Payload:
{String} email - required
{String} name - required
{String} phone - required
{String} creditCard - required
{Array} credits - optional
credits: [{
creditType: "Basic",
generateReport: false
}]
{String} creditType - required, "Basic" or "Full"
{Boolean} generateReport - optional, default: false
Success Response:
status: 200
JSON: { msg: "Signup successful" }
Content-Type: application/x-www-form-urlencoded
Payload:
{String} email - required
{String} password - required
Success Response:
status: 200
JSON: { msg: "Signed in" }
Validate and get decoded session cookie
Success Response:
status: 200
JSON: { user: "userEmail@mailingService" }
Success Response:
status: 200
JSON: { msg: "Signed out" }
Content-Type: application/x-www-form-urlencoded
Payload:
{String} password - required
{String} confirmPassword - required
Success Response:
status: 200
JSON: { msg: "Password updated" }
Content-Type: application/x-www-form-urlencoded
Payload:
{String} email - required
Success Response:
status: 200
JSON: { msg: "Email sent" }
Validate token sent with POST /password/reset
Success Response:
status: 200
JSON: { msg: "Valid token" }
Content-Type: application/x-www-form-urlencoded
Payload:
{String} password - required
{String} confirmPassword - required
Success Response:
status: 200
JSON: { msg: "Password updated" }
Delete user data
Success Response:
status: 200
JSON: { msg: "Account removed" }
Get all credits
Success Response:
status: 200
JSON: { credits: [...] }
Save new credit/s with/without report/s
Content-Type: application/x-www-form-urlencoded
Payload:
{Array} credits - required
credits: [{
creditType: "Basic",
generateReport: false,
registration: "KM12AKK"
}]
{String} creditType - required, "Basic" || "Full"
{Boolean} generateReport - optional, default: false
{String} registration - required, if generateReport: true
Success Response:
status: 200
JSON: {
credits: [...],
reports: [...]
}
Get credit by creditId
Success Response:
status: 200
JSON: { credit: {...} }
Use credit on report
Content-Type: application/x-www-form-urlencoded
Payload:
{String} creditId - required
{String} registration - required
Success Response:
status: 200
JSON: {
credit: {...},
report: {...}
}
Get all reports
Success Response:
status: 200
JSON: { reports: [...] }
Get reports by reportType
Params Options:
"Basic" || "Full"
Success Response:
status: 200
JSON: { reports: [...] }
Get reports by registration
Success Response:
status: 200
JSON: { reports: [...] }
Get report by reportId
Success Response:
status: 200
JSON: { report: {...} }
Get VdiCheckFull by VRM
Success Response:
status: 200
JSON: { msg: "Success", data: {...} }
Get data by Data Package and VRM
Params Options (Case-Insensitive):
:datapackage
'BatteryData'
'MotHistoryAndTaxStatusData'
'MotHistoryData'
'PostcodeLookup'
'SpecAndOptionsData'
'TyreData'
'ValuationCanPrice'
'ValuationData'
'VdiCheckFull'
'VehicleAndMotHistory'
'VehicleData'
'VehicleDataIRL'
'VehicleImageData'
'VehicleTaxData'
Success Response:
status: 200
JSON: { msg: "Success", data: {...} }