# Deals API: Money and invoices

Base URL `https://api.beplan.io/v1`. Every operation is listed with its scope, permission, inputs, answers, errors and an example. Conventions: https://beplan.io/docs/api.md. OpenAPI document: https://beplan.io/docs/api/openapi.json.

Pages of this area:

- Deals (main): https://beplan.io/docs/api/deals.md
- Companies and contacts: https://beplan.io/docs/api/deals/companies.md
- Conversations and messages: https://beplan.io/docs/api/deals/conversations.md
- Deliverables, dates and files: https://beplan.io/docs/api/deals/deliverables.md
- Terms and rights: https://beplan.io/docs/api/deals/terms.md
- Money and invoices: https://beplan.io/docs/api/deals/money.md
- Reports and brand review: https://beplan.io/docs/api/deals/reports.md

## Read money across talents

`GET /organizations/{organizationId}/deals/money` · operationId `deals.money.organizationOverview`

- Scope: `deals:finances`
- Role permission: Any member who can see it
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Overdue and open invoices of every workspace where the user sees finances (and the token is allowed), sorted by days late, with totals per currency; `hiddenWorkspaces` counts the talents left out. Amounts are integers in minor units. `403 MISSING_PERMISSION` without finances anywhere. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |

**200 OK**

- `data` (object, required, DealMoneyOverview)
  - `overdue` (array of object, required)
    - `invoice` (object, required, DealInvoice)
      - `id` (string (uuid), required)
      - `number` (string, required)
      - `kind` (string, required): one of `full`, `deposit`, `balance`.
      - `issuedOn` (string (date), required, nullable)
      - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
      - `dueOn` (string (date), required, nullable)
      - `amountMinor` (number, required)
      - `taxMinor` (number, required)
      - `currency` (string, required)
      - `paidMinor` (number, required)
      - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void`.
      - `daysLate` (number, required, nullable)
      - `pdfFileId` (string (uuid), required, nullable)
      - `billTo` (object, required, nullable, DealContactRef)
        - `id` (string (uuid), required)
        - `name` (string, required, nullable)
        - `email` (string, required, nullable)
        - `role` (string, required, nullable)
        - `companyId` (string (uuid), required, nullable)
        - `erased` (boolean, required)
      - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
      - `externalUrl` (string, required, nullable)
      - `syncedAt` (string (date-time), required, nullable)
      - `payments` (array of object, required)
        - `id` (string (uuid), required)
        - `amountMinor` (number, required)
        - `receivedOn` (string (date), required)
        - `source` (string, required): one of `manual`, `sync`.
        - `note` (string, required, nullable)
      - `chase` (array of object, required)
        - `stepPosition` (number, required)
        - `tone` (string, required): one of `nudge`, `firm`, `final`.
        - `offsetDays` (number, required)
        - `state` (string, required): one of `drafted`, `sent`, `skipped`.
        - `messageId` (string (uuid), required, nullable)
        - `skipReason` (string, required, nullable)
        - `draftedAt` (string (date-time), required, nullable)
        - `sentAt` (string (date-time), required, nullable)
      - `nextChase` (object, required, nullable)
        - `stepPosition` (number, required)
        - `tone` (string, required): one of `nudge`, `firm`, `final`.
        - `at` (string (date-time), required)
        - `autoSend` (boolean, required)
      - `chasePaused` (boolean, required)
    - `dealId` (string (uuid), required)
    - `dealTitle` (string, required)
    - `company` (object, required, nullable, DealCompanyRef)
      - `id` (string (uuid), required)
      - `name` (string, required)
      - `kind` (string, required): one of `brand`, `agency`.
      - `domain` (string, required, nullable)
      - `logoUrl` (string, required, nullable)
      - `category` (string, required, nullable)
    - `workspaceId` (string (uuid), required)
    - `workspaceName` (string, required)
    - `owner` (object, required, nullable, MediaPerson)
      - `id` (string, required)
      - `name` (string, required): The member's name. "A member" for an integration that does not hold `members:read` (the id is kept; the Inbox always names them).
      - `image` (string, required, nullable): Their picture's URL; `null` without one, and for an integration that does not hold `members:read` (outside the Inbox).
  - `open` (array of object, required)
    - `invoice` (object, required, DealInvoice)
      - `id` (string (uuid), required)
      - `number` (string, required)
      - `kind` (string, required): one of `full`, `deposit`, `balance`.
      - `issuedOn` (string (date), required, nullable)
      - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
      - `dueOn` (string (date), required, nullable)
      - `amountMinor` (number, required)
      - `taxMinor` (number, required)
      - `currency` (string, required)
      - `paidMinor` (number, required)
      - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void`.
      - `daysLate` (number, required, nullable)
      - `pdfFileId` (string (uuid), required, nullable)
      - `billTo` (object, required, nullable, DealContactRef)
        - `id` (string (uuid), required)
        - `name` (string, required, nullable)
        - `email` (string, required, nullable)
        - `role` (string, required, nullable)
        - `companyId` (string (uuid), required, nullable)
        - `erased` (boolean, required)
      - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
      - `externalUrl` (string, required, nullable)
      - `syncedAt` (string (date-time), required, nullable)
      - `payments` (array of object, required)
        - `id` (string (uuid), required)
        - `amountMinor` (number, required)
        - `receivedOn` (string (date), required)
        - `source` (string, required): one of `manual`, `sync`.
        - `note` (string, required, nullable)
      - `chase` (array of object, required)
        - `stepPosition` (number, required)
        - `tone` (string, required): one of `nudge`, `firm`, `final`.
        - `offsetDays` (number, required)
        - `state` (string, required): one of `drafted`, `sent`, `skipped`.
        - `messageId` (string (uuid), required, nullable)
        - `skipReason` (string, required, nullable)
        - `draftedAt` (string (date-time), required, nullable)
        - `sentAt` (string (date-time), required, nullable)
      - `nextChase` (object, required, nullable)
        - `stepPosition` (number, required)
        - `tone` (string, required): one of `nudge`, `firm`, `final`.
        - `at` (string (date-time), required)
        - `autoSend` (boolean, required)
      - `chasePaused` (boolean, required)
    - `dealId` (string (uuid), required)
    - `dealTitle` (string, required)
    - `company` (object, required, nullable, DealCompanyRef)
      - `id` (string (uuid), required)
      - `name` (string, required)
      - `kind` (string, required): one of `brand`, `agency`.
      - `domain` (string, required, nullable)
      - `logoUrl` (string, required, nullable)
      - `category` (string, required, nullable)
    - `workspaceId` (string (uuid), required)
    - `workspaceName` (string, required)
    - `owner` (object, required, nullable, MediaPerson)
      - `id` (string, required)
      - `name` (string, required): The member's name. "A member" for an integration that does not hold `members:read` (the id is kept; the Inbox always names them).
      - `image` (string, required, nullable): Their picture's URL; `null` without one, and for an integration that does not hold `members:read` (outside the Inbox).
  - `paidThisQuarter` (array of object, required)
    - `currency` (string, required)
    - `amountMinor` (number, required)
  - `overdueTotals` (array of object, required)
    - `currency` (string, required)
    - `amountMinor` (number, required)
    - `count` (number, required)
    - `workspaces` (number, required)
  - `dueIn30DaysTotals` (array of object, required)
    - `currency` (string, required)
    - `amountMinor` (number, required)
    - `count` (number, required)
  - `hiddenWorkspaces` (number, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `ORGANIZATION_NOT_FOUND` (404), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Money view**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/deals/money" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "overdue": [],
    "open": [
      {
        "invoice": {
          "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
          "number": "INV-12",
          "kind": "full",
          "issuedOn": "2026-11-20",
          "dueKind": "date",
          "dueOn": "2026-12-20",
          "amountMinor": 200000,
          "taxMinor": 0,
          "currency": "EUR",
          "paidMinor": 0,
          "status": "sent",
          "daysLate": null,
          "pdfFileId": null,
          "billTo": {
            "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
            "name": "Jo Rivera",
            "email": "jo.partnerships@acme.test.beplan.local",
            "role": "Partnerships",
            "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
            "erased": false
          },
          "connectedTo": null,
          "externalUrl": null,
          "syncedAt": null,
          "payments": [],
          "chase": [],
          "nextChase": {
            "stepPosition": 1,
            "tone": "nudge",
            "at": "2026-12-23T09:00:00.000Z",
            "autoSend": false
          },
          "chasePaused": false
        },
        "dealId": "5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13",
        "dealTitle": "Acme headphones launch",
        "company": {
          "id": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
          "name": "Acme",
          "kind": "brand",
          "domain": "acme.test.beplan.local",
          "logoUrl": null,
          "category": null
        },
        "workspaceId": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
        "workspaceName": "Studio Halden",
        "owner": {
          "id": "user_2x8Kq",
          "name": "Alex Martin",
          "image": null
        }
      }
    ],
    "paidThisQuarter": [
      {
        "currency": "EUR",
        "amountMinor": 850000
      }
    ],
    "overdueTotals": [],
    "dueIn30DaysTotals": [
      {
        "currency": "EUR",
        "amountMinor": 200000,
        "count": 1
      }
    ],
    "hiddenWorkspaces": 0
  }
}
```


## Read the workspace's money view

`GET /organizations/{organizationId}/workspaces/{workspaceId}/deals/money` · operationId `deals.money.overview`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Overdue and open invoices of the workspace's deals, sorted by days late, with totals per currency (overdue, due in 30 days, paid this quarter). Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, DealMoneyOverview)
  - `overdue` (array of object, required)
    - `invoice` (object, required, DealInvoice)
      - `id` (string (uuid), required)
      - `number` (string, required)
      - `kind` (string, required): one of `full`, `deposit`, `balance`.
      - `issuedOn` (string (date), required, nullable)
      - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
      - `dueOn` (string (date), required, nullable)
      - `amountMinor` (number, required)
      - `taxMinor` (number, required)
      - `currency` (string, required)
      - `paidMinor` (number, required)
      - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void`.
      - `daysLate` (number, required, nullable)
      - `pdfFileId` (string (uuid), required, nullable)
      - `billTo` (object, required, nullable, DealContactRef)
        - `id` (string (uuid), required)
        - `name` (string, required, nullable)
        - `email` (string, required, nullable)
        - `role` (string, required, nullable)
        - `companyId` (string (uuid), required, nullable)
        - `erased` (boolean, required)
      - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
      - `externalUrl` (string, required, nullable)
      - `syncedAt` (string (date-time), required, nullable)
      - `payments` (array of object, required)
        - `id` (string (uuid), required)
        - `amountMinor` (number, required)
        - `receivedOn` (string (date), required)
        - `source` (string, required): one of `manual`, `sync`.
        - `note` (string, required, nullable)
      - `chase` (array of object, required)
        - `stepPosition` (number, required)
        - `tone` (string, required): one of `nudge`, `firm`, `final`.
        - `offsetDays` (number, required)
        - `state` (string, required): one of `drafted`, `sent`, `skipped`.
        - `messageId` (string (uuid), required, nullable)
        - `skipReason` (string, required, nullable)
        - `draftedAt` (string (date-time), required, nullable)
        - `sentAt` (string (date-time), required, nullable)
      - `nextChase` (object, required, nullable)
        - `stepPosition` (number, required)
        - `tone` (string, required): one of `nudge`, `firm`, `final`.
        - `at` (string (date-time), required)
        - `autoSend` (boolean, required)
      - `chasePaused` (boolean, required)
    - `dealId` (string (uuid), required)
    - `dealTitle` (string, required)
    - `company` (object, required, nullable, DealCompanyRef)
      - `id` (string (uuid), required)
      - `name` (string, required)
      - `kind` (string, required): one of `brand`, `agency`.
      - `domain` (string, required, nullable)
      - `logoUrl` (string, required, nullable)
      - `category` (string, required, nullable)
    - `workspaceId` (string (uuid), required)
    - `workspaceName` (string, required)
    - `owner` (object, required, nullable, MediaPerson)
      - `id` (string, required)
      - `name` (string, required): The member's name. "A member" for an integration that does not hold `members:read` (the id is kept; the Inbox always names them).
      - `image` (string, required, nullable): Their picture's URL; `null` without one, and for an integration that does not hold `members:read` (outside the Inbox).
  - `open` (array of object, required)
    - `invoice` (object, required, DealInvoice)
      - `id` (string (uuid), required)
      - `number` (string, required)
      - `kind` (string, required): one of `full`, `deposit`, `balance`.
      - `issuedOn` (string (date), required, nullable)
      - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
      - `dueOn` (string (date), required, nullable)
      - `amountMinor` (number, required)
      - `taxMinor` (number, required)
      - `currency` (string, required)
      - `paidMinor` (number, required)
      - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void`.
      - `daysLate` (number, required, nullable)
      - `pdfFileId` (string (uuid), required, nullable)
      - `billTo` (object, required, nullable, DealContactRef)
        - `id` (string (uuid), required)
        - `name` (string, required, nullable)
        - `email` (string, required, nullable)
        - `role` (string, required, nullable)
        - `companyId` (string (uuid), required, nullable)
        - `erased` (boolean, required)
      - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
      - `externalUrl` (string, required, nullable)
      - `syncedAt` (string (date-time), required, nullable)
      - `payments` (array of object, required)
        - `id` (string (uuid), required)
        - `amountMinor` (number, required)
        - `receivedOn` (string (date), required)
        - `source` (string, required): one of `manual`, `sync`.
        - `note` (string, required, nullable)
      - `chase` (array of object, required)
        - `stepPosition` (number, required)
        - `tone` (string, required): one of `nudge`, `firm`, `final`.
        - `offsetDays` (number, required)
        - `state` (string, required): one of `drafted`, `sent`, `skipped`.
        - `messageId` (string (uuid), required, nullable)
        - `skipReason` (string, required, nullable)
        - `draftedAt` (string (date-time), required, nullable)
        - `sentAt` (string (date-time), required, nullable)
      - `nextChase` (object, required, nullable)
        - `stepPosition` (number, required)
        - `tone` (string, required): one of `nudge`, `firm`, `final`.
        - `at` (string (date-time), required)
        - `autoSend` (boolean, required)
      - `chasePaused` (boolean, required)
    - `dealId` (string (uuid), required)
    - `dealTitle` (string, required)
    - `company` (object, required, nullable, DealCompanyRef)
      - `id` (string (uuid), required)
      - `name` (string, required)
      - `kind` (string, required): one of `brand`, `agency`.
      - `domain` (string, required, nullable)
      - `logoUrl` (string, required, nullable)
      - `category` (string, required, nullable)
    - `workspaceId` (string (uuid), required)
    - `workspaceName` (string, required)
    - `owner` (object, required, nullable, MediaPerson)
      - `id` (string, required)
      - `name` (string, required): The member's name. "A member" for an integration that does not hold `members:read` (the id is kept; the Inbox always names them).
      - `image` (string, required, nullable): Their picture's URL; `null` without one, and for an integration that does not hold `members:read` (outside the Inbox).
  - `paidThisQuarter` (array of object, required)
    - `currency` (string, required)
    - `amountMinor` (number, required)
  - `overdueTotals` (array of object, required)
    - `currency` (string, required)
    - `amountMinor` (number, required)
    - `count` (number, required)
    - `workspaces` (number, required)
  - `dueIn30DaysTotals` (array of object, required)
    - `currency` (string, required)
    - `amountMinor` (number, required)
    - `count` (number, required)
  - `hiddenWorkspaces` (number, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Money view**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/money" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "overdue": [],
    "open": [
      {
        "invoice": {
          "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
          "number": "INV-12",
          "kind": "full",
          "issuedOn": "2026-11-20",
          "dueKind": "date",
          "dueOn": "2026-12-20",
          "amountMinor": 200000,
          "taxMinor": 0,
          "currency": "EUR",
          "paidMinor": 0,
          "status": "sent",
          "daysLate": null,
          "pdfFileId": null,
          "billTo": {
            "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
            "name": "Jo Rivera",
            "email": "jo.partnerships@acme.test.beplan.local",
            "role": "Partnerships",
            "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
            "erased": false
          },
          "connectedTo": null,
          "externalUrl": null,
          "syncedAt": null,
          "payments": [],
          "chase": [],
          "nextChase": {
            "stepPosition": 1,
            "tone": "nudge",
            "at": "2026-12-23T09:00:00.000Z",
            "autoSend": false
          },
          "chasePaused": false
        },
        "dealId": "5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13",
        "dealTitle": "Acme headphones launch",
        "company": {
          "id": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
          "name": "Acme",
          "kind": "brand",
          "domain": "acme.test.beplan.local",
          "logoUrl": null,
          "category": null
        },
        "workspaceId": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
        "workspaceName": "Studio Halden",
        "owner": {
          "id": "user_2x8Kq",
          "name": "Alex Martin",
          "image": null
        }
      }
    ],
    "paidThisQuarter": [
      {
        "currency": "EUR",
        "amountMinor": 850000
      }
    ],
    "overdueTotals": [],
    "dueIn30DaysTotals": [
      {
        "currency": "EUR",
        "amountMinor": 200000,
        "count": 1
      }
    ],
    "hiddenWorkspaces": 0
  }
}
```


