Opportunities / Entity

Get Opportunity

This endpoint retrieves data of a specific Opportunity based on JSON input. The API returns a single Opportunity available to the user, according to the unique ID provided. If the specified Opportunity does not exist, the response will be a "bad request".

You will only receive the 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

ParameterTypeDescription
idIntegerThe unique and specific identifier of the Opportunity

RESPONSE

AttributeTypeDescription
accountId1Object, NullFirst Account to whom the Opportunity is linked to (see Accounts resource)
accountId2Object, NullSecond Account to whom the Opportunity is linked to (see Accounts resource)
accountId3Object, NullThird 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
branchIdObject, NullBranch to whom the Opportunity has been assigned (see Branches resource)
cityStringCity name
closedDateStringDate when the Opportunity was closed
commentsStringComment added to the Opportunity
countryIdObject, NullCountry ID (see Countries resource) of the Opportunity address
currencyIdObject, NullCurrency ID (see Currencies resource) related to the Opportunity amount
dateCreatedStringDate and time when the Opportunity was created
dateDeletedStringDate and time when the Opportunity was deleted
dateUpdatedStringDate and time when the Opportunity was last updated
deletedBooleanIf true, the Opportunity has been deleted and archived
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
idIntegerUnique identifier for the Opportunity in ForceManager
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
referenceStringOpportunity's name
regionStringRegion/State name
salesForeCastDateStringForecast sale date
salesProbabilityObject, NullProbability of sale
salesRepIdObject, NullUnique identifier of the User associated to the Opportunity (see Users resource)
salesRepIdCreatedIntegerUnique identifier of the User who created the Opportunity
salesRepIdDeletedIntegerUnique identifier of the User who deleted the Opportunity
salesRepIdUpdatedIntegerUnique identifier of the User who updated the Opportunity
type_idObject, NullType of the Opportunity (see Types resource)
statusIdObject, NullStatus of the Opportunity (see Statues resource)
totalNumberTotal amount of the Opportunity
wonDateStringDate when the Opportunity was won

RESPONSE CODES

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

Request

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

Headers

Acceptstring
X-FM-Entity-Countstring

Response

Get Opportunity

Changes

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