POST api/Zapier/InsertOpportunity
Insert/update opportunity.
Request Information
URI Parameters
None.
Body Parameters
OpportunityIntegrationModelName | Description | Type | Additional information |
---|---|---|---|
database_id | globally unique identifier |
None. |
|
line_of_business_name | string |
Required |
|
needed_by | string |
Required |
|
opportunity_stage_name | string |
Required |
|
current_stage_due_date | string |
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. |
|
created_from_renewal | boolean |
None. |
|
disposition_database_id | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "database_id": "10e04357-93de-4066-82c6-92ab5e890f88", "line_of_business_name": "sample string 2", "needed_by": "sample string 3", "opportunity_stage_name": "sample string 4", "current_stage_due_date": "sample string 5", "referral_source_name": "sample string 6", "referral_source_contact_name": "sample string 7", "win_probability": "sample string 8", "agency_commission": 9.0, "assigned_to": [ "sample string 1", "sample string 2" ], "description": "sample string 10", "insured_database_id": "16df40d0-ae24-42f6-b1c7-3f166f2a3939", "insured_email": "sample string 11", "insured_first_name": "sample string 12", "insured_last_name": "sample string 13", "insured_commercial_name": "sample string 14", "policy_numbers": [ "sample string 1", "sample string 2" ], "created_from_renewal": true, "disposition_database_id": "6998c419-41ac-45c2-95b4-f06ce53a9200" }
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>9</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> <CreatedFromRenewal>true</CreatedFromRenewal> <CurrentStageDueDate>sample string 5</CurrentStageDueDate> <DatabaseId>10e04357-93de-4066-82c6-92ab5e890f88</DatabaseId> <Description>sample string 10</Description> <DispositionDatabaseId>6998c419-41ac-45c2-95b4-f06ce53a9200</DispositionDatabaseId> <InsuredCommercialName>sample string 14</InsuredCommercialName> <InsuredDatabaseId>16df40d0-ae24-42f6-b1c7-3f166f2a3939</InsuredDatabaseId> <InsuredEmail>sample string 11</InsuredEmail> <InsuredFirstName>sample string 12</InsuredFirstName> <InsuredLastName>sample string 13</InsuredLastName> <LineOfBusinessName>sample string 2</LineOfBusinessName> <NeededBy>sample string 3</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 7</ReferralSourceContactName> <ReferralSourceName>sample string 6</ReferralSourceName> <WinProbability>sample string 8</WinProbability> </OpportunityIntegrationModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NowCertsApiResultWithDatabaseIdName | Description | Type | Additional information |
---|---|---|---|
DatabaseId | globally unique identifier |
None. |
|
Status | ApiStatus |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "databaseId": "3ddfa092-43b7-41a0-9ec7-2656ffde2270", "status": 0, "message": "sample string 2" }
application/xml, text/xml
Sample:
<NowCertsApiResultWithDatabaseId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.NowCertsFulcrum"> <Message>sample string 2</Message> <Status>Error</Status> <DatabaseId>3ddfa092-43b7-41a0-9ec7-2656ffde2270</DatabaseId> </NowCertsApiResultWithDatabaseId>