---
title: "Return all opportunities"
method: GET
path: "/opportunity"
tags: ["Orders"]
---

# Return all opportunities

`GET /opportunity`

Returns all opportunities associated with the specified account. The results are paginated. To fetch all results, pass the cursor returned from a call to subsequent calls.

## Query parameters

- `cursor` string, uuid
- `limit` integer
- `accountId` string, required
- `crmId` string

## Response `200`

successful operation

- OpportunityPaginationResponse
  - `data` OpportunityJson[]
    - `name` string
    - `id` string
    - `entityId` string
    - `type` string
    - `stage` string
    - `crmId` string
    - `accountId` string
    - `createdOn` integer
    - `updatedOn` integer
    - `opportunityCrmType` 'SALESFORCE' | 'HUBSPOT'
    - `isClosed` boolean
    - `primaryOrderId` string
    - `opportunityId` string
    - `currency` string
    - `customFields` CustomFieldEntry[]
      - `id` string
      - `type` 'STRING' | 'PICKLIST' | 'MULTISELECT_PICKLIST'
      - `name` string
      - `label` string
      - `value` string
      - `selections` string[]
      - `options` string[]
      - `required` boolean
      - `source` 'USER' | 'SYSTEM'
      - `defaultValue` CustomFieldDefault
        - `value` string
        - `selections` string[]
  - `numElements` integer
  - `nextCursor` string, uuid

---

[API](https://skmtc.net/dealhub/apis/quote-api.md) · [All operations](https://skmtc.net/dealhub/apis/quote-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dealhub/quote-api/revisions/c30f5b9fbfab/schema)
