POST api/Zapier/InsertPolicy

Request Information

URI Parameters

None.

Body Parameters

PolicyOrQuoteIntegrationModel
NameDescriptionTypeAdditional information
database_id

globally unique identifier

None.

number

string

Required

effective_date

date

None.

expiration_date

date

None.

bind_date

date

None.

business_type

PolicyBusinessType

None.

business_sub_type

PolicyBusinessSubType

None.

description

string

None.

billing_type

PolicyBillingType

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.

line_of_business_name

string

None.

carrier_name

string

None.

mga_name

string

None.

premium

decimal number

None.

agency_commission_percent

decimal number

None.

agency_commission_value

decimal number

None.

agency_fee

decimal number

None.

taxes

decimal number

None.

agents

Collection of string

None.

csrs

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "database_id": "64a97a7a-3a25-4799-976d-c24598f3bc30",
  "number": "sample string 2",
  "effective_date": "2019-11-17T16:07:07.2135701-06:00",
  "expiration_date": "2019-11-17T16:07:07.2135701-06:00",
  "bind_date": "2019-11-17T16:07:07.2135701-06:00",
  "business_type": 0,
  "business_sub_type": 0,
  "description": "sample string 3",
  "billing_type": 0,
  "insured_database_id": "5b555989-f4ac-4dc7-9f77-5da0ce2198c7",
  "insured_email": "sample string 5",
  "insured_first_name": "sample string 6",
  "insured_last_name": "sample string 7",
  "insured_commercial_name": "sample string 8",
  "line_of_business_name": "sample string 9",
  "carrier_name": "sample string 10",
  "mga_name": "sample string 11",
  "premium": 1.0,
  "agency_commission_percent": 1.0,
  "agency_commission_value": 1.0,
  "agency_fee": 1.0,
  "taxes": 1.0,
  "agents": [
    "sample string 1",
    "sample string 2"
  ],
  "csrs": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<PolicyOrQuoteIntegrationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.Integrations">
  <AgencyCommissionPercent>1</AgencyCommissionPercent>
  <AgencyCommissionValue>1</AgencyCommissionValue>
  <AgencyFee>1</AgencyFee>
  <Agents xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Agents>
  <BillingType>Direct_Bill_100</BillingType>
  <BindDate>2019-11-17T16:07:07.2135701-06:00</BindDate>
  <BusinessSubType>AgentOfRecord</BusinessSubType>
  <BusinessType>New_Business</BusinessType>
  <CSRs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </CSRs>
  <CarrierName>sample string 10</CarrierName>
  <DatabaseId>64a97a7a-3a25-4799-976d-c24598f3bc30</DatabaseId>
  <Description>sample string 3</Description>
  <EffectiveDate>2019-11-17T16:07:07.2135701-06:00</EffectiveDate>
  <ExpirationDate>2019-11-17T16:07:07.2135701-06:00</ExpirationDate>
  <InsuredCommercialName>sample string 8</InsuredCommercialName>
  <InsuredDatabaseId>5b555989-f4ac-4dc7-9f77-5da0ce2198c7</InsuredDatabaseId>
  <InsuredEmail>sample string 5</InsuredEmail>
  <InsuredFirstName>sample string 6</InsuredFirstName>
  <InsuredLastName>sample string 7</InsuredLastName>
  <LineOfBusinessName>sample string 9</LineOfBusinessName>
  <MgaName>sample string 11</MgaName>
  <Number>sample string 2</Number>
  <Premium>1</Premium>
  <Taxes>1</Taxes>
</PolicyOrQuoteIntegrationModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NowCertsApiResult
NameDescriptionTypeAdditional information
Status

ApiStatus

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 0,
  "message": "sample string 1"
}

application/xml, text/xml

Sample:
<NowCertsApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.NowCertsFulcrum">
  <Message>sample string 1</Message>
  <Status>Error</Status>
</NowCertsApiResult>