---
title: "Create a data entry"
method: POST
path: "/companies/{companyId}/data-entries"
tags: ["Data Entries"]
---

# Create a data entry

`POST /companies/{companyId}/data-entries`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/data-entries`
- Auth: HTTP bearer

## Request body

- CreateDataEntryInput
  - `entryDate` string, date, required
  - `source` string
  - `entryType` string
  - `amountCents` integer
  - `currency` string
  - `description` string
  - `details` object

## Response `201`

Data entry created

- DataEntryResponse
  - `success` boolean
  - `data` DataEntry
    - `id` string, uuid
    - `companyId` string, uuid
    - `source` string, nullable
    - `entryType` string, nullable
    - `entryDate` string, date
    - `amountCents` integer, nullable
    - `currency` string
    - `description` string, nullable
    - `details` object
    - `status` 'active' | 'archived'
    - `createdBy` string, uuid, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `422`: Validation error

---

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