## Set a deal's payment chase

`PUT /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/chase` · operationId `deals.chase.set`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Sets the deal's own chase sequence, or `steps: null` to follow the workspace's. A chase is up to 6 reminder steps, each `offsetDays` after the due date, with a tone (`nudge`, `firm`, `final`), who is copied and whether the late fee is mentioned. A step with `autoSend: true` emails the brand on its own when due, so through the API it also needs `deals:send`; other steps are drafted and wait for a person to send them in Beplan. Answers the sequence. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `steps` (array of object, required, nullable): at most 6 items.
  - `offsetDays` (integer, required): from 0 to 120.
  - `tone` (string, required): one of `nudge`, `firm`, `final`.
  - `ccRoles` (array of string, required): one of `accounts_payable`, `brand_agency`, `manager`; at most 3 items.
  - `autoSend` (boolean, required)
  - `mentionsLateFee` (boolean, required)

**200 OK**

- `data` (object, required)
  - `steps` (array of object, required)
    - `id` (string (uuid), required)
    - `position` (number, required)
    - `offsetDays` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `ccRoles` (array of string, required): one of `accounts_payable`, `brand_agency`, `manager`.
    - `autoSend` (boolean, required)
    - `mentionsLateFee` (boolean, required)
  - `lateFeeOnlyWithClause` (boolean, required)
  - `pauseOnReply` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 403 | `INSUFFICIENT_SCOPE` | This token doesn't have the access this needs. Connect again and allow it. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: One polite nudge, drafted**

```bash
curl -X PUT "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/chase" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "steps": [
    {
      "offsetDays": 0,
      "tone": "nudge",
      "ccRoles": [],
      "autoSend": false,
      "mentionsLateFee": false
    }
  ]
}'
```

Answers 200:

```json
{
  "data": {
    "steps": [
      {
        "id": "c1e3a5c7-9d1f-4b3e-8a5c-7e9b1d3f5a02",
        "position": 0,
        "offsetDays": 0,
        "tone": "nudge",
        "ccRoles": [],
        "autoSend": false,
        "mentionsLateFee": false
      }
    ],
    "lateFeeOnlyWithClause": true,
    "pauseOnReply": true
  }
}
```


## Set a deal's agency commission

`PUT /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/commission` · operationId `deals.commission.set`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Sets the agency's commission percent for this deal (`null`: back to the talent's or the organization's default). Once the deal is signed its commission is frozen: `422 DEAL_COMMISSION_LOCKED` unless `unlock: true`. Answers the deal's money. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `percent` (number, required, nullable): from 0 to 100.
- `unlock` (boolean, optional)

**200 OK**

