# Method: opportunities.get

- [HTTP request](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities/get#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities/get#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities/get#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities/get#body.request_body)
- [Response body](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities/get#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities/get#body.aspect)
- [Try it!](https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities/get#try-it)

Returns the requested `https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity` resource.

Possible error codes:

- PERMISSION_DENIED: The user making the request isn't allowed to view the opportunity.
- INVALID_ARGUMENT: Required request parameters are missing or invalid.
- NOT_FOUND: No `https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity` resource found for the name in the request.

Return value: The `https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity` resource.

### HTTP request

`GET https://cloudchannel.googleapis.com/v1alpha1/{name=opportunities/*}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The name of the opportunity to retrieve. Format: opportunities/{opportunity} |

### Query parameters

| Parameters ||
|---|---|
| `partner` | `string` Required. Provide the Partner Id for which the Opportunity is being retrieved. Format: partner = partners/{id} |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/apps.order`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).