---
title: "Create an expense (totals-first)"
method: POST
path: "/v1/expenses"
tags: ["Expenses"]
---

# Create an expense (totals-first)

`POST /v1/expenses`

## Request

- Base URL: `https://api.officina.it`
- URL: `https://api.officina.it/v1/expenses`
- Auth: HTTP bearer

## Request body

- object
  - `supplier_id` string, required
  - `description` string, nullable
  - `invoice_number` string, nullable
  - `expense_category_id` string, nullable
  - `payment_method` string, nullable
  - `payment_due_at` string, date-time, nullable
  - `total_before_tax` number, required
  - `total_tax` number, required
  - `comments` string, nullable

## Response `201`

Expense.

## Other responses

- `400`: Request body is unparseable or X-API-Version is missing.
- `401`: Missing, malformed, expired, or wrong-audience bearer token.
- `402`: The company has no active subscription, or its plan does not include API access. API access is included in the Business and Illimitato plans.
- `403`: The authenticated user lacks the required permission.
- `422`: A request field is missing or invalid (fast-fail).
- `500`: Unhandled server error. Detail is logged, not exposed.

---

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