Get an opportunity status
get
/services/rest/connect/v1.4/opportunityStatuses/{id}
Request
Path Parameters
-
id(required): integer
The unique identifier of the opportunity status.
Response
Default Response
Root Schema : opportunityStatuses
Type:
object
The information about the default and custom opportunity statuses and their corresponding types. The default opportunity statuses are Lead, Reject, Active, Closed, Lost, Inactive, and Dead.
Show Source
-
createdTime:
string
The date and time when the opportunity status was created. This attribute is read-only.
-
displayOrder:
integer
Minimum Value:
1
Maximum Value:2147483647
The position of the opportunity status in the folder list. -
id:
integer
Minimum Value:
1
Maximum Value:9223372036854776000
The unique identifier of the opportunity status. -
lookupName:
string
Maximum Length:
255
The name used to look up the opportunity status. -
name:
string
Maximum Length:
80
The name of the opportunity status in the language of the current interface. -
names:
object opportunityStatuses-names
The language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
-
statusType:
object namedIDs-opportunityStatuses-statusType
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
-
updatedTime:
string
The date and time when the opportunity status was last updated. This attribute is read-only.
Nested Schema : opportunityStatuses-names
Type:
object
The language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
Show Source
-
labelText:
string
Maximum Length:
80
The language-specific label text. The value cannot be null or empty. -
language:
object namedIDs-opportunityStatuses-names-language
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Nested Schema : namedIDs-opportunityStatuses-statusType
Type:
object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
-
id:
integer
Minimum Value:
0
ID value -
lookupName:
string
Maximum Length:
255
Name used to lookup this object
Nested Schema : namedIDs-opportunityStatuses-names-language
Type:
object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
-
id:
integer
Minimum Value:
0
ID value -
lookupName:
string
Maximum Length:
255
Name used to lookup this object
Examples
Use GET with the following syntax to retrieve data for an opportunity status object:
https://your_site_interface/services/rest/connect/version/opportunityStatuses/opportunity_status_id
Request URI example
https://mysite.example.com/services/rest/connect/v1.4/opportunityStatuses/9
Response body example
{
"id": 9,
"lookupName": "Active",
"displayOrder": 3,
"name": "Active",
"names": {
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/latest/opportunityStatuses/9/names"
},
{
"rel": "full",
"href": "https://mysite.example.com/services/rest/connect/latest/opportunityStatuses/9/names/{name_id}",
"templated": true
}
]
},
"statusType": {
"id": 6,
"lookupName": "Active"
},
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/latest/opportunityStatuses/9"
},
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/latest/opportunityStatuses/9"
},
{
"rel": "describedby",
"href": "https://mysite.example.com/services/rest/connect/latest/metadata-catalog/opportunityStatuses",
"mediaType": "application/schema+json"
}
]
}