Home Screen

Also known as the ‘Cover’ tab in the application. After a successful login or registration the user has access to the home screen to use the application.

Screenshots

home screen

Home Screen

API

Active policies (List)

The home screen shows active policies (if any). Active policies may be retrieved by performing a GET request.

active policies

Active Policies

Request

curl -X 'GET' \
  'https://st.igate-test.co.uk/api/v1/policies/active/' \
  -H 'Authorization: Bearer abc123xyz...' \
  -H 'accept: application/json'

Response

  • Type: 200 OK

{
  "count": 2,
  "next": null,
  "previous": null,
  "results": [
    {
      "uuid": "24072253-ae9e-483a-9e2e-4f22ddb2b22d",
      "url": "https://st.igate-test.co.uk/api/v1/policies/24072253-ae9e-483a-9e2e-4f22ddb2b22d/",
      "created_at": "2025-01-24T14:35:46.290206Z",
      "updated_at": "2025-01-24T14:35:46.290251Z",
      "vehicle": {
        "url": "https://st.igate-test.co.uk/api/v1/user/vehicles/edfe9daa-346c-4894-8417-87b081b2e97a/",
        "uuid": "edfe9daa-346c-4894-8417-87b081b2e97a",
        "created_at": "2025-01-24T11:27:34.419898Z",
        "updated_at": "2025-01-24T11:27:34.419946Z",
        "vehicle_type": 1,
        "reg_no": "kr10ygd",
        "abi_code": 16545701,
        "year_of_manufacture": 2010,
        "cc": 1242,
        "number_of_doors": 3,
        "number_of_seats": 4,
        "make": "Fiat",
        "model": "500",
        "gearbox_type_id": "002",
        "gearbox_type_name": "Manual",
        "body_type_id": "02",
        "body_type_name": "Hatchback",
        "fuel_type_id": "002",
        "fuel_type_name": "Petrol"
      },
      "payment": {
        "uuid": "d57390cc-cfee-47ee-93ec-b7dc7f9cf380",
        "url": "https://st.igate-test.co.uk/api/v1/payments/d57390cc-cfee-47ee-93ec-b7dc7f9cf380/",
        "amount": "50.00",
        "card_holder": "J SMITH",
        "card_number": "************5262",
        "expiry_date": "0128",
        "card_type": "J SMITH",
        "billing_use_policy_address": true,
        "billing_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/40c057ca-60bf-49bf-83a3-1b0f0c614fa6/",
          "uuid": "40c057ca-60bf-49bf-83a3-1b0f0c614fa6",
          "created_at": "2025-01-24T14:34:23.400293Z",
          "updated_at": "2025-01-24T14:34:23.400349Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        },
        "policy_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/40c057ca-60bf-49bf-83a3-1b0f0c614fa6/",
          "uuid": "40c057ca-60bf-49bf-83a3-1b0f0c614fa6",
          "created_at": "2025-01-24T14:34:23.400293Z",
          "updated_at": "2025-01-24T14:34:23.400349Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        }
      },
      "policy_number": "199/3949167/Z442/WEB",
      "insurer_name": "Trinity Lane",
      "policy_start_date": "2021-12-21T19:16:39.967925Z",
      "policy_end_date": "2022-01-03T23:59:59.999999Z",
      "policy_progress": 29
    },
    {
      "uuid": "24072253-ae9e-483a-9e2e-4f22ddb2b22e",
      "url": "https://st.igate-test.co.uk/api/v1/policies/24072253-ae9e-483a-9e2e-4f22ddb2b22e/",
      "created_at": "2025-01-24T14:38:36.549003Z",
      "updated_at": "2025-01-24T14:38:36.549048Z",
      "vehicle": {
        "url": "https://st.igate-test.co.uk/api/v1/user/vehicles/09eef7c7-e1b3-4574-ab7b-2d935cf209fc/",
        "uuid": "09eef7c7-e1b3-4574-ab7b-2d935cf209fc",
        "created_at": "2025-01-24T11:27:23.071291Z",
        "updated_at": "2025-01-24T11:27:23.071349Z",
        "vehicle_type": 1,
        "reg_no": "dn64mwx",
        "abi_code": 35690462,
        "year_of_manufacture": 2014,
        "cc": 1598,
        "number_of_doors": 5,
        "number_of_seats": 5,
        "make": "Nissan",
        "model": "Juke",
        "gearbox_type_id": "002",
        "gearbox_type_name": "Manual",
        "body_type_id": "02",
        "body_type_name": "Hatchback",
        "fuel_type_id": "002",
        "fuel_type_name": "Petrol"
      },
      "payment": {
        "uuid": "122e5604-08a4-406b-81ca-e5895e360883",
        "url": "https://st.igate-test.co.uk/api/v1/payments/122e5604-08a4-406b-81ca-e5895e360883/",
        "amount": "50.00",
        "card_holder": "J SMITH",
        "card_number": "************5262",
        "expiry_date": "0128",
        "card_type": "J SMITH",
        "billing_use_policy_address": true,
        "billing_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/15053847-e86a-4f4e-be63-9eb9db2a2d71/",
          "uuid": "15053847-e86a-4f4e-be63-9eb9db2a2d71",
          "created_at": "2025-01-24T14:38:12.544156Z",
          "updated_at": "2025-01-24T14:38:12.544216Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        },
        "policy_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/15053847-e86a-4f4e-be63-9eb9db2a2d71/",
          "uuid": "15053847-e86a-4f4e-be63-9eb9db2a2d71",
          "created_at": "2025-01-24T14:38:12.544156Z",
          "updated_at": "2025-01-24T14:38:12.544216Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        }
      },
      "policy_number": "199/3949167/Z442/WEB",
      "insurer_name": "Trinity Lane",
      "policy_start_date": "2021-12-28T19:16:39.967925Z",
      "policy_end_date": "2022-01-03T23:59:59.999999Z",
      "policy_progress": 29
    }
  ]
}

