POST API/Vehicle/GetVehicleService

Request Information

URI Parameters

None.

Body Parameters

VehicleServiceM
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

Vehicle_ID

globally unique identifier

None.

ServiceType_ID

integer

None.

Description

string

None.

Amount

integer

None.

ExpireDate

date

None.

CreateDate

date

None.

UpdatePerson_ID

globally unique identifier

None.

InstallationDate

date

None.

Status

boolean

None.

SendForExpens

Collection of SendForExpensM

None.

documents

Collection of DocumentM

None.

documentsForService

Collection of DocumentM

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "1b806f52-ebf5-4a88-95ef-3fc3ac2ce6cf",
  "Vehicle_ID": "937d26de-c3c1-497b-bb29-2aac75c3b484",
  "ServiceType_ID": 3,
  "Description": "sample string 4",
  "Amount": 1,
  "ExpireDate": "2026-01-17T05:32:50.93212+05:00",
  "CreateDate": "2026-01-17T05:32:50.93212+05:00",
  "UpdatePerson_ID": "e518ab6b-22ff-4757-aecd-3e30af41f40d",
  "InstallationDate": "2026-01-17T05:32:50.93212+05:00",
  "Status": true,
  "SendForExpens": [
    {
      "dtS": "2026-01-17T05:32:50.93212+05:00",
      "dtE": "2026-01-17T05:32:50.93212+05:00",
      "ID": "1466c38a-5835-4f07-a5ef-a788078fba52",
      "VehicleService_ID": "ce1be390-2ec6-49a3-94d5-66113f72a793",
      "Department_ID": 3,
      "Stock_ID": "1d6a0361-b5b4-4fc0-80ea-48e4bc6e0c5d",
      "UnitOfMeasurement": 5,
      "Quantity": 6,
      "InventoryNumber": 7,
      "Price": 8,
      "Sum": 9,
      "CreateDate": "2026-01-17T05:32:50.93212+05:00",
      "UpdatePerson_ID": "e3ef7ee2-da18-4861-b9e8-a575b38de12c",
      "UpdateDate": "2026-01-17T05:32:50.93212+05:00",
      "StockIncoming_ID": "b116edcb-d898-4d4f-a195-4f8a2b85abe2",
      "Stock": {
        "ID": "f0a42bf2-3924-4d70-899e-782b37b72a78",
        "Code": 2,
        "Name": "sample string 3",
        "CreateDate": "2026-01-17T05:32:50.93212+05:00"
      }
    },
    {
      "dtS": "2026-01-17T05:32:50.93212+05:00",
      "dtE": "2026-01-17T05:32:50.93212+05:00",
      "ID": "1466c38a-5835-4f07-a5ef-a788078fba52",
      "VehicleService_ID": "ce1be390-2ec6-49a3-94d5-66113f72a793",
      "Department_ID": 3,
      "Stock_ID": "1d6a0361-b5b4-4fc0-80ea-48e4bc6e0c5d",
      "UnitOfMeasurement": 5,
      "Quantity": 6,
      "InventoryNumber": 7,
      "Price": 8,
      "Sum": 9,
      "CreateDate": "2026-01-17T05:32:50.93212+05:00",
      "UpdatePerson_ID": "e3ef7ee2-da18-4861-b9e8-a575b38de12c",
      "UpdateDate": "2026-01-17T05:32:50.93212+05:00",
      "StockIncoming_ID": "b116edcb-d898-4d4f-a195-4f8a2b85abe2",
      "Stock": {
        "ID": "f0a42bf2-3924-4d70-899e-782b37b72a78",
        "Code": 2,
        "Name": "sample string 3",
        "CreateDate": "2026-01-17T05:32:50.93212+05:00"
      }
    }
  ],
  "documents": [
    {
      "id": "2f22777d-cd77-4406-a1ac-177c2e7bfadf",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-01-17T05:32:50.93212+05:00"
    },
    {
      "id": "2f22777d-cd77-4406-a1ac-177c2e7bfadf",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-01-17T05:32:50.93212+05:00"
    }
  ],
  "documentsForService": [
    {
      "id": "2f22777d-cd77-4406-a1ac-177c2e7bfadf",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-01-17T05:32:50.93212+05:00"
    },
    {
      "id": "2f22777d-cd77-4406-a1ac-177c2e7bfadf",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-01-17T05:32:50.93212+05:00"
    }
  ]
}

application/xml, text/xml

