---
title: Cancel a Project
description: 'Cancel a project'
sidebar:
  hidden: true
ai:
  exclude: true
seo:
  noindex: true
---

Cancels a project you own, along with every phase that is not already completed, cancelled or invoiced. Nothing already placed is undone.

A cancelled phase stops billing its materials and labor and bills one cancellation fee instead, set by how far the job had got:

| Fee                   | Billed when                                                                   |
| --------------------- | ----------------------------------------------------------------------------- |
| `TRIP_CHARGE`         | The site visit was completed (only phases with a site visit), and the install was not yet confirmed with equipment ordered. |
| `RESTOCK`             | The install date was confirmed and equipment was ordered. Includes the trip charge. |
| `DAY_OF_CANCELLATION` | As `RESTOCK`, but cancelled on or after the installation day.                 |

A site visit that was only scheduled, or an install date that was only proposed, bills nothing.

The response lists the fees each phase was charged. Sibi may adjust them before the phase is invoiced.

**Endpoint:** `https://api.sibipro.com/projects/v1/projects/{projectId}/cancel`

**Authentication:** Bearer token with the `cancel:projects` scope (`Authorization: Bearer {accessToken}`)

## Path parameters

### `projectId`

`string` — **Required.** ID of the project to cancel.

## Request body

None.

## Response

**Status: 200 OK**

```json
{
  "projectId": "proj_abc123",
  "status": "CANCELLED",
  "phases": [
    {
      "projectPhaseId": "phase_def456",
      "cancellationFees": [
        { "type": "RESTOCK", "amountCents": 50000 }
      ]
    }
  ]
}
```

### `projectId`

`string` — The cancelled project's ID.

### `status`

`string` — Always `"CANCELLED"` on success.

### `phases`

`array` — The phases this request cancelled. Phases already completed, cancelled or invoiced, or that completed while the request ran, are left as they are and not listed.

### `phases[].cancellationFees`

`array` — The fees the phase was charged, each with a `type` from the table above and its `amountCents`. Empty when nothing was owed, or when the fee could not be priced yet; Sibi sets it before the phase is invoiced.

---

## Error responses

All errors follow this shape:

```json
{
  "code": "FORBIDDEN",
  "message": "Not allowed to cancel this project"
}
```

| Status | `code`           | Condition                                                                                    |
| ------ | ---------------- | -------------------------------------------------------------------------------------------- |
| 401    | `UNAUTHORIZED`   | Missing or invalid Bearer token.                                                             |
| 403    | `INSUFFICIENT_SCOPE` | The token does not carry `cancel:projects`.                                              |
| 403    | `FORBIDDEN`      | The authenticated user lacks permission to cancel this project. A `projectId` that does not exist also returns this, because access is checked first. |
| 404    | `NOT_FOUND`      | The project could not be found.                                                              |
| 409    | `CONFLICT`       | The project is already `COMPLETED` and cannot be cancelled.                                  |
| 500    | `INTERNAL_ERROR` | Unhandled server error.                                                                      |
| 503    | `AUTH_UNAVAILABLE` | The token could not be checked. Retry shortly.                                             |

Calling cancel on an already-`CANCELLED` project succeeds with **200** and does not charge the phases it already cancelled again.
