---
title: "Retrieve all opportunities"
method: GET
path: "/consumers/{consumer_id}/invoicing/opportunities"
tags: ["Invoicing", "Opportunities"]
---

# Retrieve all opportunities

`GET /consumers/{consumer_id}/invoicing/opportunities`

Returns a list of all the opportunities

## Path parameters

- `consumer_id` string, uuid, required

## Query parameters

- `page` integer
- `size` integer

## Response `200`

Successful Response

- ChiftPageOpportunityItem
  - `items` OpportunityItem[], required
    - `id` string, required — Technical id in Chift
    - `source_ref` Ref, required
      - `id` string, nullable — Technical id in the target software
      - `model` string, nullable — Name of the model/entity in the target software
    - `name` string, required — Name
    - `total` number, required — Total
    - `probability` number, required — Probability of success
    - `status` 'open' | 'won' | 'lost' | 'cancelled' | 'closed', required
    - `partner_id` string, nullable — Technical id of the customer in Chift
    - `comment` string, nullable — Comment
    - `currency` string, nullable — Currency matching target sofware name
    - `description` string, nullable — Description
    - `pipe_status` string, nullable — Current stage in pipeline
    - `pipe_name` string, nullable — Pipeline name
    - `created_date` string, date, nullable — Date creation
    - `due_date` string, date, nullable — Due Date
    - `end_date` string, date, nullable — End Date
    - `is_won` boolean, nullable — Is won?
    - `owner_ref` FieldRef
      - `id` string, nullable — Technical id in the target software
      - `model` string, nullable — Name of the model/entity in the target software
      - `name` string, nullable — Value the field in the target software
  - `total` integer, required
  - `page` integer, required
  - `size` integer, required

## Other responses

- `400` — Bad Request
- `422` — Validation Error

---

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