---
title: "Get debt-shift opportunities"
method: GET
path: "/debt-shifts/opportunities"
tags: ["debt shifts"]
---

# Get debt-shift opportunities

`GET /debt-shifts/opportunities`

## Request

- Base URL: `http://localhost:3001`
- URL: `http://localhost:3001/debt-shifts/opportunities`
- Auth: HTTP bearer

List the cross-group debt shifts the authenticated user could propose, computed from live balances

## Response `200`

Debt-shift opportunities retrieved successfully

- object
  - `data` DebtShiftOpportunityResponseDto[]
    - `debtorId` string, required: User who owes you and could take over the debt
    - `debtorDisplayName` string, required: Debtor's display name
    - `creditorId` string, required: User you owe; their claim would move to the debtor
    - `creditorDisplayName` string, required: Creditor's display name
    - `currency` string, required: Currency code
    - `amount` number, required: Maximum shiftable amount without flipping who owes whom in any pair
    - `targetGroupNames` string[], required: Group(s) holding the proposer's debt, where the debtor picks up the new debt
  - `success` boolean
  - `message` string

## Other responses

- `400`: Bad Request - Invalid input or validation failed
- `401`: Unauthorized - Authentication required or invalid token
- `403`: Forbidden - Insufficient permissions to access this resource
- `404`: Not Found - The requested resource does not exist
- `500`: Internal Server Error - An unexpected error occurred

---

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