- `data` (object, required, DealMoneyDetail)
  - `currency` (string, required)
  - `fees` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind` (may gain values).
    - `label` (string, required)
    - `amountMinor` (number, required)
    - `taxPercent` (number, required, nullable)
    - `deliverableId` (string (uuid), required, nullable)
    - `condition` (string, required, nullable)
    - `status` (string, required): one of `proposed`, `agreed`, `due`, `cancelled`.
  - `splits` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `manager`, `co_creator`, `other`.
    - `label` (string, required)
    - `recipientName` (string, required, nullable)
    - `recipientUserId` (string, required, nullable)
    - `sharePercent` (number, required, nullable)
    - `amountMinor` (number, required, nullable)
    - `computedAmountMinor` (number, required)
  - `invoices` (array of object, required)
    - `id` (string (uuid), required)
    - `number` (string, required)
    - `kind` (string, required): one of `full`, `deposit`, `balance`.
    - `issuedOn` (string (date), required, nullable)
    - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
    - `dueOn` (string (date), required, nullable)
    - `amountMinor` (number, required)
    - `taxMinor` (number, required)
    - `currency` (string, required)
    - `paidMinor` (number, required)
    - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
    - `daysLate` (number, required, nullable)
    - `pdfFileId` (string (uuid), required, nullable)
    - `billTo` (object, required, nullable, DealContactRef)
      - `id` (string (uuid), required)
      - `name` (string, required, nullable)
      - `email` (string, required, nullable)
      - `role` (string, required, nullable)
      - `companyId` (string (uuid), required, nullable)
      - `erased` (boolean, required)
    - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
    - `externalUrl` (string, required, nullable)
    - `syncedAt` (string (date-time), required, nullable)
    - `payments` (array of object, required)
      - `id` (string (uuid), required)
      - `amountMinor` (number, required)
      - `receivedOn` (string (date), required)
      - `source` (string, required): one of `manual`, `sync`.
      - `note` (string, required, nullable)
    - `chase` (array of object, required)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `offsetDays` (number, required)
      - `state` (string, required): one of `drafted`, `sent`, `skipped`.
      - `messageId` (string (uuid), required, nullable)
      - `skipReason` (string, required, nullable)
      - `draftedAt` (string (date-time), required, nullable)
      - `sentAt` (string (date-time), required, nullable)
    - `nextChase` (object, required, nullable)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `at` (string (date-time), required)
      - `autoSend` (boolean, required)
    - `chasePaused` (boolean, required)
  - `totals` (object, required)
    - `agreedMinor` (number, required)
    - `invoicedMinor` (number, required)
    - `paidMinor` (number, required)
    - `outstandingMinor` (number, required)
  - `commission` (object, required)
    - `percent` (number, required)
    - `source` (string, required): one of `locked`, `deal`, `roster`, `organization`, `none`.
    - `overridePercent` (number, required, nullable)
    - `bookedMinor` (number, required)
    - `earnedMinor` (number, required)
    - `agencyName` (string, required)
  - `chaseSequence` (string, required): one of `workspace`, `deal`.

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |
| 409 | `DEAL_COMMISSION_LOCKED` | The commission was fixed when the deal was signed. Unlock it to change it. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: 15 %**

```bash
curl -X PUT "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/commission" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "percent": 15
}'
```

Answers 200:

```json
{
  "data": {
    "currency": "EUR",
    "fees": [
      {
        "id": "b5d7f9b1-3c5e-4a7c-8f9b-1d3f5a7c9e13",
        "kind": "fixed",
        "label": "Integration fee",
        "amountMinor": 200000,
        "taxPercent": null,
        "deliverableId": "d3f5a7c9-1e3a-4c5e-8b7d-9f1a3c5e7b68",
        "condition": null,
        "status": "agreed"
      }
    ],
    "splits": [
      {
        "id": "c8e0a2c4-6d8f-4b0d-9a2c-4e6a8c0e2a24",
        "kind": "manager",
        "label": "Manager",
        "recipientName": "Alex Martin",
        "recipientUserId": "user_2x8Kq",
        "sharePercent": 10,
        "amountMinor": null,
        "computedAmountMinor": 20000
      }
    ],
    "invoices": [
      {
        "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
        "number": "INV-12",
        "kind": "full",
        "issuedOn": "2026-11-20",
        "dueKind": "date",
        "dueOn": "2026-12-20",
        "amountMinor": 200000,
        "taxMinor": 0,
        "currency": "EUR",
        "paidMinor": 0,
        "status": "sent",
        "daysLate": null,
        "pdfFileId": null,
        "billTo": {
          "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
          "name": "Jo Rivera",
          "email": "jo.partnerships@acme.test.beplan.local",
          "role": "Partnerships",
          "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
          "erased": false
        },
        "connectedTo": null,
        "externalUrl": null,
        "syncedAt": null,
        "payments": [],
        "chase": [],
        "nextChase": {
          "stepPosition": 1,
          "tone": "nudge",
          "at": "2026-12-23T09:00:00.000Z",
          "autoSend": false
        },
        "chasePaused": false
      }
    ],
    "totals": {
      "agreedMinor": 200000,
      "invoicedMinor": 200000,
      "paidMinor": 0,
      "outstandingMinor": 200000
    },
    "commission": {
      "percent": 15,
      "source": "deal",
      "overridePercent": 15,
      "bookedMinor": 30000,
      "earnedMinor": 0,
      "agencyName": "Studio Halden"
    },
    "chaseSequence": "workspace"
  }
}
```


## Add a fee

`POST /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/fees` · operationId `deals.fees.create`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Adds a fee: `kind` (`fixed`, `per_deliverable`, `bonus`, `kill_fee`, `in_kind`…), a label, `amountMinor`, an optional tax percent, deliverable and condition. Answers `201` with the deal's money. Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `kind` (string, required): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind`.
- `label` (string, required): 1–160 characters.
- `amountMinor` (integer, required): from 0 to 10000000000000.
- `taxPercent` (number, optional, nullable): from 0 to 100.
- `deliverableId` (string (uuid), optional, nullable)
- `condition` (string, optional, nullable): at most 500 characters.
- `status` (string, optional): one of `proposed`, `agreed`, `due`, `cancelled`.

**201 Created**

- `data` (object, required, DealMoneyDetail)
  - `currency` (string, required)
  - `fees` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind` (may gain values).
    - `label` (string, required)
    - `amountMinor` (number, required)
    - `taxPercent` (number, required, nullable)
    - `deliverableId` (string (uuid), required, nullable)
    - `condition` (string, required, nullable)
    - `status` (string, required): one of `proposed`, `agreed`, `due`, `cancelled`.
  - `splits` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `manager`, `co_creator`, `other`.
    - `label` (string, required)
    - `recipientName` (string, required, nullable)
    - `recipientUserId` (string, required, nullable)
    - `sharePercent` (number, required, nullable)
    - `amountMinor` (number, required, nullable)
    - `computedAmountMinor` (number, required)
  - `invoices` (array of object, required)
    - `id` (string (uuid), required)
    - `number` (string, required)
    - `kind` (string, required): one of `full`, `deposit`, `balance`.
    - `issuedOn` (string (date), required, nullable)
    - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
    - `dueOn` (string (date), required, nullable)
    - `amountMinor` (number, required)
    - `taxMinor` (number, required)
    - `currency` (string, required)
    - `paidMinor` (number, required)
    - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
    - `daysLate` (number, required, nullable)
    - `pdfFileId` (string (uuid), required, nullable)
    - `billTo` (object, required, nullable, DealContactRef)
      - `id` (string (uuid), required)
      - `name` (string, required, nullable)
      - `email` (string, required, nullable)
      - `role` (string, required, nullable)
      - `companyId` (string (uuid), required, nullable)
      - `erased` (boolean, required)
    - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
    - `externalUrl` (string, required, nullable)
    - `syncedAt` (string (date-time), required, nullable)
    - `payments` (array of object, required)
      - `id` (string (uuid), required)
      - `amountMinor` (number, required)
      - `receivedOn` (string (date), required)
      - `source` (string, required): one of `manual`, `sync`.
      - `note` (string, required, nullable)
    - `chase` (array of object, required)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `offsetDays` (number, required)
      - `state` (string, required): one of `drafted`, `sent`, `skipped`.
      - `messageId` (string (uuid), required, nullable)
      - `skipReason` (string, required, nullable)
      - `draftedAt` (string (date-time), required, nullable)
      - `sentAt` (string (date-time), required, nullable)
    - `nextChase` (object, required, nullable)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `at` (string (date-time), required)
      - `autoSend` (boolean, required)
    - `chasePaused` (boolean, required)
  - `totals` (object, required)
    - `agreedMinor` (number, required)
    - `invoicedMinor` (number, required)
    - `paidMinor` (number, required)
    - `outstandingMinor` (number, required)
  - `commission` (object, required)
    - `percent` (number, required)
    - `source` (string, required): one of `locked`, `deal`, `roster`, `organization`, `none`.
    - `overridePercent` (number, required, nullable)
    - `bookedMinor` (number, required)
    - `earnedMinor` (number, required)
    - `agencyName` (string, required)
  - `chaseSequence` (string, required): one of `workspace`, `deal`.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: 2,000 EUR fixed**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/fees" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "fixed",
  "label": "Integration fee",
  "amountMinor": 200000
}'
```

Answers 201:

```json
{
  "data": {
    "currency": "EUR",
    "fees": [
      {
        "id": "b5d7f9b1-3c5e-4a7c-8f9b-1d3f5a7c9e13",
        "kind": "fixed",
        "label": "Integration fee",
        "amountMinor": 200000,
        "taxPercent": null,
        "deliverableId": null,
        "condition": null,
        "status": "proposed"
      }
    ],
    "splits": [
      {
        "id": "c8e0a2c4-6d8f-4b0d-9a2c-4e6a8c0e2a24",
        "kind": "manager",
        "label": "Manager",
        "recipientName": "Alex Martin",
        "recipientUserId": "user_2x8Kq",
        "sharePercent": 10,
        "amountMinor": null,
        "computedAmountMinor": 20000
      }
    ],
    "invoices": [],
    "totals": {
      "agreedMinor": 0,
      "invoicedMinor": 0,
      "paidMinor": 0,
      "outstandingMinor": 0
    },
    "commission": {
      "percent": 20,
      "source": "roster",
      "overridePercent": null,
      "bookedMinor": 40000,
      "earnedMinor": 0,
      "agencyName": "Studio Halden"
    },
    "chaseSequence": "workspace"
  }
}
```


## Change a fee

`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/fees/{itemId}` · operationId `deals.fees.update`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Changes the given fields of a fee (ids from `deals.money.get`). Answers the deal's money. Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `kind` (string, optional): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind`.
- `label` (string, optional): 1–160 characters.
- `amountMinor` (integer, optional): from 0 to 10000000000000.
- `taxPercent` (number, optional, nullable): from 0 to 100.
- `deliverableId` (string (uuid), optional, nullable)
- `condition` (string, optional, nullable): at most 500 characters.
- `status` (string, optional): one of `proposed`, `agreed`, `due`, `cancelled`.

**200 OK**

- `data` (object, required, DealMoneyDetail)
  - `currency` (string, required)
  - `fees` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind` (may gain values).
    - `label` (string, required)
    - `amountMinor` (number, required)
    - `taxPercent` (number, required, nullable)
    - `deliverableId` (string (uuid), required, nullable)
    - `condition` (string, required, nullable)
    - `status` (string, required): one of `proposed`, `agreed`, `due`, `cancelled`.
  - `splits` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `manager`, `co_creator`, `other`.
    - `label` (string, required)
    - `recipientName` (string, required, nullable)
    - `recipientUserId` (string, required, nullable)
    - `sharePercent` (number, required, nullable)
    - `amountMinor` (number, required, nullable)
    - `computedAmountMinor` (number, required)
  - `invoices` (array of object, required)
    - `id` (string (uuid), required)
    - `number` (string, required)
    - `kind` (string, required): one of `full`, `deposit`, `balance`.
    - `issuedOn` (string (date), required, nullable)
    - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
    - `dueOn` (string (date), required, nullable)
    - `amountMinor` (number, required)
    - `taxMinor` (number, required)
    - `currency` (string, required)
    - `paidMinor` (number, required)
    - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
    - `daysLate` (number, required, nullable)
    - `pdfFileId` (string (uuid), required, nullable)
    - `billTo` (object, required, nullable, DealContactRef)
      - `id` (string (uuid), required)
      - `name` (string, required, nullable)
      - `email` (string, required, nullable)
      - `role` (string, required, nullable)
      - `companyId` (string (uuid), required, nullable)
      - `erased` (boolean, required)
    - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
    - `externalUrl` (string, required, nullable)
    - `syncedAt` (string (date-time), required, nullable)
    - `payments` (array of object, required)
      - `id` (string (uuid), required)
      - `amountMinor` (number, required)
      - `receivedOn` (string (date), required)
      - `source` (string, required): one of `manual`, `sync`.
      - `note` (string, required, nullable)
    - `chase` (array of object, required)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `offsetDays` (number, required)
      - `state` (string, required): one of `drafted`, `sent`, `skipped`.
      - `messageId` (string (uuid), required, nullable)
      - `skipReason` (string, required, nullable)
      - `draftedAt` (string (date-time), required, nullable)
      - `sentAt` (string (date-time), required, nullable)
    - `nextChase` (object, required, nullable)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `at` (string (date-time), required)
      - `autoSend` (boolean, required)
    - `chasePaused` (boolean, required)
  - `totals` (object, required)
    - `agreedMinor` (number, required)
    - `invoicedMinor` (number, required)
    - `paidMinor` (number, required)
    - `outstandingMinor` (number, required)
  - `commission` (object, required)
    - `percent` (number, required)
    - `source` (string, required): one of `locked`, `deal`, `roster`, `organization`, `none`.
    - `overridePercent` (number, required, nullable)
    - `bookedMinor` (number, required)
    - `earnedMinor` (number, required)
    - `agencyName` (string, required)
  - `chaseSequence` (string, required): one of `workspace`, `deal`.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Agreed**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/fees/b5d7f9b1-3c5e-4a7c-8f9b-1d3f5a7c9e13" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "agreed"
}'
```

