---
title: "Cancel a debt shift"
method: POST
path: "/debt-shifts/proposals/{id}/cancel"
tags: ["debt shifts"]
---

# Cancel a debt shift

`POST /debt-shifts/proposals/{id}/cancel`

## Request

- Base URL: `http://localhost:3001`
- URL: `http://localhost:3001/debt-shifts/proposals/{id}/cancel`
- Auth: HTTP bearer

Withdraw a proposal you made

## Path parameters

- `id` string, required

## Response `200`

Proposal cancelled successfully

- object
  - `data` DebtShiftProposalResponseDto
    - `id` string, required: Proposal ID
    - `proposerId` string, required: User who proposed the shift
    - `proposerDisplayName` string, required: Proposer's display name
    - `debtorId` string, required: User who would take over the debt
    - `debtorDisplayName` string, required: Debtor's display name
    - `creditorId` string, required: User whose claim moves to the debtor
    - `creditorDisplayName` string, required: Creditor's display name
    - `currency` string, required: Currency code
    - `amount` number, required: Proposed amount
    - `targetGroupNames` string[], required: Group(s) holding the proposer's debt, where the debtor picks up the new debt
    - `status` 'pending' | 'accepted' | 'declined' | 'cancelled' | 'expired', required: Proposal status
    - `createdAt` string, date-time: When the proposal was created
  - `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)
