createOpportunity

Purpose:

You can use createopportunity method to create Opportunities in Apptivo with generic fields provided by application.

Request URL:

https://api.apptivo.com/app/dao/v6/opportunities?a=save&opportunityData{OPPORTUNITY_DATA}&apiKey=API_KEY&accesKey=ACCESS_KEY

Request Parameters:

Parameter Data Type Description
opportunityData* JSON Please see the sample request URL
apiKey* String Apptivo API Key
accessKey* String Apptivo Access Key

* – Mandatory parameters

Output:

This will return the details of the created opportunity with JSON format.

Sample Request URL:

https://www.apptivo.com/app/dao/v6/opportunities?a=save&opportunityData={"opportunityName":"Testopportunites","salesStageName":"Prospecting","salesStageId":229771,"salesCycleId":null,"probability":5,"opportunityTypeId":null,"leadSourceTypeId":29685786,"leadSourceTypeName":"Cold Call","closeDate":"07/10/2017","assignedToObjectRefName":"Db2Es s","assignedToObjectId":"8","assignedToObjectRefId":77021,"amount":0,"currencyCode":"INR","campaignName":"","campaignId":null,"followUpDate":null,"followUpDescription":null,"createdByName":"","lastUpdatedByName":"","creationDate":"","lastUpdateDate":"","marketId":null,"territoryName":"","territoryId":null,"searchColumn":"","addresses":[],"emailAddresses":[],"phoneNumbers":[],"lastContactedDate":null,"labels":[],"createdBy":null,"opportunityId":null,"lastUpdatedBy":null,"isMultiCurrency":"N","accounts":[],"customAttributes":[],"isLocked":"N"}
&isDuplicate=N
&isLeadConvert=N
&isCustomerTerritoryUpdate=false