Get an opportunity status

get

/services/rest/connect/v1.4/opportunityStatuses/{id}

Request

Path Parameters
Back to Top

Response

Default Response

Body ()
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
  • The date and time when the opportunity status was created. This attribute is read-only.
  • Minimum Value: 1
    Maximum Value: 2147483647
    The position of the opportunity status in the folder list.
  • Minimum Value: 1
    Maximum Value: 9223372036854776000
    The unique identifier of the opportunity status.
  • Maximum Length: 255
    The name used to look up the opportunity status.
  • Maximum Length: 80
    The name of the opportunity status in the language of the current interface.
  • 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.
  • 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.
  • 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
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
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
Back to Top

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"
    }
  ]
}
Back to Top