Create or Update Opportunity
POST /v2/opportunity/save
This API creates an opportunity with a unique opportunity number and its associated details. This same API allows you to update an existing opportunity e.g. change the status or the event type of an opportunity.
The unique number of an Opportunity. Required when an opportunity is to be updated. If empty, a new opportunity will be created.
The name of the opportunity.
The probability of an opportunity.
The deal value of an opportunity.
The start date and time of an opportunity.
The end date and time of an opportunity.
The expected close date and time of an opportunity.
The number of persons (PAX) which will be attending or present at the opportunity.
The type of event that is available in your Priava account. The event type must exist in your Priava Account. Passed in JSON format where:
Id = the ID of the event type.
Name = the name of the event type.
The status of an Opportunity that is available in your Priava account. The opportunity status must exist in your Priava Account. Passed in JSON format where:
Id = the ID of the opportunity status.
Name = the name of the opportunity status.
The owner of an opportunity that is available in your Priava account. The owner must exist in your Priava Account. Passed in JSON format where:
Id = the ID of the owner.
Name = the name of the owner.
The identifier of an opportunity that is available in your Priava account. The identifier must exist in your Priava Account. Passed in JSON format where:
Id = the ID of the identifier.
Name = the name of the identifier.
The opportunity source for an opportunity as available in your Priava account. The opportunity source must exist in your Priava Account. Passed in JSON format where:
Id = the ID of the opportunity source.
Name = the name of the opportunity source.
The primary contact which is to be associated with the opportunity in JSON format.
The type of comment being added. This comment type must exist in your Priava account. Passed in JSON format where:
Id = the ID of the comment type.
Name = the name of the comment type.
The comment to be added to the Opportunity.
The custom fields for an Opportunity.
The venue to be added in an opportunity. The venue must exist in your Priava Account. Passed in JSON format where:
Id = the ID of the venue.
StartDate = Start date for a venue. EndDate = End date for a venue.
The type of contact that is being added. This contact type must exist in your Priava account. Passed in JSON format where:
Id = the ID of the contact type.
Name = the name of the contact type.
The ID of the Contact to be added. Contacts – Get API can be used to fetch contacts. Note: If the ContactId is provided, the contact details provided will be ignored.
The contact’s first name.
The contact’s last name.
The contact's primary email address.
The contact's phone number.
The contact's mobile/cellular number.
Specifies the primary phone number for the contact. The only accepted values are:
P for the Phone number.
M for the Mobile/Cellular number. The primary phone by default is Phone.
The name of the organisation the contact is associated with. The organisation must exist in your Priava Account.
The array of addresses (up to 3) for this contact. Passed in JSON format where
AddressType = either POSTAL, BUSINESS or OTHER.
AddressLine1 = Line 1 of the address.
AddressLine2 = Line 2 of the address.
AddressLine3 = Line 3 of the address.
Suburb = The Suburb for the address.
State = The State or County.
Postcode = The Postal or Zip code.
Country = The Country of the address.