Opportunities / Entity

Create Opportunity

This endpoint allows you to create a Opportunity based on JSON input.

You will only be able to create a Opportunity after first providing the Session Key. To know how you can obtain the Session Key, go to Authentication.

HEADERS

ParameterValueDescription
Content-Typeapplication/jsonLanguage in which all request and response bodies are encoded
Accept*/*Any data of whatever mime type is accepted
X-Session-KeyAUTH_TOKENThis field must be completed with the token obtained at the authentication

REQUEST

AttributeTypeDescription
accountId1IntegerFirst Account to whom the Opportunity is linked to (see Accounts resource)
accountId2IntegerSecond Account to whom the Opportunity is linked to (see Accounts resource)
accountId3IntegerThird Account to whom the Opportunity is linked to (see Accounts resource)
address1StringFirst address to whom the Opportunity is linked
address2StringSecond address to whom the Opportunity is linked
branchId (Required)IntegerBranch to whom the Opportunity has been assigned (see Branches resource)
cityStringCity name
closedDateStringDate when the Opportunity was closed
commentsStringComment added to the Opportunity
countryIdIntegerCountry ID (see Countries resource) of the Opportunity address
currencyIdIntegerCurrency ID (see Currencies resource) related to the Opportunity amount
extIdStringExternal ID of the Opportunity from a third party system (ERP, CRM, Accounting System)
geocodedBooleanIf true, the Opportunity has been geolocated
geocodingAccuracyIntegerAccuracy radius based on information about cell towers and WiFi nodes that the mobile client can detect
latitudeNumberGeocode address for the latitude coordinates
longitudeNumberGeocode address for the longitude coordinates
lostDateStringDate when the Opportunity was lost
permissionLevelStringDefines the visibility of the Opportunity. Set from 1 to 5 being 5 the highest level of permission
postcodeStringThe Opportunity's address postal code
readOnlyBooleanIf true, the Opportunity can not be modified or deleted
reference (Required)StringOpportunity's name
regionStringRegion/State name
salesForeCastDateStringForecast sale date
salesProbability (Required)IntegerProbability of sale, it is a number between 0 and 10
salesRepId (Required)IntegerUnique identifier of the User associated to the Opportunity (see Users resource)
type_idIntegerType of the Opportunity (see Types resource)
statusId (Required)IntegerStatus of the Opportunity (see Statues resource)
totalNumberTotal amount of the Opportunity
wonDateStringDate when the Opportunity was won

RESPONSE

Returns a JSON with information about the Opportunity just created.

AttributeType
IdId assigned to the new Opportunity
MessageThe operation status

RESPONSE CODES

StatusDescription
200 OKShows if operation succeeded
400 Bad RequestShows when an invalid request or the requested service is not available
post/opportunities

Request

  • Base URL: https://api.forcemanager.com/api/v4
  • URL: https://api.forcemanager.com/api/v4/opportunities
  • Auth: API key in header X-Session-Key

Headers

Acceptstring

Request body

accountId1integer
address1string
branchIdinteger
citystring
commentsstring
currencyIdinteger
geocodedboolean
geocodingAccuracyinteger
latitudenumber
longitudenumber
lostDatestring
permissionLevelinteger
postcodestring
readOnlyboolean
referencestring
salesProbabilityinteger
salesRepIdinteger
statusIdinteger
totalinteger

Response

Create Opportunity

Changes

No recorded changes to this operation across all 1 revision of this API.