Answers 200:

```json
{
  "data": {
    "currency": "EUR",
    "fees": [
      {
        "id": "b5d7f9b1-3c5e-4a7c-8f9b-1d3f5a7c9e13",
        "kind": "fixed",
        "label": "Integration fee",
        "amountMinor": 200000,
        "taxPercent": null,
        "deliverableId": "d3f5a7c9-1e3a-4c5e-8b7d-9f1a3c5e7b68",
        "condition": null,
        "status": "agreed"
      }
    ],
    "splits": [
      {
        "id": "c8e0a2c4-6d8f-4b0d-9a2c-4e6a8c0e2a24",
        "kind": "manager",
        "label": "Manager",
        "recipientName": "Alex Martin",
        "recipientUserId": "user_2x8Kq",
        "sharePercent": 10,
        "amountMinor": null,
        "computedAmountMinor": 20000
      }
    ],
    "invoices": [
      {
        "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
        "number": "INV-12",
        "kind": "full",
        "issuedOn": "2026-11-20",
        "dueKind": "date",
        "dueOn": "2026-12-20",
        "amountMinor": 200000,
        "taxMinor": 0,
        "currency": "EUR",
        "paidMinor": 0,
        "status": "sent",
        "daysLate": null,
        "pdfFileId": null,
        "billTo": {
          "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
          "name": "Jo Rivera",
          "email": "jo.partnerships@acme.test.beplan.local",
          "role": "Partnerships",
          "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
          "erased": false
        },
        "connectedTo": null,
        "externalUrl": null,
        "syncedAt": null,
        "payments": [],
        "chase": [],
        "nextChase": {
          "stepPosition": 1,
          "tone": "nudge",
          "at": "2026-12-23T09:00:00.000Z",
          "autoSend": false
        },
        "chasePaused": false
      }
    ],
    "totals": {
      "agreedMinor": 200000,
      "invoicedMinor": 200000,
      "paidMinor": 0,
      "outstandingMinor": 200000
    },
    "commission": {
      "percent": 20,
      "source": "roster",
      "overridePercent": null,
      "bookedMinor": 40000,
      "earnedMinor": 0,
      "agencyName": "Studio Halden"
    },
    "chaseSequence": "workspace"
  }
}
```


## Remove a fee

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/fees/{itemId}` · operationId `deals.fees.delete`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Removes a fee. Answers the deal's money. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, DealMoneyDetail)
  - `currency` (string, required)
  - `fees` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind` (may gain values).
    - `label` (string, required)
    - `amountMinor` (number, required)
    - `taxPercent` (number, required, nullable)
    - `deliverableId` (string (uuid), required, nullable)
    - `condition` (string, required, nullable)
    - `status` (string, required): one of `proposed`, `agreed`, `due`, `cancelled`.
  - `splits` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `manager`, `co_creator`, `other`.
    - `label` (string, required)
    - `recipientName` (string, required, nullable)
    - `recipientUserId` (string, required, nullable)
    - `sharePercent` (number, required, nullable)
    - `amountMinor` (number, required, nullable)
    - `computedAmountMinor` (number, required)
  - `invoices` (array of object, required)
    - `id` (string (uuid), required)
    - `number` (string, required)
    - `kind` (string, required): one of `full`, `deposit`, `balance`.
    - `issuedOn` (string (date), required, nullable)
    - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
    - `dueOn` (string (date), required, nullable)
    - `amountMinor` (number, required)
    - `taxMinor` (number, required)
    - `currency` (string, required)
    - `paidMinor` (number, required)
    - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
    - `daysLate` (number, required, nullable)
    - `pdfFileId` (string (uuid), required, nullable)
    - `billTo` (object, required, nullable, DealContactRef)
      - `id` (string (uuid), required)
      - `name` (string, required, nullable)
      - `email` (string, required, nullable)
      - `role` (string, required, nullable)
      - `companyId` (string (uuid), required, nullable)
      - `erased` (boolean, required)
    - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
    - `externalUrl` (string, required, nullable)
    - `syncedAt` (string (date-time), required, nullable)
    - `payments` (array of object, required)
      - `id` (string (uuid), required)
      - `amountMinor` (number, required)
      - `receivedOn` (string (date), required)
      - `source` (string, required): one of `manual`, `sync`.
      - `note` (string, required, nullable)
    - `chase` (array of object, required)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `offsetDays` (number, required)
      - `state` (string, required): one of `drafted`, `sent`, `skipped`.
      - `messageId` (string (uuid), required, nullable)
      - `skipReason` (string, required, nullable)
      - `draftedAt` (string (date-time), required, nullable)
      - `sentAt` (string (date-time), required, nullable)
    - `nextChase` (object, required, nullable)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `at` (string (date-time), required)
      - `autoSend` (boolean, required)
    - `chasePaused` (boolean, required)
  - `totals` (object, required)
    - `agreedMinor` (number, required)
    - `invoicedMinor` (number, required)
    - `paidMinor` (number, required)
    - `outstandingMinor` (number, required)
  - `commission` (object, required)
    - `percent` (number, required)
    - `source` (string, required): one of `locked`, `deal`, `roster`, `organization`, `none`.
    - `overridePercent` (number, required, nullable)
    - `bookedMinor` (number, required)
    - `earnedMinor` (number, required)
    - `agencyName` (string, required)
  - `chaseSequence` (string, required): one of `workspace`, `deal`.

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Remove**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/fees/b5d7f9b1-3c5e-4a7c-8f9b-1d3f5a7c9e13" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "currency": "EUR",
    "fees": [],
    "splits": [
      {
        "id": "c8e0a2c4-6d8f-4b0d-9a2c-4e6a8c0e2a24",
        "kind": "manager",
        "label": "Manager",
        "recipientName": "Alex Martin",
        "recipientUserId": "user_2x8Kq",
        "sharePercent": 10,
        "amountMinor": null,
        "computedAmountMinor": 0
      }
    ],
    "invoices": [
      {
        "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
        "number": "INV-12",
        "kind": "full",
        "issuedOn": "2026-11-20",
        "dueKind": "date",
        "dueOn": "2026-12-20",
        "amountMinor": 200000,
        "taxMinor": 0,
        "currency": "EUR",
        "paidMinor": 0,
        "status": "sent",
        "daysLate": null,
        "pdfFileId": null,
        "billTo": {
          "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
          "name": "Jo Rivera",
          "email": "jo.partnerships@acme.test.beplan.local",
          "role": "Partnerships",
          "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
          "erased": false
        },
        "connectedTo": null,
        "externalUrl": null,
        "syncedAt": null,
        "payments": [],
        "chase": [],
        "nextChase": {
          "stepPosition": 1,
          "tone": "nudge",
          "at": "2026-12-23T09:00:00.000Z",
          "autoSend": false
        },
        "chasePaused": false
      }
    ],
    "totals": {
      "agreedMinor": 0,
      "invoicedMinor": 200000,
      "paidMinor": 0,
      "outstandingMinor": 200000
    },
    "commission": {
      "percent": 20,
      "source": "roster",
      "overridePercent": null,
      "bookedMinor": 40000,
      "earnedMinor": 0,
      "agencyName": "Studio Halden"
    },
    "chaseSequence": "workspace"
  }
}
```


## Record an invoice

`POST /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/invoices` · operationId `deals.invoices.create`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Records an invoice the talent issued (Beplan does not issue legal invoices): `number`, `amountMinor`, dates (ISO `YYYY-MM-DD`), a due date or a due rule (`dueKind`), an optional PDF (a clean deal file) and the contact it is billed to. Answers `201` with the invoice. Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `number` (string, required): 1–60 characters.
- `kind` (string, optional): one of `full`, `deposit`, `balance`.
- `issuedOn` (string (date), optional, nullable)
- `dueKind` (string, optional): one of `date`, `on_signature`, `on_delivery`.
- `dueOn` (string (date), optional, nullable)
- `amountMinor` (integer, required): from 0 to 10000000000000.
- `taxMinor` (integer, optional): from 0 to 10000000000000.
- `currency` (string, optional): matches `^[A-Z]{3}$`.
- `status` (string, optional): one of `draft`, `sent`, `void`.
- `pdfFileId` (string (uuid), optional, nullable)
- `billToContactId` (string (uuid), optional, nullable)

**201 Created**

- `data` (object, required, DealInvoice)
  - `id` (string (uuid), required)
  - `number` (string, required)
  - `kind` (string, required): one of `full`, `deposit`, `balance` (may gain values).
  - `issuedOn` (string (date), required, nullable)
  - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery` (may gain values).
  - `dueOn` (string (date), required, nullable)
  - `amountMinor` (number, required)
  - `taxMinor` (number, required)
  - `currency` (string, required)
  - `paidMinor` (number, required)
  - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
  - `daysLate` (number, required, nullable)
  - `pdfFileId` (string (uuid), required, nullable)
  - `billTo` (object, required, nullable, DealContactRef)
    - `id` (string (uuid), required)
    - `name` (string, required, nullable)
    - `email` (string, required, nullable)
    - `role` (string, required, nullable)
    - `companyId` (string (uuid), required, nullable)
    - `erased` (boolean, required)
  - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
  - `externalUrl` (string, required, nullable)
  - `syncedAt` (string (date-time), required, nullable)
  - `payments` (array of object, required)
    - `id` (string (uuid), required)
    - `amountMinor` (number, required)
    - `receivedOn` (string (date), required)
    - `source` (string, required): one of `manual`, `sync`.
    - `note` (string, required, nullable)
  - `chase` (array of object, required)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `offsetDays` (number, required)
    - `state` (string, required): one of `drafted`, `sent`, `skipped`.
    - `messageId` (string (uuid), required, nullable)
    - `skipReason` (string, required, nullable)
    - `draftedAt` (string (date-time), required, nullable)
    - `sentAt` (string (date-time), required, nullable)
  - `nextChase` (object, required, nullable)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `at` (string (date-time), required)
    - `autoSend` (boolean, required)
  - `chasePaused` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `CONTACT_NOT_FOUND` | This contact doesn't exist in this organization. |
