---
updatedAt: 2026-04-30T22:53:04.000Z
---

Fetch the complete documentation index at: https://developers.pismo.io/pismo-docs/llms.txt. Use this file to discover all available pages before exploring further.

# Create accounting entry

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.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core platform - Accounting",
    "version": "1.0.0",
    "description": "API used to manage the accounting context",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/accounting",
      "description": "Sandbox API server for testing"
    }
  ],
  "components": {
    "schemas": {
      "AccountingEntryPost": {
        "required": [
          "event_date",
          "program_id",
          "entry_type_id",
          "amount"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Accounting entry amount"
          },
          "entry_type_id": {
            "type": "integer",
            "format": "int64",
            "description": "Entry type ID"
          },
          "event_date": {
            "type": "string",
            "format": "date",
            "description": "Event date",
            "example": "2021-06-26"
          },
          "program_id": {
            "type": "integer",
            "format": "int64",
            "description": "Related program ID"
          },
          "account_id": {
            "type": "integer",
            "format": "int64",
            "description": "Related account ID, required if Transaction_ID is present."
          },
          "credit_accounting_account": {
            "type": "string",
            "description": "Credit accounting account"
          },
          "debit_accounting_account": {
            "type": "string",
            "description": "Debit accounting account"
          },
          "tracking_id": {
            "type": "string",
            "description": "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.",
            "maximum": 50
          },
          "transaction_id": {
            "type": "integer",
            "format": "int64",
            "description": "Related transaction ID"
          }
        },
        "example": {
          "amount": 10,
          "entry_type_id": 2100,
          "event_date": "2021-02-01T00:00:00.000Z",
          "program_id": 12,
          "account_id": 21,
          "credit_accounting_account": "0",
          "debit_accounting_account": "0",
          "tracking_id": "c5f2f677-d9aa-4285-8a08-d297a72d8949",
          "transaction_id": 12342
        }
      }
    }
  },
  "tags": [
    {
      "name": "Accounting entry",
      "description": "Endpoints to manage accounting entries."
    }
  ],
  "paths": {
    "/v1/accounting-entries": {
      "post": {
        "operationId": "CreateAccountingEntry",
        "summary": "Create accounting entry",
        "description": "Create an accounting entry. \n\nThis endpoint generates an [Accounting entry created](https://developers.pismo.io/events/docs/accounting-entry-creation-1) event.\n\nRefer to the [How to create accounting entries](https://developers.pismo.io/pismo-docs/docs/create-accounting-entries) guide for more information.\n",
        "tags": [
          "Accounting entry"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountingEntryPost"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Request accepted but not processed yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountingEntryPost"
                }
              }
            }
          },
          "400": {
            "description": "Bad request when a provided parameter is invalid."
          },
          "409": {
            "description": "Conflict when TrackingId already exists."
          }
        }
      }
    }
  }
}
```