v1

latestOpenAPI 3.0.02026-07-23204.2 KB
General

submit test results

post/{branch}/test-results

Path parameters

branchstring required

Request body

object required

Example request

{
  "testResultId": "sdff34eadrt2-q3q29-4294-acde-89cc3fa29545",
  "testStationName": "Abshire-Kub",
  "testStationPNumber": "09-4129632",
  "testStationType": "gvts",
  "testerName": "Deepika Singh",
  "testerStaffId": "d0b09235-7234-4bed-b628-e4c2a1fcb414",
  "testerEmailAddress": "deepikasingh@dvsagov.onmicrosoft.com",
  "testStartTimestamp": "2019-12-12T14:14:26.088Z",
  "testEndTimestamp": "2019-12-12T14:15:36.920Z",
  "testStatus": "submitted",
  "reasonForCancellation": null,
  "vrm": "CT70VRL",
  "odometerReading": 1234,
  "odometerReadingUnits": "kilometres",
  "vin": "P01234567890",
  "vehicleClass": {
    "description": "heavy goods vehicle",
    "code": "v"
  },
  "vehicleType": "hgv",
  "vehicleConfiguration": "semi-car transporter",
  "preparerId": "No preparer ID given",
  "preparerName": "name",
  "euVehicleCategory": "n2",
  "countryOfRegistration": "gb",
  "noOfAxles": 2,
  "numberOfWheelsDriven": 4,
  "testTypes": [
    {
      "name": "Voluntary test",
      "testTypeName": "Voluntary roadworthiness test",
      "testTypeId": "122",
      "certificateNumber": null,
      "testTypeStartTimestamp": "2019-12-12T14:15:06.792Z",
      "testTypeEndTimestamp": "2019-12-12T14:15:36.921Z",
      "modType": null,
      "emissionStandard": null,
      "fuelType": null,
      "smokeTestKLimitApplied": null,
      "particulateTrapFitted": null,
      "particulateTrapSerialNumber": null,
      "modificationTypeUsed": null,
      "testExpiryDate": null,
      "testResult": "fail",
      "prohibitionIssued": false,
      "reasonForAbandoning": null,
      "additionalCommentsForAbandon": null,
      "additionalNotesRecorded": null,
      "defects": [
        {
          "deficiencyRef": "1.1.a",
          "deficiencyCategory": "major",
          "deficiencyId": "a",
          "deficiencySubId": null,
          "deficiencyText": "missing.",
          "imNumber": 1,
          "imDescription": "Registration Plate",
          "itemNumber": 1,
          "itemDescription": "A registration plate:",
          "additionalInformation": {
            "notes": null,
            "location": {
              "vertical": null,
              "horizontal": null,
              "lateral": null,
              "longitudinal": "rear",
              "rowNumber": null,
              "seatNumber": null,
              "axleNumber": null
            }
          },
          "stdForProhibition": false,
          "prs": false,
          "prohibitionIssued": false
        }
      ],
      "customDefects": [],
      "secondaryCertificateNumber": "1234567890"
    }
  ],
  "systemNumber": "01234567890"
}

Response

Successful response

All 2 operations