| 404 | `DEAL_FILE_NOT_FOUND` | This file doesn't exist on this deal. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: INV-12, due in December**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/invoices" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "number": "INV-12",
  "amountMinor": 200000,
  "issuedOn": "2026-11-20",
  "dueOn": "2026-12-20"
}'
```

Answers 201:

```json
{
  "data": {
    "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
    "number": "INV-12",
    "kind": "full",
    "issuedOn": "2026-11-20",
    "dueKind": "date",
    "dueOn": "2026-12-20",
    "amountMinor": 200000,
    "taxMinor": 0,
    "currency": "EUR",
    "paidMinor": 0,
    "status": "draft",
    "daysLate": null,
    "pdfFileId": null,
    "billTo": {
      "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
      "name": "Jo Rivera",
      "email": "jo.partnerships@acme.test.beplan.local",
      "role": "Partnerships",
      "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
      "erased": false
    },
    "connectedTo": null,
    "externalUrl": null,
    "syncedAt": null,
    "payments": [],
    "chase": [],
    "nextChase": null,
    "chasePaused": false
  }
}
```


## Change an invoice

`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/invoices/{itemId}` · operationId `deals.invoices.update`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Changes the given fields of an invoice (mark it `sent`, fix a date…). Answers the invoice. Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `number` (string, optional): 1–60 characters.
- `kind` (string, optional): one of `full`, `deposit`, `balance`.
- `issuedOn` (string (date), optional, nullable)
- `dueKind` (string, optional): one of `date`, `on_signature`, `on_delivery`.
- `dueOn` (string (date), optional, nullable)
- `amountMinor` (integer, optional): from 0 to 10000000000000.
- `taxMinor` (integer, optional): from 0 to 10000000000000.
- `currency` (string, optional): matches `^[A-Z]{3}$`.
- `status` (string, optional): one of `draft`, `sent`, `void`.
- `pdfFileId` (string (uuid), optional, nullable)
- `billToContactId` (string (uuid), optional, nullable)

**200 OK**

- `data` (object, required, DealInvoice)
  - `id` (string (uuid), required)
  - `number` (string, required)
  - `kind` (string, required): one of `full`, `deposit`, `balance` (may gain values).
  - `issuedOn` (string (date), required, nullable)
  - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery` (may gain values).
  - `dueOn` (string (date), required, nullable)
  - `amountMinor` (number, required)
  - `taxMinor` (number, required)
  - `currency` (string, required)
  - `paidMinor` (number, required)
  - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
  - `daysLate` (number, required, nullable)
  - `pdfFileId` (string (uuid), required, nullable)
  - `billTo` (object, required, nullable, DealContactRef)
    - `id` (string (uuid), required)
    - `name` (string, required, nullable)
    - `email` (string, required, nullable)
    - `role` (string, required, nullable)
    - `companyId` (string (uuid), required, nullable)
    - `erased` (boolean, required)
  - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
  - `externalUrl` (string, required, nullable)
  - `syncedAt` (string (date-time), required, nullable)
  - `payments` (array of object, required)
    - `id` (string (uuid), required)
    - `amountMinor` (number, required)
    - `receivedOn` (string (date), required)
    - `source` (string, required): one of `manual`, `sync`.
    - `note` (string, required, nullable)
  - `chase` (array of object, required)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `offsetDays` (number, required)
    - `state` (string, required): one of `drafted`, `sent`, `skipped`.
    - `messageId` (string (uuid), required, nullable)
    - `skipReason` (string, required, nullable)
    - `draftedAt` (string (date-time), required, nullable)
    - `sentAt` (string (date-time), required, nullable)
  - `nextChase` (object, required, nullable)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `at` (string (date-time), required)
    - `autoSend` (boolean, required)
  - `chasePaused` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `CONTACT_NOT_FOUND` | This contact doesn't exist in this organization. |
| 404 | `DEAL_FILE_NOT_FOUND` | This file doesn't exist on this deal. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Sent**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/invoices/d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "sent"
}'
```

Answers 200:

```json
{
  "data": {
    "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
    "number": "INV-12",
    "kind": "full",
    "issuedOn": "2026-11-20",
    "dueKind": "date",
    "dueOn": "2026-12-20",
    "amountMinor": 200000,
    "taxMinor": 0,
    "currency": "EUR",
    "paidMinor": 0,
    "status": "sent",
    "daysLate": null,
    "pdfFileId": null,
    "billTo": {
      "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
      "name": "Jo Rivera",
      "email": "jo.partnerships@acme.test.beplan.local",
      "role": "Partnerships",
      "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
      "erased": false
    },
    "connectedTo": null,
    "externalUrl": null,
    "syncedAt": null,
    "payments": [],
    "chase": [],
    "nextChase": {
      "stepPosition": 1,
      "tone": "nudge",
      "at": "2026-12-23T09:00:00.000Z",
      "autoSend": false
    },
    "chasePaused": false
  }
}
```


## Remove an invoice

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/invoices/{itemId}` · operationId `deals.invoices.delete`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Removes an invoice record with its payments and chase. Answers `204`. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |

**204 No content**

No content.

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Remove**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/invoices/d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 204 with no content.


## Pause or resume an invoice's chase

`POST /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/invoices/{itemId}/chase/pause` · operationId `deals.invoices.chase.pause`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Pauses (`paused: true`) or resumes the payment chase of one invoice. Needs a role that manages deals too. Answers the invoice. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `paused` (boolean, required)

**200 OK**

- `data` (object, required, DealInvoice)
  - `id` (string (uuid), required)
  - `number` (string, required)
  - `kind` (string, required): one of `full`, `deposit`, `balance` (may gain values).
  - `issuedOn` (string (date), required, nullable)
  - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery` (may gain values).
  - `dueOn` (string (date), required, nullable)
  - `amountMinor` (number, required)
  - `taxMinor` (number, required)
  - `currency` (string, required)
  - `paidMinor` (number, required)
  - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
  - `daysLate` (number, required, nullable)
  - `pdfFileId` (string (uuid), required, nullable)
  - `billTo` (object, required, nullable, DealContactRef)
    - `id` (string (uuid), required)
    - `name` (string, required, nullable)
    - `email` (string, required, nullable)
    - `role` (string, required, nullable)
    - `companyId` (string (uuid), required, nullable)
    - `erased` (boolean, required)
  - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
  - `externalUrl` (string, required, nullable)
  - `syncedAt` (string (date-time), required, nullable)
  - `payments` (array of object, required)
    - `id` (string (uuid), required)
    - `amountMinor` (number, required)
    - `receivedOn` (string (date), required)
    - `source` (string, required): one of `manual`, `sync`.
    - `note` (string, required, nullable)
  - `chase` (array of object, required)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `offsetDays` (number, required)
    - `state` (string, required): one of `drafted`, `sent`, `skipped`.
    - `messageId` (string (uuid), required, nullable)
    - `skipReason` (string, required, nullable)
    - `draftedAt` (string (date-time), required, nullable)
    - `sentAt` (string (date-time), required, nullable)
  - `nextChase` (object, required, nullable)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `at` (string (date-time), required)
    - `autoSend` (boolean, required)
  - `chasePaused` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Pause**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/invoices/d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35/chase/pause" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "paused": true
}'
```

Answers 200:

```json
{
  "data": {
    "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
    "number": "INV-12",
    "kind": "full",
    "issuedOn": "2026-11-20",
    "dueKind": "date",
    "dueOn": "2026-12-20",
    "amountMinor": 200000,
    "taxMinor": 0,
    "currency": "EUR",
    "paidMinor": 0,
    "status": "sent",
    "daysLate": null,
    "pdfFileId": null,
    "billTo": {
      "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
      "name": "Jo Rivera",
      "email": "jo.partnerships@acme.test.beplan.local",
      "role": "Partnerships",
      "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
      "erased": false
    },
    "connectedTo": null,
    "externalUrl": null,
    "syncedAt": null,
    "payments": [],
    "chase": [],
    "nextChase": null,
    "chasePaused": true
  }
}
```


## Send a payment reminder now

`POST /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/invoices/{itemId}/chase/{position}/send` · operationId `deals.invoices.chase.send`

- Scope: `deals:send`, and also `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Emails the brand one step of an invoice's payment chase now (`position`, from the invoice's chase steps on `deals.money.get`), from the deal's address, with the invoice PDF attached when there is one. **It reaches a real person outside the organization: confirm with the user first.** `text` replaces the step's drafted text; without it, the draft (or the tone's default copy) is sent. Works on a paused chase. Needs both the `deals:send` and the `deals:finances` scopes, and a role that manages deals as well as the deal's money. `409 CONFLICT` when the step was already sent or the invoice can't be chased (`details.reason`: `paid`, `not_open`, `deal_exit`); `422 DEAL_RECIPIENT_REQUIRED` when the deal has no one to send it to. Send an `Idempotency-Key`: a repeat without one sends a second email. Answers the invoice. Counts against the smaller budget of operations that leave Beplan (30 per minute per connection). Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |
| `position` | path | integer | yes | from 0 to 10 |

**Request body** (JSON, required)

- `text` (string, optional): 1–10000 characters.

**200 OK**

- `data` (object, required, DealInvoice)
  - `id` (string (uuid), required)
  - `number` (string, required)
  - `kind` (string, required): one of `full`, `deposit`, `balance` (may gain values).
  - `issuedOn` (string (date), required, nullable)
  - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery` (may gain values).
  - `dueOn` (string (date), required, nullable)
  - `amountMinor` (number, required)
  - `taxMinor` (number, required)
  - `currency` (string, required)
  - `paidMinor` (number, required)
  - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
  - `daysLate` (number, required, nullable)
  - `pdfFileId` (string (uuid), required, nullable)
  - `billTo` (object, required, nullable, DealContactRef)
    - `id` (string (uuid), required)
    - `name` (string, required, nullable)
    - `email` (string, required, nullable)
    - `role` (string, required, nullable)
    - `companyId` (string (uuid), required, nullable)
    - `erased` (boolean, required)
  - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
  - `externalUrl` (string, required, nullable)
  - `syncedAt` (string (date-time), required, nullable)
  - `payments` (array of object, required)
    - `id` (string (uuid), required)
    - `amountMinor` (number, required)
    - `receivedOn` (string (date), required)
    - `source` (string, required): one of `manual`, `sync`.
    - `note` (string, required, nullable)
  - `chase` (array of object, required)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `offsetDays` (number, required)
    - `state` (string, required): one of `drafted`, `sent`, `skipped`.
    - `messageId` (string (uuid), required, nullable)
    - `skipReason` (string, required, nullable)
    - `draftedAt` (string (date-time), required, nullable)
    - `sentAt` (string (date-time), required, nullable)
  - `nextChase` (object, required, nullable)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `at` (string (date-time), required)
    - `autoSend` (boolean, required)
  - `chasePaused` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |
| 409 | `CONFLICT` | This changed in the meantime. Refresh and try again. |
| 422 | `DEAL_RECIPIENT_REQUIRED` | Add someone with an email address to send this to. |
| 503 | `DEAL_MAIL_UNAVAILABLE` | Email can't be sent right now. Your message is saved; try again shortly. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Send the first reminder as drafted**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/invoices/d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35/chase/0/send" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Answers 200:

