---
title: "GET /opportunity/id/{id}"
method: GET
path: "/opportunity/id/{id}"
tags: ["opportunity"]
---

# GET /opportunity/id/{id}

`GET /opportunity/id/{id}`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/opportunity/id/{id}`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/opportunity/id/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

query opportunity

## Path parameters

- `id` string, required

## Response `200`

get by id

- Opportunity
  - `id` string
  - `version` string
  - `contactId` string
  - `createdDate` integer
  - `creatorId` string
  - `customAttributes` CustomAttribute[]
    - `attributeDefinitionId` string
    - `booleanValue` boolean
    - `dateValue` integer
    - `entityId` string
    - `entityReferences` EntityReference[]
      - `entityId` string
      - `entityName` string
    - `numberValue` string, number
    - `selectedValueId` string
    - `selectedValues` OnlyId[]
      - `id` string
    - `stringValue` string
  - `customerId` string, required
  - `description` string
  - `expectedDeliveryDate` integer
  - `expectedSignatureDate` integer
  - `hotLead` boolean
  - `lastModifiedDate` integer
  - `name` string, required
  - `nextCallDate` integer
  - `opportunityNumber` string
  - `responsibleUserId` string
  - `revenue` string, number
  - `salesChannel` string
  - `salesProbability` integer, required
  - `salesStageHistory` SalesStageHistory[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `lastModifiedDate` integer
    - `salesStageId` string
    - `userId` string
  - `salesStageId` string, required
  - `startDate` integer
  - `tags` string[]
  - `topics` OnlyId[]
    - `id` string
  - `winLossDescription` string
  - `winLossReasonId` string

## Other responses

- `default`: error response

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
