/salesforce/opportunity

Creates a Salesforce Opportunity for a Contact, and adds that Contact to it as an Opportunity Contact Role. The request body is the Opportunity's fields, keyed by Salesforce field API name, plus ContactId. Name, StageName and CloseDate are required by Salesforce, along with any fields your org makes required.

If you leave out AccountId, the Opportunity gets the Contact's Account.

Requires a personal API token whose user is connected to Salesforce. The Opportunity is created with that user's Salesforce credentials.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The record's fields, keyed by Salesforce field API name, for example {"LastName": "Lovelace", "Company": "Analytical Engines"}. Salesforce validates the values, including your org's required fields and validation rules. Set OwnerId to myself to make the API caller the record's owner. Use GET /salesforce/syncedFields to see which fields exist in your org.

string

A Salesforce User Id, or myself for the API caller.

string
required

The Salesforce Id of the Contact to attach to the Opportunity.

string

The Account for the Opportunity. Defaults to the Contact's Account.

boolean
Defaults to false

Pass true to make the Contact the Opportunity's primary contact.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json
Psst... like working with APIs? Come join us!