Notes

  • The results list may be empty and therefore have no active policies to display:

no active policies

No Active Policies

Expired policies (List)

The home screen displays a list of expired policies.

Request

curl -X 'GET' \
  'https://st.igate-test.co.uk/api/v1/policies/expired/' \
  -H 'Authorization: Bearer abc123xyz...' \
  -H 'accept: application/json'

Response

  • Type: 200 OK

{
  "count": 4,
  "next": null,
  "previous": null,
  "results": [
    {
      "uuid": "24072253-ae9e-483a-9e2e-4f22ddb2b22f",
      "url": "https://st.igate-test.co.uk/api/v1/policies/24072253-ae9e-483a-9e2e-4f22ddb2b22f/",
      "created_at": "2025-01-24T14:51:08.056200Z",
      "updated_at": "2025-01-24T14:51:08.056243Z",
      "vehicle": {
        "url": "https://st.igate-test.co.uk/api/v1/user/vehicles/09eef7c7-e1b3-4574-ab7b-2d935cf209fc/",
        "uuid": "09eef7c7-e1b3-4574-ab7b-2d935cf209fc",
        "created_at": "2025-01-24T11:27:23.071291Z",
        "updated_at": "2025-01-24T11:27:23.071349Z",
        "vehicle_type": 1,
        "reg_no": "dn64mwx",
        "abi_code": 35690462,
        "year_of_manufacture": 2014,
        "cc": 1598,
        "number_of_doors": 5,
        "number_of_seats": 5,
        "make": "Nissan",
        "model": "Juke",
        "gearbox_type_id": "002",
        "gearbox_type_name": "Manual",
        "body_type_id": "02",
        "body_type_name": "Hatchback",
        "fuel_type_id": "002",
        "fuel_type_name": "Petrol"
      },
      "payment": {
        "uuid": "693d5f18-9502-4e07-8c21-f046fc5874c6",
        "url": "https://st.igate-test.co.uk/api/v1/payments/693d5f18-9502-4e07-8c21-f046fc5874c6/",
        "amount": "50.00",
        "card_holder": "J SMITH",
        "card_number": "************5262",
        "expiry_date": "0128",
        "card_type": "J SMITH",
        "billing_use_policy_address": true,
        "billing_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/cc973c6f-edc6-484d-a24f-b576d2f61044/",
          "uuid": "cc973c6f-edc6-484d-a24f-b576d2f61044",
          "created_at": "2025-01-24T14:50:24.725414Z",
          "updated_at": "2025-01-24T14:50:24.725442Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        },
        "policy_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/cc973c6f-edc6-484d-a24f-b576d2f61044/",
          "uuid": "cc973c6f-edc6-484d-a24f-b576d2f61044",
          "created_at": "2025-01-24T14:50:24.725414Z",
          "updated_at": "2025-01-24T14:50:24.725442Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        }
      },
      "policy_number": "199/3949167/Z442/WEB",
      "insurer_name": "Trinity Lane",
      "policy_start_date": "2025-01-01T19:16:39.967925Z",
      "policy_end_date": "2025-01-09T23:59:59.999999Z",
      "policy_progress": 100
    },
    {
      "uuid": "24072253-ae9e-483a-9e2e-4f22ddb2b220",
      "url": "https://st.igate-test.co.uk/api/v1/policies/24072253-ae9e-483a-9e2e-4f22ddb2b220/",
      "created_at": "2025-01-24T14:55:17.991744Z",
      "updated_at": "2025-01-24T14:55:17.991788Z",
      "vehicle": {
        "url": "https://st.igate-test.co.uk/api/v1/user/vehicles/edfe9daa-346c-4894-8417-87b081b2e97a/",
        "uuid": "edfe9daa-346c-4894-8417-87b081b2e97a",
        "created_at": "2025-01-24T11:27:34.419898Z",
        "updated_at": "2025-01-24T11:27:34.419946Z",
        "vehicle_type": 1,
        "reg_no": "kr10ygd",
        "abi_code": 16545701,
        "year_of_manufacture": 2010,
        "cc": 1242,
        "number_of_doors": 3,
        "number_of_seats": 4,
        "make": "Fiat",
        "model": "500",
        "gearbox_type_id": "002",
        "gearbox_type_name": "Manual",
        "body_type_id": "02",
        "body_type_name": "Hatchback",
        "fuel_type_id": "002",
        "fuel_type_name": "Petrol"
      },
      "payment": {
        "uuid": "825f8c5b-c791-4531-9296-5afdffc5a507",
        "url": "https://st.igate-test.co.uk/api/v1/payments/825f8c5b-c791-4531-9296-5afdffc5a507/",
        "amount": "50.00",
        "card_holder": "J SMITH",
        "card_number": "************5262",
        "expiry_date": "0128",
        "card_type": "J SMITH",
        "billing_use_policy_address": true,
        "billing_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/ad4a0b49-d796-40e9-9e4d-7afeaf5aa695/",
          "uuid": "ad4a0b49-d796-40e9-9e4d-7afeaf5aa695",
          "created_at": "2025-01-24T14:54:51.499612Z",
          "updated_at": "2025-01-24T14:54:51.499654Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        },
        "policy_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/ad4a0b49-d796-40e9-9e4d-7afeaf5aa695/",
          "uuid": "ad4a0b49-d796-40e9-9e4d-7afeaf5aa695",
          "created_at": "2025-01-24T14:54:51.499612Z",
          "updated_at": "2025-01-24T14:54:51.499654Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        }
      },
      "policy_number": "199/3949167/Z442/WEB",
      "insurer_name": "Trinity Lane",
      "policy_start_date": "2025-01-01T19:16:39.967925Z",
      "policy_end_date": "2025-01-09T23:59:59.999999Z",
      "policy_progress": 100
    },
    {
      "uuid": "24072253-ae9e-483a-9e2e-4f22ddb2b22b",
      "url": "https://st.igate-test.co.uk/api/v1/policies/24072253-ae9e-483a-9e2e-4f22ddb2b22b/",
      "created_at": "2025-01-24T13:37:43.022544Z",
      "updated_at": "2025-01-24T13:37:43.022638Z",
      "vehicle": {
        "url": "https://st.igate-test.co.uk/api/v1/user/vehicles/edfe9daa-346c-4894-8417-87b081b2e97a/",
        "uuid": "edfe9daa-346c-4894-8417-87b081b2e97a",
        "created_at": "2025-01-24T11:27:34.419898Z",
        "updated_at": "2025-01-24T11:27:34.419946Z",
        "vehicle_type": 1,
        "reg_no": "kr10ygd",
        "abi_code": 16545701,
        "year_of_manufacture": 2010,
        "cc": 1242,
        "number_of_doors": 3,
        "number_of_seats": 4,
        "make": "Fiat",
        "model": "500",
        "gearbox_type_id": "002",
        "gearbox_type_name": "Manual",
        "body_type_id": "02",
        "body_type_name": "Hatchback",
        "fuel_type_id": "002",
        "fuel_type_name": "Petrol"
      },
      "payment": {
        "uuid": "b854cdb3-aa33-425d-89eb-39952fa988fd",
        "url": "https://st.igate-test.co.uk/api/v1/payments/b854cdb3-aa33-425d-89eb-39952fa988fd/",
        "amount": "50.00",
        "card_holder": "J SMITH",
        "card_number": "************5262",
        "expiry_date": "0128",
        "card_type": "J SMITH",
        "billing_use_policy_address": true,
        "billing_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/03f91624-a25f-4d9c-a994-c3f30b4f78e0/",
          "uuid": "03f91624-a25f-4d9c-a994-c3f30b4f78e0",
          "created_at": "2025-01-24T13:24:48.461095Z",
          "updated_at": "2025-01-24T13:24:48.461136Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        },
        "policy_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/03f91624-a25f-4d9c-a994-c3f30b4f78e0/",
          "uuid": "03f91624-a25f-4d9c-a994-c3f30b4f78e0",
          "created_at": "2025-01-24T13:24:48.461095Z",
          "updated_at": "2025-01-24T13:24:48.461136Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        }
      },
      "policy_number": "199/3949167/Z442/WEB",
      "insurer_name": "Trinity Lane",
      "policy_start_date": "2025-01-22T19:16:39.967925Z",
      "policy_end_date": "2025-01-22T23:59:59.999999Z",
      "policy_progress": 100
    },
    {
      "uuid": "24072253-ae9e-483a-9e2e-4f22ddb2b22c",
      "url": "https://st.igate-test.co.uk/api/v1/policies/24072253-ae9e-483a-9e2e-4f22ddb2b22c/",
      "created_at": "2025-01-24T14:20:43.348823Z",
      "updated_at": "2025-01-24T14:20:43.348866Z",
      "vehicle": {
        "url": "https://st.igate-test.co.uk/api/v1/user/vehicles/09eef7c7-e1b3-4574-ab7b-2d935cf209fc/",
        "uuid": "09eef7c7-e1b3-4574-ab7b-2d935cf209fc",
        "created_at": "2025-01-24T11:27:23.071291Z",
        "updated_at": "2025-01-24T11:27:23.071349Z",
        "vehicle_type": 1,
        "reg_no": "dn64mwx",
        "abi_code": 35690462,
        "year_of_manufacture": 2014,
        "cc": 1598,
        "number_of_doors": 5,
        "number_of_seats": 5,
        "make": "Nissan",
        "model": "Juke",
        "gearbox_type_id": "002",
        "gearbox_type_name": "Manual",
        "body_type_id": "02",
        "body_type_name": "Hatchback",
        "fuel_type_id": "002",
        "fuel_type_name": "Petrol"
      },
      "payment": {
        "uuid": "eb14131f-d7ac-41ae-a4b5-616d5a816904",
        "url": "https://st.igate-test.co.uk/api/v1/payments/eb14131f-d7ac-41ae-a4b5-616d5a816904/",
        "amount": "50.00",
        "card_holder": "J SMITH",
        "card_number": "************5262",
        "expiry_date": "0128",
        "card_type": "J SMITH",
        "billing_use_policy_address": true,
        "billing_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/7b4f2013-dce6-4af7-aa78-8895b3e7c533/",
          "uuid": "7b4f2013-dce6-4af7-aa78-8895b3e7c533",
          "created_at": "2025-01-24T14:19:18.201307Z",
          "updated_at": "2025-01-24T14:19:18.201348Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        },
        "policy_address": {
          "url": "https://st.igate-test.co.uk/api/v1/user/address/7b4f2013-dce6-4af7-aa78-8895b3e7c533/",
          "uuid": "7b4f2013-dce6-4af7-aa78-8895b3e7c533",
          "created_at": "2025-01-24T14:19:18.201307Z",
          "updated_at": "2025-01-24T14:19:18.201348Z",
          "house": null,
          "street": null,
          "city": null,
          "county": null,
          "postcode": null
        }
      },
      "policy_number": "199/3949167/Z442/WEB",
      "insurer_name": "Trinity Lane",
      "policy_start_date": "2025-01-22T19:16:39.967925Z",
      "policy_end_date": "2025-01-22T23:59:59.999999Z",
      "policy_progress": 100
    }
  ]
}

