POST api/Zapier/InsertOpportunity

Request Information

URI Parameters

None.

Body Parameters

OpportunityIntegrationModel
NameDescriptionTypeAdditional information
database_id

globally unique identifier

None.

line_of_business_name

string

Required

needed_by

date

Required

opportunity_stage_name

string

Required

current_stage_due_date

date

None.

referral_source_name

string

None.

referral_source_contact_name

string

None.

win_probability

string

Required

agency_commission

decimal number

Required

assigned_to

Collection of string

Required

description

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.

policy_numbers

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "database_id": "ea309a18-99fe-4095-bfea-63eac6b9fbc8",
  "line_of_business_name": "sample string 2",
  "needed_by": "2019-11-17T16:06:57.1346382-06:00",
  "opportunity_stage_name": "sample string 4",
  "current_stage_due_date": "2019-11-17T16:06:57.1346382-06:00",
  "referral_source_name": "sample string 5",
  "referral_source_contact_name": "sample string 6",
  "win_probability": "sample string 7",
  "agency_commission": 8.0,
  "assigned_to": [
    "sample string 1",
    "sample string 2"
  ],
  "description": "sample string 9",
  "insured_database_id": "7204e77b-f4fd-41dc-8659-d6df506b6019",
  "insured_email": "sample string 10",
  "insured_first_name": "sample string 11",
  "insured_last_name": "sample string 12",
  "insured_commercial_name": "sample string 13",
  "policy_numbers": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<OpportunityIntegrationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.Integrations">
  <AgencyCommission>8</AgencyCommission>
  <AssignedTo xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AssignedTo>
  <CurrentStageDueDate>2019-11-17T16:06:57.1346382-06:00</CurrentStageDueDate>
  <DatabaseId>ea309a18-99fe-4095-bfea-63eac6b9fbc8</DatabaseId>
  <Description>sample string 9</Description>
  <InsuredCommercialName>sample string 13</InsuredCommercialName>
  <InsuredDatabaseId>7204e77b-f4fd-41dc-8659-d6df506b6019</InsuredDatabaseId>
  <InsuredEmail>sample string 10</InsuredEmail>
  <InsuredFirstName>sample string 11</InsuredFirstName>
  <InsuredLastName>sample string 12</InsuredLastName>
  <LineOfBusinessName>sample string 2</LineOfBusinessName>
  <NeededBy>2019-11-17T16:06:57.1346382-06:00</NeededBy>
  <OpportunityStageName>sample string 4</OpportunityStageName>
  <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>
  <ReferralSourceContactName>sample string 6</ReferralSourceContactName>
  <ReferralSourceName>sample string 5</ReferralSourceName>
  <WinProbability>sample string 7</WinProbability>
</OpportunityIntegrationModel>

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>