POST api/Driver/InsertDriver

Insert/update driver

Request Information

URI Parameters

None.

Body Parameters

DriverIntegrationModel
NameDescriptionTypeAdditional information
database_id

globally unique identifier

None.

first_name

string

None.

middle_name

string

None.

last_name

string

None.

date_of_birth

string

None.

ssn

string

None.

excluded

boolean

None.

license_number

string

None.

license_state

string

None.

license_year

integer

None.

hire_date

string

None.

termination_date

string

None.

policy_numbers

Collection of string

None.

insured_database_id

globally unique identifier

None.

insured_email

string

None.

insured_first_name

string

None.

insured_last_name

string

None.

insured_commercial_name

string

None.

active

boolean

None.

marital_status

string

None.

gender

string

None.

Request Formats

application/json, text/json

Sample:
{
  "database_id": "9b67bd50-e0b0-4b66-aa9e-b8162b0ce840",
  "first_name": "sample string 2",
  "middle_name": "sample string 3",
  "last_name": "sample string 4",
  "date_of_birth": "sample string 5",
  "ssn": "sample string 6",
  "excluded": true,
  "license_number": "sample string 8",
  "license_state": "sample string 9",
  "license_year": 1,
  "hire_date": "sample string 10",
  "termination_date": "sample string 11",
  "policy_numbers": [
    "sample string 1",
    "sample string 2"
  ],
  "insured_database_id": "a9872653-2520-42f7-9c7f-3552b2468dcc",
  "insured_email": "sample string 12",
  "insured_first_name": "sample string 13",
  "insured_last_name": "sample string 14",
  "insured_commercial_name": "sample string 15",
  "active": true,
  "marital_status": "sample string 17",
  "gender": "sample string 18"
}

application/xml, text/xml

Sample:
<DriverIntegrationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.Integrations.Models">
  <Active>true</Active>
  <DatabaseId>9b67bd50-e0b0-4b66-aa9e-b8162b0ce840</DatabaseId>
  <DateOfBirth>sample string 5</DateOfBirth>
  <Excluded>true</Excluded>
  <FirstName>sample string 2</FirstName>
  <Gender>sample string 18</Gender>
  <HireDate>sample string 10</HireDate>
  <InsuredCommercialName>sample string 15</InsuredCommercialName>
  <InsuredDatabaseId>a9872653-2520-42f7-9c7f-3552b2468dcc</InsuredDatabaseId>
  <InsuredEmail>sample string 12</InsuredEmail>
  <InsuredFirstName>sample string 13</InsuredFirstName>
  <InsuredLastName>sample string 14</InsuredLastName>
  <LastName>sample string 4</LastName>
  <LicenseNumber>sample string 8</LicenseNumber>
  <LicenseState>sample string 9</LicenseState>
  <LicenseYear>1</LicenseYear>
  <MaritalStatus>sample string 17</MaritalStatus>
  <MiddleName>sample string 3</MiddleName>
  <PolicyNumbers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </PolicyNumbers>
  <SSN>sample string 6</SSN>
  <TerminationDate>sample string 11</TerminationDate>
</DriverIntegrationModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NowCertsApiResultWithInsuredAndDatabaseId
NameDescriptionTypeAdditional information
InsuredDatabaseId

globally unique identifier

None.

DatabaseId

globally unique identifier

None.

Status

ApiStatus

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "insuredDatabaseId": "438d569b-58f4-4727-b8e1-54c43e6fc97d",
  "databaseId": "9aa69eb8-19a4-4ab5-ae5b-a973fad41393",
  "status": 0,
  "message": "sample string 3"
}

application/xml, text/xml

Sample:
<NowCertsApiResultWithInsuredAndDatabaseId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.NowCertsFulcrum">
  <Message>sample string 3</Message>
  <Status>Error</Status>
  <DatabaseId>9aa69eb8-19a4-4ab5-ae5b-a973fad41393</DatabaseId>
  <InsuredDatabaseId>438d569b-58f4-4727-b8e1-54c43e6fc97d</InsuredDatabaseId>
</NowCertsApiResultWithInsuredAndDatabaseId>