---
title: "Create accounting entry"
method: POST
path: "/v1/accounting-entries"
tags: ["Accounting entry"]
---

# Create accounting entry

`POST /v1/accounting-entries`

## Request

- Base URL: `https://sandbox.pismolabs.io/accounting`
- URL: `https://sandbox.pismolabs.io/accounting/v1/accounting-entries`
- Auth: HTTP bearer

Create an accounting entry.

This endpoint generates an [Accounting entry created](https://developers.pismo.io/events/docs/accounting-entry-creation-1) event.

Refer to the [How to create accounting entries](doc:create-accounting-entries) guide for more information.

## Request body

- AccountingEntryPost
  - `amount` number, required: Accounting entry amount
  - `entry_type_id` integer, required: Entry type ID
  - `event_date` string, date, required: Event date
  - `program_id` integer, required: Related program ID
  - `account_id` integer: Related account ID, required if Transaction_ID is present.
  - `credit_accounting_account` string: Credit accounting account
  - `debit_accounting_account` string: Debit accounting account
  - `tracking_id` string: Tracking ID in UUID format, optional idempotence key. You can use [Online UUID Generator](https://www.uuidgenerator.net/version4) to generate a random UUID value.
  - `transaction_id` integer: Related transaction ID

## Response `202`

Request accepted but not processed yet.

- AccountingEntryPost
  - `amount` number, required: Accounting entry amount
  - `entry_type_id` integer, required: Entry type ID
  - `event_date` string, date, required: Event date
  - `program_id` integer, required: Related program ID
  - `account_id` integer: Related account ID, required if Transaction_ID is present.
  - `credit_accounting_account` string: Credit accounting account
  - `debit_accounting_account` string: Debit accounting account
  - `tracking_id` string: Tracking ID in UUID format, optional idempotence key. You can use [Online UUID Generator](https://www.uuidgenerator.net/version4) to generate a random UUID value.
  - `transaction_id` integer: Related transaction ID

## Other responses

- `400`: Bad request when a provided parameter is invalid. A JSON field type mismatch in the body (e.g. a numeric ID sent as a quoted string) returns the shared `V1BindTypeMismatchError` shape (`error`, `cid`, `invalid_field`); the offending value is never echoed.
- `409`: Conflict when TrackingId already exists.

---

[API](https://skmtc.dev/pismo/apis/core-platform-accounting.md) - [All operations](https://skmtc.dev/pismo/apis/core-platform-accounting/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/core-platform-accounting/revisions/fdb645c3e65c?raw)