```json
{
  "data": {
    "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
    "number": "INV-12",
    "kind": "full",
    "issuedOn": "2026-11-20",
    "dueKind": "date",
    "dueOn": "2026-12-20",
    "amountMinor": 200000,
    "taxMinor": 0,
    "currency": "EUR",
    "paidMinor": 0,
    "status": "late",
    "daysLate": 3,
    "pdfFileId": null,
    "billTo": {
      "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
      "name": "Jo Rivera",
      "email": "jo.partnerships@acme.test.beplan.local",
      "role": "Partnerships",
      "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
      "erased": false
    },
    "connectedTo": null,
    "externalUrl": null,
    "syncedAt": null,
    "payments": [],
    "chase": [
      {
        "stepPosition": 0,
        "tone": "nudge",
        "offsetDays": 0,
        "state": "sent",
        "messageId": "f4a6c8e0-2b4d-4f6a-9c1e-3d5f7a9b1c35",
        "skipReason": null,
        "draftedAt": "2026-12-21T09:00:00.000Z",
        "sentAt": "2026-12-23T09:12:00.000Z"
      }
    ],
    "nextChase": {
      "stepPosition": 1,
      "tone": "firm",
      "at": "2026-12-27T09:00:00.000Z",
      "autoSend": false
    },
    "chasePaused": false
  }
}
```


## Record a payment

`POST /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/invoices/{itemId}/payments` · operationId `deals.invoices.payments.create`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Records money received on an invoice (`amountMinor`, `receivedOn` as `YYYY-MM-DD`); the invoice becomes partly paid or paid, and its chase stops once paid. Answers `201` with the invoice. Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `amountMinor` (integer, required): above 0 to 10000000000000.
- `receivedOn` (string (date), required)
- `note` (string, optional, nullable): at most 280 characters.

**201 Created**

- `data` (object, required, DealInvoice)
  - `id` (string (uuid), required)
  - `number` (string, required)
  - `kind` (string, required): one of `full`, `deposit`, `balance` (may gain values).
  - `issuedOn` (string (date), required, nullable)
  - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery` (may gain values).
  - `dueOn` (string (date), required, nullable)
  - `amountMinor` (number, required)
  - `taxMinor` (number, required)
  - `currency` (string, required)
  - `paidMinor` (number, required)
  - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
  - `daysLate` (number, required, nullable)
  - `pdfFileId` (string (uuid), required, nullable)
  - `billTo` (object, required, nullable, DealContactRef)
    - `id` (string (uuid), required)
    - `name` (string, required, nullable)
    - `email` (string, required, nullable)
    - `role` (string, required, nullable)
    - `companyId` (string (uuid), required, nullable)
    - `erased` (boolean, required)
  - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
  - `externalUrl` (string, required, nullable)
  - `syncedAt` (string (date-time), required, nullable)
  - `payments` (array of object, required)
    - `id` (string (uuid), required)
    - `amountMinor` (number, required)
    - `receivedOn` (string (date), required)
    - `source` (string, required): one of `manual`, `sync`.
    - `note` (string, required, nullable)
  - `chase` (array of object, required)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `offsetDays` (number, required)
    - `state` (string, required): one of `drafted`, `sent`, `skipped`.
    - `messageId` (string (uuid), required, nullable)
    - `skipReason` (string, required, nullable)
    - `draftedAt` (string (date-time), required, nullable)
    - `sentAt` (string (date-time), required, nullable)
  - `nextChase` (object, required, nullable)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `at` (string (date-time), required)
    - `autoSend` (boolean, required)
  - `chasePaused` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Paid in full**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/invoices/d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35/payments" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "amountMinor": 200000,
  "receivedOn": "2026-12-18"
}'
```

Answers 201:

```json
{
  "data": {
    "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
    "number": "INV-12",
    "kind": "full",
    "issuedOn": "2026-11-20",
    "dueKind": "date",
    "dueOn": "2026-12-20",
    "amountMinor": 200000,
    "taxMinor": 0,
    "currency": "EUR",
    "paidMinor": 200000,
    "status": "paid",
    "daysLate": null,
    "pdfFileId": null,
    "billTo": {
      "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
      "name": "Jo Rivera",
      "email": "jo.partnerships@acme.test.beplan.local",
      "role": "Partnerships",
      "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
      "erased": false
    },
    "connectedTo": null,
    "externalUrl": null,
    "syncedAt": null,
    "payments": [
      {
        "id": "e4a6c8e0-2f4b-4d6f-9c8e-0a2c4e6a8c46",
        "amountMinor": 200000,
        "receivedOn": "2026-12-18",
        "source": "manual",
        "note": null
      }
    ],
    "chase": [],
    "nextChase": null,
    "chasePaused": false
  }
}
```


## Remove a payment

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/invoices/{itemId}/payments/{paymentId}` · operationId `deals.invoices.payments.delete`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Removes a recorded payment; the invoice's status follows. Answers the invoice. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |
| `paymentId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, DealInvoice)
  - `id` (string (uuid), required)
  - `number` (string, required)
  - `kind` (string, required): one of `full`, `deposit`, `balance` (may gain values).
  - `issuedOn` (string (date), required, nullable)
  - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery` (may gain values).
  - `dueOn` (string (date), required, nullable)
  - `amountMinor` (number, required)
  - `taxMinor` (number, required)
  - `currency` (string, required)
  - `paidMinor` (number, required)
  - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
  - `daysLate` (number, required, nullable)
  - `pdfFileId` (string (uuid), required, nullable)
  - `billTo` (object, required, nullable, DealContactRef)
    - `id` (string (uuid), required)
    - `name` (string, required, nullable)
    - `email` (string, required, nullable)
    - `role` (string, required, nullable)
    - `companyId` (string (uuid), required, nullable)
    - `erased` (boolean, required)
  - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
  - `externalUrl` (string, required, nullable)
  - `syncedAt` (string (date-time), required, nullable)
  - `payments` (array of object, required)
    - `id` (string (uuid), required)
    - `amountMinor` (number, required)
    - `receivedOn` (string (date), required)
    - `source` (string, required): one of `manual`, `sync`.
    - `note` (string, required, nullable)
  - `chase` (array of object, required)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `offsetDays` (number, required)
    - `state` (string, required): one of `drafted`, `sent`, `skipped`.
    - `messageId` (string (uuid), required, nullable)
    - `skipReason` (string, required, nullable)
    - `draftedAt` (string (date-time), required, nullable)
    - `sentAt` (string (date-time), required, nullable)
  - `nextChase` (object, required, nullable)
    - `stepPosition` (number, required)
    - `tone` (string, required): one of `nudge`, `firm`, `final`.
    - `at` (string (date-time), required)
    - `autoSend` (boolean, required)
  - `chasePaused` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Remove**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/invoices/d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35/payments/e4a6c8e0-2f4b-4d6f-9c8e-0a2c4e6a8c46" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
    "number": "INV-12",
    "kind": "full",
    "issuedOn": "2026-11-20",
    "dueKind": "date",
    "dueOn": "2026-12-20",
    "amountMinor": 200000,
    "taxMinor": 0,
    "currency": "EUR",
    "paidMinor": 0,
    "status": "sent",
    "daysLate": null,
    "pdfFileId": null,
    "billTo": {
      "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
      "name": "Jo Rivera",
      "email": "jo.partnerships@acme.test.beplan.local",
      "role": "Partnerships",
      "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
      "erased": false
    },
    "connectedTo": null,
    "externalUrl": null,
    "syncedAt": null,
    "payments": [],
    "chase": [],
    "nextChase": {
      "stepPosition": 1,
      "tone": "nudge",
      "at": "2026-12-23T09:00:00.000Z",
      "autoSend": false
    },
    "chasePaused": false
  }
}
```


## Read a deal's negotiation cards

`GET /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/kpis` · operationId `deals.kpis.get`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

