Create Opportunity
POST /v2/thirdparty/opportunity/save
This is consolidated API to create opportunity, save quotes to opportunity and adding the opportunity comments.
Name of the Opportunity.
The start date and time of an opportunity.
The end date and time of an opportunity.
The deal value of an opportunity.
The probability 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 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 (This is an optional field).
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 (This is an optional field).
Name = the name of the identifier.
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 (This is an optional field).
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 (This is an optional field).
Name = the name of the opportunity status.
The custom fields for 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 list of contacts is to be associated with the opportunity in JSON format.
IsPrimary(Boolean) =.Is the given contact a primary contact of the opportunity.
Firstname= Firstname of the contact.
Lastname = Last name of the contact.
Email = Email of the contact.
Phone = Phone number of the contact.
Organisation = Organisation of the contact (This is an optional field).
ContactType = Contact type of the contact for the opportunity.
The lost reason for the opportunity in JSON format. The lost reason must exist in your Priava Account. Passed in JSON format where:
Id = the ID of the lost reason (This is an optional field).
Name = the name of the lost reason.
The list of venues to be added to the opportunity. The venue must exist in your Priava Account. Passed in JSON format where:
TemplateId = The template id of the venue.
StartDate= Start date of the venue booking.
EndDate = Start date of the venue booking.
Pax = Pax for the venue booking.
CatalogueComments = Any comment to be associated with the venue booking.
OpportunityStatus = The status of the venue booking.
The note to be associated with the opportunity.
Note= The comment to be added to the Opportunity.
NoteType= 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 (This is an optional field).
Name = the name of the comment type.
AddDocuments(Array[{}]) = The documents to be added to the note
FileName = the name of the file/document.
Content = the content of the file in base64 encoded format.
Comment= Any comment to be added to the quote.
QuoteNumber = The quote number (Note: Required only while updating a quote).
CatalogueItems = List of catalogue items to be associated with a quote.
The Id of the catalogue item. Required only if you are updating the catalogue. If empty, a new catalogue item will be created.
The Quantity of the catalogue item.
The Template Id of the catalogue item.
The Start Date and time of catalogue item.
The End Date and time of catalogue item.
The Unit Price of the catalogue item.
This represents the type of discount provided. The possible values could be 'P' and 'C', where 'P' is the percentile discount and 'C' is a fixed discount amount.
This represents the Discount provided for the catalogue item. The value provided is used along with the discount type to calculate the total discount amount.
The Tax Type to be associated with the catalogue item. The Tax Type must exist in your Priava Account. Passed in JSON format where:
Id = the ID of the Tax Type (This is an optional field).
Name = the name of the Tax Type.
The Financial Comment to be associated with the catalogue item.
The Comment to be associated with the catalogue item.
This represents whether the catalogue item should be credited or debited to the opportunity. Only values supported are Credit or Debit.
Formula associated with the catalogue item contains the following:
Name = the name of the Formula.
Id = the ID of the Tax Type (This is an optional field).
CustomFormulaFields = The Custom Formula Fields passed in JSON Format where:
FieldName= Name of the Custom Formula Field
FieldValue= Value of the Custom Formula Field