---
title: "Create Cost"
method: POST
path: "/api/v1/recurring-costs/"
tags: ["recurring-costs", "recurring-costs"]
---

# Create Cost

`POST /api/v1/recurring-costs/`

## Request

- Base URL: `https://api.peil.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.peil.app/api/v1/recurring-costs/`
- Auth: OAuth 2 (password, token URL `/api/v1/auth/jwt/login`)

## Request body

- RecurringCostCreate
  - `name` string, required
  - `category` string, required
  - `billing_interval` 'month' | 'quarter' | 'year'
  - `interval_amount` union
    - number
    - string
  - `monthly_amount` union
    - number
    - string
  - `tax_deductible` boolean
  - `active_from` string, date, required
  - `active_until` string, date, nullable
  - `notes` string, nullable

## Response `201`

Successful Response

- RecurringCost
  - `id` integer, required
  - `user_id` integer, required
  - `name` string, required
  - `category` string, required
  - `monthly_amount` string, required
  - `billing_interval` string
  - `interval_amount` string, nullable
  - `receipts` Receipt[]
    - `id` integer, required
    - `content_type` string, required
    - `size_bytes` integer, required
    - `original_filename` string, nullable
  - `tax_deductible` boolean, required
  - `active_from` string, date, required
  - `active_until` string, date, nullable, required
  - `notes` string, nullable, required

## Other responses

- `422`: Validation Error

---

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