Notes

  • The results list may be empty and therefore have no expired policies to display:

no expired policies

No Expired Policies

Vehicle (Create)

When a vehicle has been found using the registration search the vehicle details require confirmation:

create a vehicle

Create a Vehicle

The new vehicle is then saved to the service using a POST request.

Request

curl -X 'POST' \
  'https://st.igate-test.co.uk/api/v1/vehicles/' \
  -H 'Authorization: Bearer abc123xyz...' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
   "vehicle_type": 1,
   "reg_no": "ky70bde",
   "abi_code": 53629830,
   "year_of_manufacture": 2020,
   "cc": 1984,
   "number_of_doors": 5,
   "number_of_seats": 5,
   "make": "Volkswagen",
   "model": "Golf",
   "gearbox_type_id": "001",
   "gearbox_type_name": "Automatic",
   "body_type_id": "02",
   "body_type_name": "Hatchback",
   "fuel_type_id": "002",
   "fuel_type_name": "Petrol"
}'

Response

  • Type: 201 Created

{
  "url": "https://st.igate-test.co.uk/api/v1/user/vehicles/8f5e0e9b-06fb-4d40-bb45-a6c8343c72c1/",
  "uuid": "8f5e0e9b-06fb-4d40-bb45-a6c8343c72c1",
  "created_at": "2025-01-27T11:11:51.381388Z",
  "updated_at": "2025-01-27T11:11:51.381438Z",
  "vehicle_type": 1,
  "reg_no": "ky70bde",
  "abi_code": 53629830,
  "year_of_manufacture": 2020,
  "cc": 1984,
  "number_of_doors": 5,
  "number_of_seats": 5,
  "make": "Volkswagen",
  "model": "Golf",
  "gearbox_type_id": "001",
  "gearbox_type_name": "Automatic",
  "body_type_id": "02",
  "body_type_name": "Hatchback",
  "fuel_type_id": "002",
  "fuel_type_name": "Petrol"
}

Notes

  • As the vehicle is now created it will now appear from the home screen under the ‘My Vehicles’ tab.

When the vehicle has been created the app will move to the process of starting cover for the vehicle. For more information about this process see the quoting documentation.