---
title: "Add journal entry"
method: POST
path: "/api/v1/posJournals/actions/add"
tags: ["Point Of Sale"]
---

# Add journal entry

`POST /api/v1/posJournals/actions/add`

Add a new journal entry.

## Request body

- object
  - `project` object, required — Reference to another resource
    - `id` string, required — Resource identifier.
  - `cashier` object, required — Reference to another resource
    - `id` string, required — Resource identifier.
  - `transaction` object, required
    - `type` string, required
    - `text` string, required
  - `entry` union, required
    - object
      - `type` 'invoice' | 'credit_note', required
      - `timestamp` string, date-time, required — a atom formatted date time
      - `document` object, required — When `entry.type` is `creditNote`, credit note ID will be provided. When `type` is `invoice`the invoice ID will be provided
        - `id` string, required — Resource identifier.
      - `qrString` string — When `entry.type` is `invoice` or `credit_note` a string representing the QR code will be provided
    - object
      - `type` 'cash_in' | 'cash_out' | 'cash_difference', required
      - `timestamp` string, date-time, required
      - `amount` object, required — Mandatory field when `entry.type` has one of the values: `cash_in`, `cash_out`, `cash_difference`.
        - `amount` string, float, required
        - `currency` 'EUR' | 'PLN' | 'CHF' | 'USD' | 'GBP', required — Currency matches one of currency values as specified in ISO-4217.
  - `payment` object, required
    - `type` 'cash' | 'ec' | 'credit' | 'ec_card', required
  - `fiscalDocumentReference` object, nullable — This field represents an object with dynamic structure

## Response `201`

Resource successfully created response

## Other responses

- `400` — IETF RFC 9457 Problem API compliant response
- `401` — Unable to authenticate the client
- `403` — Unable to authorize the client
- `404` — Resource was not found or not enough access privileges
- `406` — Requested resource representation does not exist.
- `429` — Too many API calls made.

---

[API](https://skmtc.net/xentral/apis/xentral-api.md) · [All operations](https://skmtc.net/xentral/apis/xentral-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xentral/xentral-api/revisions/8a27ba392442/schema)