The cards Beplan prepared while the deal is negotiated (past rates, this brand's payment history, expected results, terms worth pricing, risks), each with its evidence and confidence; `refreshing` while new ones are computed in the background. Reading starts nothing. Amounts in cards are ranges in minor units. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required)
  - `cards` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `own_history`, `brand_history`, `expected_results`, `price_terms`, `similar_creators`, `risk` (may gain values).
    - `title` (string, required)
    - `value` (string, required)
    - `detail` (string, required)
    - `evidence` (string, required)
    - `evidenceCount` (number, required)
    - `tone` (string, required): one of `neutral`, `caution`.
    - `confidence` (string, required): one of `high`, `medium`, `low`.
    - `dataSource` (string, required): one of `own`, `similar_creators`, `audience`.
    - `computedAt` (string (date-time), required)
  - `refreshing` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Cards**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/kpis" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "cards": [
      {
        "id": "e2a4c6e8-0b2d-4f4a-8c6e-8a0c2e4b6d24",
        "kind": "own_history",
        "title": "Your past integrations",
        "value": "1,800–2,400 EUR",
        "detail": "Your last 4 YouTube integrations of 60–90 seconds were paid in this range.",
        "evidence": "4 paid deals since March 2026",
        "evidenceCount": 4,
        "tone": "neutral",
        "confidence": "high",
        "dataSource": "own",
        "computedAt": "2026-11-19T15:05:00.000Z"
      },
      {
        "id": "f3b5d7f9-1c3e-4a5b-9d7f-9b1d3f5a7c35",
        "kind": "brand_history",
        "title": "Acme pays late",
        "value": "6 days late on average",
        "detail": "1 of 2 invoices to Acme was paid on time. Ask for a deposit or a shorter term.",
        "evidence": "2 invoices, INV-6 and INV-9",
        "evidenceCount": 2,
        "tone": "caution",
        "confidence": "medium",
        "dataSource": "own",
        "computedAt": "2026-11-19T15:05:00.000Z"
      }
    ],
    "refreshing": false
  }
}
```


## Read a deal's money

`GET /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/money` · operationId `deals.money.get`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Returns the deal's fees, splits, effective commission, invoices with their payments and chase steps, and totals (agreed, invoiced, paid, outstanding). Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, DealMoneyDetail)
  - `currency` (string, required)
  - `fees` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind` (may gain values).
    - `label` (string, required)
    - `amountMinor` (number, required)
    - `taxPercent` (number, required, nullable)
    - `deliverableId` (string (uuid), required, nullable)
    - `condition` (string, required, nullable)
    - `status` (string, required): one of `proposed`, `agreed`, `due`, `cancelled`.
  - `splits` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `manager`, `co_creator`, `other`.
    - `label` (string, required)
    - `recipientName` (string, required, nullable)
    - `recipientUserId` (string, required, nullable)
    - `sharePercent` (number, required, nullable)
    - `amountMinor` (number, required, nullable)
    - `computedAmountMinor` (number, required)
  - `invoices` (array of object, required)
    - `id` (string (uuid), required)
    - `number` (string, required)
    - `kind` (string, required): one of `full`, `deposit`, `balance`.
    - `issuedOn` (string (date), required, nullable)
    - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
    - `dueOn` (string (date), required, nullable)
    - `amountMinor` (number, required)
    - `taxMinor` (number, required)
    - `currency` (string, required)
    - `paidMinor` (number, required)
    - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
    - `daysLate` (number, required, nullable)
    - `pdfFileId` (string (uuid), required, nullable)
    - `billTo` (object, required, nullable, DealContactRef)
      - `id` (string (uuid), required)
      - `name` (string, required, nullable)
      - `email` (string, required, nullable)
      - `role` (string, required, nullable)
      - `companyId` (string (uuid), required, nullable)
      - `erased` (boolean, required)
    - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
    - `externalUrl` (string, required, nullable)
    - `syncedAt` (string (date-time), required, nullable)
    - `payments` (array of object, required)
      - `id` (string (uuid), required)
      - `amountMinor` (number, required)
      - `receivedOn` (string (date), required)
      - `source` (string, required): one of `manual`, `sync`.
      - `note` (string, required, nullable)
    - `chase` (array of object, required)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `offsetDays` (number, required)
      - `state` (string, required): one of `drafted`, `sent`, `skipped`.
      - `messageId` (string (uuid), required, nullable)
      - `skipReason` (string, required, nullable)
      - `draftedAt` (string (date-time), required, nullable)
      - `sentAt` (string (date-time), required, nullable)
    - `nextChase` (object, required, nullable)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `at` (string (date-time), required)
      - `autoSend` (boolean, required)
    - `chasePaused` (boolean, required)
  - `totals` (object, required)
    - `agreedMinor` (number, required)
    - `invoicedMinor` (number, required)
    - `paidMinor` (number, required)
    - `outstandingMinor` (number, required)
  - `commission` (object, required)
    - `percent` (number, required)
    - `source` (string, required): one of `locked`, `deal`, `roster`, `organization`, `none`.
    - `overridePercent` (number, required, nullable)
    - `bookedMinor` (number, required)
    - `earnedMinor` (number, required)
    - `agencyName` (string, required)
  - `chaseSequence` (string, required): one of `workspace`, `deal`.

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Money**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/money" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "currency": "EUR",
    "fees": [
      {
        "id": "b5d7f9b1-3c5e-4a7c-8f9b-1d3f5a7c9e13",
        "kind": "fixed",
        "label": "Integration fee",
        "amountMinor": 200000,
        "taxPercent": null,
        "deliverableId": "d3f5a7c9-1e3a-4c5e-8b7d-9f1a3c5e7b68",
        "condition": null,
        "status": "agreed"
      }
    ],
    "splits": [
      {
        "id": "c8e0a2c4-6d8f-4b0d-9a2c-4e6a8c0e2a24",
        "kind": "manager",
        "label": "Manager",
        "recipientName": "Alex Martin",
        "recipientUserId": "user_2x8Kq",
        "sharePercent": 10,
        "amountMinor": null,
        "computedAmountMinor": 20000
      }
    ],
    "invoices": [
      {
        "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
        "number": "INV-12",
        "kind": "full",
        "issuedOn": "2026-11-20",
        "dueKind": "date",
        "dueOn": "2026-12-20",
        "amountMinor": 200000,
        "taxMinor": 0,
        "currency": "EUR",
        "paidMinor": 0,
        "status": "sent",
        "daysLate": null,
        "pdfFileId": null,
        "billTo": {
          "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
          "name": "Jo Rivera",
          "email": "jo.partnerships@acme.test.beplan.local",
          "role": "Partnerships",
          "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
          "erased": false
        },
        "connectedTo": null,
        "externalUrl": null,
        "syncedAt": null,
        "payments": [],
        "chase": [],
        "nextChase": {
          "stepPosition": 1,
          "tone": "nudge",
          "at": "2026-12-23T09:00:00.000Z",
          "autoSend": false
        },
        "chasePaused": false
      }
    ],
    "totals": {
      "agreedMinor": 200000,
      "invoicedMinor": 200000,
      "paidMinor": 0,
      "outstandingMinor": 200000
    },
    "commission": {
      "percent": 20,
      "source": "roster",
      "overridePercent": null,
      "bookedMinor": 40000,
      "earnedMinor": 0,
      "agencyName": "Studio Halden"
    },
    "chaseSequence": "workspace"
  }
}
```


## Add a split

`POST /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/splits` · operationId `deals.splits.create`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Adds who else receives part of the deal's money (a manager, a co-creator): a share (`sharePercent`) or a fixed amount (`amountMinor`), exactly one. Answers `201` with the deal's money. Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `kind` (string, required): one of `manager`, `co_creator`, `other`.
- `label` (string, required): 1–160 characters.
- `recipientName` (string, optional, nullable): at most 160 characters.
- `recipientUserId` (string, optional, nullable): 1–128 characters.
- `sharePercent` (number, optional, nullable): from 0 to 100.
- `amountMinor` (integer, optional, nullable): from 0 to 10000000000000.

**201 Created**

- `data` (object, required, DealMoneyDetail)
  - `currency` (string, required)
  - `fees` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind` (may gain values).
    - `label` (string, required)
    - `amountMinor` (number, required)
    - `taxPercent` (number, required, nullable)
    - `deliverableId` (string (uuid), required, nullable)
    - `condition` (string, required, nullable)
    - `status` (string, required): one of `proposed`, `agreed`, `due`, `cancelled`.
  - `splits` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `manager`, `co_creator`, `other`.
    - `label` (string, required)
    - `recipientName` (string, required, nullable)
    - `recipientUserId` (string, required, nullable)
    - `sharePercent` (number, required, nullable)
    - `amountMinor` (number, required, nullable)
    - `computedAmountMinor` (number, required)
  - `invoices` (array of object, required)
    - `id` (string (uuid), required)
    - `number` (string, required)
    - `kind` (string, required): one of `full`, `deposit`, `balance`.
    - `issuedOn` (string (date), required, nullable)
    - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
    - `dueOn` (string (date), required, nullable)
    - `amountMinor` (number, required)
    - `taxMinor` (number, required)
    - `currency` (string, required)
    - `paidMinor` (number, required)
    - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
    - `daysLate` (number, required, nullable)
    - `pdfFileId` (string (uuid), required, nullable)
    - `billTo` (object, required, nullable, DealContactRef)
      - `id` (string (uuid), required)
      - `name` (string, required, nullable)
      - `email` (string, required, nullable)
      - `role` (string, required, nullable)
      - `companyId` (string (uuid), required, nullable)
      - `erased` (boolean, required)
    - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
    - `externalUrl` (string, required, nullable)
    - `syncedAt` (string (date-time), required, nullable)
    - `payments` (array of object, required)
      - `id` (string (uuid), required)
      - `amountMinor` (number, required)
      - `receivedOn` (string (date), required)
      - `source` (string, required): one of `manual`, `sync`.
      - `note` (string, required, nullable)
    - `chase` (array of object, required)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `offsetDays` (number, required)
      - `state` (string, required): one of `drafted`, `sent`, `skipped`.
      - `messageId` (string (uuid), required, nullable)
      - `skipReason` (string, required, nullable)
      - `draftedAt` (string (date-time), required, nullable)
      - `sentAt` (string (date-time), required, nullable)
    - `nextChase` (object, required, nullable)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `at` (string (date-time), required)
      - `autoSend` (boolean, required)
    - `chasePaused` (boolean, required)
  - `totals` (object, required)
    - `agreedMinor` (number, required)
    - `invoicedMinor` (number, required)
    - `paidMinor` (number, required)
    - `outstandingMinor` (number, required)
  - `commission` (object, required)
    - `percent` (number, required)
    - `source` (string, required): one of `locked`, `deal`, `roster`, `organization`, `none`.
    - `overridePercent` (number, required, nullable)
    - `bookedMinor` (number, required)
    - `earnedMinor` (number, required)
    - `agencyName` (string, required)
  - `chaseSequence` (string, required): one of `workspace`, `deal`.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |
