> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.taigabilling.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.taigabilling.com/_mcp/server.

# Create billing note

POST https://api.taigabilling.com/api/billing_notes/v2
Content-Type: application/json

Reference: https://docs.taigabilling.com/api-reference/billing-notes-v-2/billing-notes-v-2-create

## Authentication

- `Authorization` header (bearer token, required) — Send your Taiga API key as a Bearer token. Create and manage keys in the Taiga developer portal.

## Servers

- `https://api.taigabilling.com` (Production, default)
- `https://api-staging.taigabilling.com` (Staging)

## Request

### Body (application/json)

This endpoint expects a billing-notesv2BillingNoteBase.

- `text` (string, required) — Empty string not allowed.

## Response

### 200

- `billing_note_id` (string, required)
- `created_at` (datetime, required) — An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/). For example, 2017-07-21T17:32:28Z.
- `encounter_id` (string, required)
- `text` (string, required) — Empty string not allowed.
- `author_auth0_id` (string, optional, nullable)
- `author_name` (string, optional, nullable)
- `billing_note_metadata` (billing-notesv2BillingNoteMetadata, optional, nullable)
- `billing_note_type` (enum, optional, nullable)
  - Allowed values: `manual`, `system`, `queue_added`, `queue_moved`, `task_created`

## Errors

### 404 Not Found Error

The encounter does not exist or is outside your scope.

- `message` (enum, required)
  - Allowed values: `Not found`

### 422 Unprocessable Entity Error

The request failed validation. `encounter_id` is required and must be the UUID of an encounter you can read; Taiga returns a field-level `errors` array naming it. An encounter you cannot read returns 404.

- `BillingNotes_v2_createRequestUnprocessableEntityError`
  - GatewayValidationError: GatewayValidationError

## Types

### billing-notesv2BillingNoteMetadata

- BillingNotesv2BillingNoteMetadata0
- BillingNotesv2BillingNoteMetadata1
- BillingNotesv2BillingNoteMetadata2

### GatewayValidationError

A field-level validation failure detected by Taiga before the request was submitted for billing. Correct the listed fields and retry; the request is not retryable as sent.

- `errors` (list of GatewayValidationErrorErrorsItems, required)
- `message` (string, required) — Summary of why the request was rejected.

### BillingNotesv2BillingNoteMetadata0

- `queue_id` (string, required)
- `queue_name` (string, required)
- `type` (enum, required)
  - Allowed values: `queue_added`

### BillingNotesv2BillingNoteMetadata1

- `from_queue_id` (string, required)
- `from_queue_name` (string, required)
- `to_queue_id` (string, required)
- `to_queue_name` (string, required)
- `type` (enum, required)
  - Allowed values: `queue_moved`

### BillingNotesv2BillingNoteMetadata2

- `task_id` (string, required)
- `task_type` (string, required)
- `type` (enum, required)
  - Allowed values: `task_created`

### GatewayValidationErrorErrorsItems

- `field` (string, required) — The request-body field the failure applies to (e.g. `provider_type`).
- `message` (string, required) — Human-readable explanation of the failure.
- `expected` (string, optional) — The value the field must take, when known.
- `received` (string, optional) — The value that was submitted, when known.

## Examples

**Request**

```json
{
  "text": "string",
  "encounter_id": "string"
}
```

**Response**

```json
{
  "billing_note_id": "string",
  "created_at": "2023-01-01T00:00:00Z",
  "encounter_id": "string",
  "text": "string",
  "author_auth0_id": "string",
  "author_name": "string",
  "billing_note_metadata": {
    "queue_id": "string",
    "queue_name": "string",
    "type": "queue_added"
  },
  "billing_note_type": "manual"
}
```

**SDK Code**

```python
import requests

url = "https://api.taigabilling.com/api/billing_notes/v2"

payload = {
    "text": "string",
    "encounter_id": "string"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```