GET api/SocialDriver/GetServiceDetails?removeDuplicateParts={removeDuplicateParts}&serviceId={serviceId}

Get the next vehicle service details for a service

Request Information

URI Parameters

NameDescriptionTypeAdditional information
removeDuplicateParts

boolean

Default value is True

serviceId

unsigned integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

ViewServiceDetailsResponse
NameDescriptionTypeAdditional information
NextServiceMiles

The next service distance in miles

integer

None.

NextServiceKilometres

The next service distance in km

integer

None.

NextServiceMonths

The next service months

integer

None.

EstimatedNextServiceDate

The estimated date when the next service is due

date

None.

TimeMinutes

How long the service will take in minutes

integer

None.

IntervalKilometres

The interval km

integer

None.

IntervalMiles

The interval miles

integer

None.

IntervalMonths

The interval months

integer

None.

ServiceParts

The service parts

Collection of ServicePart

None.

Response Formats

application/json, text/json

Sample:
{
  "NextServiceMiles": 1,
  "NextServiceKilometres": 2,
  "NextServiceMonths": 3,
  "EstimatedNextServiceDate": "2025-04-27T15:43:07.9847669+00:00",
  "TimeMinutes": 5,
  "IntervalKilometres": 6,
  "IntervalMiles": 7,
  "IntervalMonths": 8,
  "ServiceParts": [
    {
      "Description": "sample string 1",
      "Price": 2.0
    },
    {
      "Description": "sample string 1",
      "Price": 2.0
    }
  ]
}

application/xml, text/xml

Sample:
<ViewServiceDetailsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <NextServiceMiles>1</NextServiceMiles>
  <NextServiceKilometres>2</NextServiceKilometres>
  <NextServiceMonths>3</NextServiceMonths>
  <EstimatedNextServiceDate>2025-04-27T15:43:07.9847669+00:00</EstimatedNextServiceDate>
  <TimeMinutes>5</TimeMinutes>
  <IntervalKilometres>6</IntervalKilometres>
  <IntervalMiles>7</IntervalMiles>
  <IntervalMonths>8</IntervalMonths>
  <ServiceParts>
    <ServicePart>
      <Description>sample string 1</Description>
      <Price>2</Price>
    </ServicePart>
    <ServicePart>
      <Description>sample string 1</Description>
      <Price>2</Price>
    </ServicePart>
  </ServiceParts>
</ViewServiceDetailsResponse>