| 404 | `MEMBER_NOT_FOUND` | This person isn't a member of the organization anymore. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A manager's 10 %**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/splits" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "manager",
  "label": "Manager",
  "sharePercent": 10
}'
```

Answers 201:

```json
{
  "data": {
    "currency": "EUR",
    "fees": [
      {
        "id": "b5d7f9b1-3c5e-4a7c-8f9b-1d3f5a7c9e13",
        "kind": "fixed",
        "label": "Integration fee",
        "amountMinor": 200000,
        "taxPercent": null,
        "deliverableId": "d3f5a7c9-1e3a-4c5e-8b7d-9f1a3c5e7b68",
        "condition": null,
        "status": "agreed"
      }
    ],
    "splits": [
      {
        "id": "c8e0a2c4-6d8f-4b0d-9a2c-4e6a8c0e2a24",
        "kind": "manager",
        "label": "Manager",
        "recipientName": "Alex Martin",
        "recipientUserId": "user_2x8Kq",
        "sharePercent": 10,
        "amountMinor": null,
        "computedAmountMinor": 20000
      }
    ],
    "invoices": [
      {
        "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
        "number": "INV-12",
        "kind": "full",
        "issuedOn": "2026-11-20",
        "dueKind": "date",
        "dueOn": "2026-12-20",
        "amountMinor": 200000,
        "taxMinor": 0,
        "currency": "EUR",
        "paidMinor": 0,
        "status": "sent",
        "daysLate": null,
        "pdfFileId": null,
        "billTo": {
          "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
          "name": "Jo Rivera",
          "email": "jo.partnerships@acme.test.beplan.local",
          "role": "Partnerships",
          "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
          "erased": false
        },
        "connectedTo": null,
        "externalUrl": null,
        "syncedAt": null,
        "payments": [],
        "chase": [],
        "nextChase": {
          "stepPosition": 1,
          "tone": "nudge",
          "at": "2026-12-23T09:00:00.000Z",
          "autoSend": false
        },
        "chasePaused": false
      }
    ],
    "totals": {
      "agreedMinor": 200000,
      "invoicedMinor": 200000,
      "paidMinor": 0,
      "outstandingMinor": 200000
    },
    "commission": {
      "percent": 20,
      "source": "roster",
      "overridePercent": null,
      "bookedMinor": 40000,
      "earnedMinor": 0,
      "agencyName": "Studio Halden"
    },
    "chaseSequence": "workspace"
  }
}
```


## Change a split

`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/splits/{itemId}` · operationId `deals.splits.update`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Changes a split's label, recipient name, share or amount. Answers the deal's money. Amounts are integers in minor units (cents) of the deal's currency (ISO 4217). Beplan records the money, it never moves any. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `label` (string, optional): 1–160 characters.
- `recipientName` (string, optional, nullable): at most 160 characters.
- `sharePercent` (number, optional, nullable): from 0 to 100.
- `amountMinor` (integer, optional, nullable): from 0 to 10000000000000.

**200 OK**

- `data` (object, required, DealMoneyDetail)
  - `currency` (string, required)
  - `fees` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind` (may gain values).
    - `label` (string, required)
    - `amountMinor` (number, required)
    - `taxPercent` (number, required, nullable)
    - `deliverableId` (string (uuid), required, nullable)
    - `condition` (string, required, nullable)
    - `status` (string, required): one of `proposed`, `agreed`, `due`, `cancelled`.
  - `splits` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `manager`, `co_creator`, `other`.
    - `label` (string, required)
    - `recipientName` (string, required, nullable)
    - `recipientUserId` (string, required, nullable)
    - `sharePercent` (number, required, nullable)
    - `amountMinor` (number, required, nullable)
    - `computedAmountMinor` (number, required)
  - `invoices` (array of object, required)
    - `id` (string (uuid), required)
    - `number` (string, required)
    - `kind` (string, required): one of `full`, `deposit`, `balance`.
    - `issuedOn` (string (date), required, nullable)
    - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
    - `dueOn` (string (date), required, nullable)
    - `amountMinor` (number, required)
    - `taxMinor` (number, required)
    - `currency` (string, required)
    - `paidMinor` (number, required)
    - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
    - `daysLate` (number, required, nullable)
    - `pdfFileId` (string (uuid), required, nullable)
    - `billTo` (object, required, nullable, DealContactRef)
      - `id` (string (uuid), required)
      - `name` (string, required, nullable)
      - `email` (string, required, nullable)
      - `role` (string, required, nullable)
      - `companyId` (string (uuid), required, nullable)
      - `erased` (boolean, required)
    - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
    - `externalUrl` (string, required, nullable)
    - `syncedAt` (string (date-time), required, nullable)
    - `payments` (array of object, required)
      - `id` (string (uuid), required)
      - `amountMinor` (number, required)
      - `receivedOn` (string (date), required)
      - `source` (string, required): one of `manual`, `sync`.
      - `note` (string, required, nullable)
    - `chase` (array of object, required)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `offsetDays` (number, required)
      - `state` (string, required): one of `drafted`, `sent`, `skipped`.
      - `messageId` (string (uuid), required, nullable)
      - `skipReason` (string, required, nullable)
      - `draftedAt` (string (date-time), required, nullable)
      - `sentAt` (string (date-time), required, nullable)
    - `nextChase` (object, required, nullable)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `at` (string (date-time), required)
      - `autoSend` (boolean, required)
    - `chasePaused` (boolean, required)
  - `totals` (object, required)
    - `agreedMinor` (number, required)
    - `invoicedMinor` (number, required)
    - `paidMinor` (number, required)
    - `outstandingMinor` (number, required)
  - `commission` (object, required)
    - `percent` (number, required)
    - `source` (string, required): one of `locked`, `deal`, `roster`, `organization`, `none`.
    - `overridePercent` (number, required, nullable)
    - `bookedMinor` (number, required)
    - `earnedMinor` (number, required)
    - `agencyName` (string, required)
  - `chaseSequence` (string, required): one of `workspace`, `deal`.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: 12 %**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/splits/c8e0a2c4-6d8f-4b0d-9a2c-4e6a8c0e2a24" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "sharePercent": 12
}'
```

Answers 200:

```json
{
  "data": {
    "currency": "EUR",
    "fees": [
      {
        "id": "b5d7f9b1-3c5e-4a7c-8f9b-1d3f5a7c9e13",
        "kind": "fixed",
        "label": "Integration fee",
        "amountMinor": 200000,
        "taxPercent": null,
        "deliverableId": "d3f5a7c9-1e3a-4c5e-8b7d-9f1a3c5e7b68",
        "condition": null,
        "status": "agreed"
      }
    ],
    "splits": [
      {
        "id": "c8e0a2c4-6d8f-4b0d-9a2c-4e6a8c0e2a24",
        "kind": "manager",
        "label": "Manager",
        "recipientName": "Alex Martin",
        "recipientUserId": "user_2x8Kq",
        "sharePercent": 12,
        "amountMinor": null,
        "computedAmountMinor": 24000
      }
    ],
    "invoices": [
      {
        "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
        "number": "INV-12",
        "kind": "full",
        "issuedOn": "2026-11-20",
        "dueKind": "date",
        "dueOn": "2026-12-20",
        "amountMinor": 200000,
        "taxMinor": 0,
        "currency": "EUR",
        "paidMinor": 0,
        "status": "sent",
        "daysLate": null,
        "pdfFileId": null,
        "billTo": {
          "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
          "name": "Jo Rivera",
          "email": "jo.partnerships@acme.test.beplan.local",
          "role": "Partnerships",
          "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
          "erased": false
        },
        "connectedTo": null,
        "externalUrl": null,
        "syncedAt": null,
        "payments": [],
        "chase": [],
        "nextChase": {
          "stepPosition": 1,
          "tone": "nudge",
          "at": "2026-12-23T09:00:00.000Z",
          "autoSend": false
        },
        "chasePaused": false
      }
    ],
    "totals": {
      "agreedMinor": 200000,
      "invoicedMinor": 200000,
      "paidMinor": 0,
      "outstandingMinor": 200000
    },
    "commission": {
      "percent": 20,
      "source": "roster",
      "overridePercent": null,
      "bookedMinor": 40000,
      "earnedMinor": 0,
      "agencyName": "Studio Halden"
    },
    "chaseSequence": "workspace"
  }
}
```


## Remove a split

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/deals/{dealId}/splits/{itemId}` · operationId `deals.splits.delete`

- Scope: `deals:finances`
- Role permission: See and edit money (`deals:finances`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Removes a split. Answers the deal's money. Needs the organization's Deals feature (`403 DEALS_NOT_AVAILABLE` otherwise).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `dealId` | path | string (uuid) | yes |  |
| `itemId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, DealMoneyDetail)
  - `currency` (string, required)
  - `fees` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `offer`, `fixed`, `per_deliverable`, `bonus`, `kill_fee`, `late_fee`, `extra_revision`, `expense`, `in_kind` (may gain values).
    - `label` (string, required)
    - `amountMinor` (number, required)
    - `taxPercent` (number, required, nullable)
    - `deliverableId` (string (uuid), required, nullable)
    - `condition` (string, required, nullable)
    - `status` (string, required): one of `proposed`, `agreed`, `due`, `cancelled`.
  - `splits` (array of object, required)
    - `id` (string (uuid), required)
    - `kind` (string, required): one of `manager`, `co_creator`, `other`.
    - `label` (string, required)
    - `recipientName` (string, required, nullable)
    - `recipientUserId` (string, required, nullable)
    - `sharePercent` (number, required, nullable)
    - `amountMinor` (number, required, nullable)
    - `computedAmountMinor` (number, required)
  - `invoices` (array of object, required)
    - `id` (string (uuid), required)
    - `number` (string, required)
    - `kind` (string, required): one of `full`, `deposit`, `balance`.
    - `issuedOn` (string (date), required, nullable)
    - `dueKind` (string, required): one of `date`, `on_signature`, `on_delivery`.
    - `dueOn` (string (date), required, nullable)
    - `amountMinor` (number, required)
    - `taxMinor` (number, required)
    - `currency` (string, required)
    - `paidMinor` (number, required)
    - `status` (string, required): one of `draft`, `sent`, `partly_paid`, `paid`, `late`, `void` (may gain values).
    - `daysLate` (number, required, nullable)
    - `pdfFileId` (string (uuid), required, nullable)
    - `billTo` (object, required, nullable, DealContactRef)
      - `id` (string (uuid), required)
      - `name` (string, required, nullable)
      - `email` (string, required, nullable)
      - `role` (string, required, nullable)
      - `companyId` (string (uuid), required, nullable)
      - `erased` (boolean, required)
    - `connectedTo` (string, required, nullable): one of `pennylane`, `qonto`, `storecove`, `xero`, `quickbooks`.
    - `externalUrl` (string, required, nullable)
    - `syncedAt` (string (date-time), required, nullable)
    - `payments` (array of object, required)
      - `id` (string (uuid), required)
      - `amountMinor` (number, required)
      - `receivedOn` (string (date), required)
      - `source` (string, required): one of `manual`, `sync`.
      - `note` (string, required, nullable)
    - `chase` (array of object, required)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `offsetDays` (number, required)
      - `state` (string, required): one of `drafted`, `sent`, `skipped`.
      - `messageId` (string (uuid), required, nullable)
      - `skipReason` (string, required, nullable)
      - `draftedAt` (string (date-time), required, nullable)
      - `sentAt` (string (date-time), required, nullable)
    - `nextChase` (object, required, nullable)
      - `stepPosition` (number, required)
      - `tone` (string, required): one of `nudge`, `firm`, `final`.
      - `at` (string (date-time), required)
      - `autoSend` (boolean, required)
    - `chasePaused` (boolean, required)
  - `totals` (object, required)
    - `agreedMinor` (number, required)
    - `invoicedMinor` (number, required)
    - `paidMinor` (number, required)
    - `outstandingMinor` (number, required)
  - `commission` (object, required)
    - `percent` (number, required)
    - `source` (string, required): one of `locked`, `deal`, `roster`, `organization`, `none`.
    - `overridePercent` (number, required, nullable)
    - `bookedMinor` (number, required)
    - `earnedMinor` (number, required)
    - `agencyName` (string, required)
  - `chaseSequence` (string, required): one of `workspace`, `deal`.

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `DEALS_NOT_AVAILABLE` | Deals aren't available for this organization yet. |
| 404 | `DEAL_ITEM_NOT_FOUND` | This doesn't exist on this deal anymore. |
| 404 | `DEAL_NOT_FOUND` | This deal doesn't exist in this workspace. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `MISSING_PERMISSION` (403), `ORGANIZATION_NOT_FOUND` (404), `WORKSPACE_NOT_FOUND` (404), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Remove**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/workspaces/3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62/deals/5b2e8c41-7d3a-4f19-9e6b-0c8a2d4f6e13/splits/c8e0a2c4-6d8f-4b0d-9a2c-4e6a8c0e2a24" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "currency": "EUR",
    "fees": [
      {
        "id": "b5d7f9b1-3c5e-4a7c-8f9b-1d3f5a7c9e13",
        "kind": "fixed",
        "label": "Integration fee",
        "amountMinor": 200000,
        "taxPercent": null,
        "deliverableId": "d3f5a7c9-1e3a-4c5e-8b7d-9f1a3c5e7b68",
        "condition": null,
        "status": "agreed"
      }
    ],
    "splits": [],
    "invoices": [
      {
        "id": "d1f3b5d7-9e1a-4c3e-8b5d-7f9b1d3f5b35",
        "number": "INV-12",
        "kind": "full",
        "issuedOn": "2026-11-20",
        "dueKind": "date",
        "dueOn": "2026-12-20",
        "amountMinor": 200000,
        "taxMinor": 0,
        "currency": "EUR",
        "paidMinor": 0,
        "status": "sent",
        "daysLate": null,
        "pdfFileId": null,
        "billTo": {
          "id": "c2e6a8d4-5f1b-4e3c-8a7d-9b0f2c4e6a81",
          "name": "Jo Rivera",
          "email": "jo.partnerships@acme.test.beplan.local",
          "role": "Partnerships",
          "companyId": "8a4d2f6c-1e3b-4c7a-9d5e-2f0b6a8c4e17",
          "erased": false
        },
        "connectedTo": null,
        "externalUrl": null,
        "syncedAt": null,
        "payments": [],
        "chase": [],
        "nextChase": {
          "stepPosition": 1,
          "tone": "nudge",
          "at": "2026-12-23T09:00:00.000Z",
          "autoSend": false
        },
        "chasePaused": false
      }
    ],
    "totals": {
      "agreedMinor": 200000,
      "invoicedMinor": 200000,
      "paidMinor": 0,
      "outstandingMinor": 200000
    },
    "commission": {
      "percent": 20,
      "source": "roster",
      "overridePercent": null,
      "bookedMinor": 40000,
      "earnedMinor": 0,
      "agencyName": "Studio Halden"
    },
    "chaseSequence": "workspace"
  }
}
```


---
HTML version: https://beplan.io/docs/api/deals/money/