Sample:
<VehicleServiceM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CarPark.Models.Basic">
  <Amount>1</Amount>
  <CreateDate>2026-01-17T05:32:50.93212+05:00</CreateDate>
  <Description>sample string 4</Description>
  <ExpireDate>2026-01-17T05:32:50.93212+05:00</ExpireDate>
  <ID>1b806f52-ebf5-4a88-95ef-3fc3ac2ce6cf</ID>
  <InstallationDate>2026-01-17T05:32:50.93212+05:00</InstallationDate>
  <SendForExpens>
    <SendForExpensM>
      <CreateDate>2026-01-17T05:32:50.93212+05:00</CreateDate>
      <Department_ID>3</Department_ID>
      <ID>1466c38a-5835-4f07-a5ef-a788078fba52</ID>
      <InventoryNumber>7</InventoryNumber>
      <Price>8</Price>
      <Quantity>6</Quantity>
      <Stock>
        <Code>2</Code>
        <CreateDate>2026-01-17T05:32:50.93212+05:00</CreateDate>
        <ID>f0a42bf2-3924-4d70-899e-782b37b72a78</ID>
        <Name>sample string 3</Name>
      </Stock>
      <StockIncoming_ID>b116edcb-d898-4d4f-a195-4f8a2b85abe2</StockIncoming_ID>
      <Stock_ID>1d6a0361-b5b4-4fc0-80ea-48e4bc6e0c5d</Stock_ID>
      <Sum>9</Sum>
      <UnitOfMeasurement>5</UnitOfMeasurement>
      <UpdateDate>2026-01-17T05:32:50.93212+05:00</UpdateDate>
      <UpdatePerson_ID>e3ef7ee2-da18-4861-b9e8-a575b38de12c</UpdatePerson_ID>
      <VehicleService_ID>ce1be390-2ec6-49a3-94d5-66113f72a793</VehicleService_ID>
      <dtE>2026-01-17T05:32:50.93212+05:00</dtE>
      <dtS>2026-01-17T05:32:50.93212+05:00</dtS>
    </SendForExpensM>
    <SendForExpensM>
      <CreateDate>2026-01-17T05:32:50.93212+05:00</CreateDate>
      <Department_ID>3</Department_ID>
      <ID>1466c38a-5835-4f07-a5ef-a788078fba52</ID>
      <InventoryNumber>7</InventoryNumber>
      <Price>8</Price>
      <Quantity>6</Quantity>
      <Stock>
        <Code>2</Code>
        <CreateDate>2026-01-17T05:32:50.93212+05:00</CreateDate>
        <ID>f0a42bf2-3924-4d70-899e-782b37b72a78</ID>
        <Name>sample string 3</Name>
      </Stock>
      <StockIncoming_ID>b116edcb-d898-4d4f-a195-4f8a2b85abe2</StockIncoming_ID>
      <Stock_ID>1d6a0361-b5b4-4fc0-80ea-48e4bc6e0c5d</Stock_ID>
      <Sum>9</Sum>
      <UnitOfMeasurement>5</UnitOfMeasurement>
      <UpdateDate>2026-01-17T05:32:50.93212+05:00</UpdateDate>
      <UpdatePerson_ID>e3ef7ee2-da18-4861-b9e8-a575b38de12c</UpdatePerson_ID>
      <VehicleService_ID>ce1be390-2ec6-49a3-94d5-66113f72a793</VehicleService_ID>
      <dtE>2026-01-17T05:32:50.93212+05:00</dtE>
      <dtS>2026-01-17T05:32:50.93212+05:00</dtS>
    </SendForExpensM>
  </SendForExpens>
  <ServiceType_ID>3</ServiceType_ID>
  <Status>true</Status>
  <UpdatePerson_ID>e518ab6b-22ff-4757-aecd-3e30af41f40d</UpdatePerson_ID>
  <Vehicle_ID>937d26de-c3c1-497b-bb29-2aac75c3b484</Vehicle_ID>
  <documents>
    <DocumentM>
      <createDate>2026-01-17T05:32:50.93212+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>2f22777d-cd77-4406-a1ac-177c2e7bfadf</id>
    </DocumentM>
    <DocumentM>
      <createDate>2026-01-17T05:32:50.93212+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>2f22777d-cd77-4406-a1ac-177c2e7bfadf</id>
    </DocumentM>
  </documents>
  <documentsForService>
    <DocumentM>
      <createDate>2026-01-17T05:32:50.93212+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>2f22777d-cd77-4406-a1ac-177c2e7bfadf</id>
    </DocumentM>
    <DocumentM>
      <createDate>2026-01-17T05:32:50.93212+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>2f22777d-cd77-4406-a1ac-177c2e7bfadf</id>
    </DocumentM>
  </documentsForService>
</VehicleServiceM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>