---
updatedAt: 2026-04-30T22:53:04.000Z
agentTools:
  siteIndex: https://developers.pismo.io/llms.txt
  projectIndex: https://developers.pismo.io/pismo-docs/llms.txt
---

# 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"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "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-26T00:00:00.000Z"
          },
          "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.",
            "maxLength": 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
        }
      },
      "V1BindTypeMismatchError": {
        "type": "object",
        "description": "Shared V1 error body returned by **every** endpoint that binds a JSON request body when a\nfield is sent with the wrong JSON type (a `*json.UnmarshalTypeError`) — e.g. a numeric ID\nsent as a quoted string. It is additive and backward compatible: the HTTP status stays `400`,\nonly the free-text `error` value changed and the optional `cid` / `invalid_field` keys were\nadded. Any other body-parse failure (malformed JSON, empty body, oversized body) keeps each\nendpoint's pre-existing generic message and is not described by this schema.\n\nEndpoints that emit this shape on a type mismatch:\n  - `POST /v1/accounting-scripts`, `POST /v1/accounting-scripts/deactivate`\n  - `PATCH /v1/accounting-scripts/{accountingScriptId}`, `PATCH /v1/accounting-scripts/batch`\n  - `POST /v1/event-types`, `PATCH /v1/event-types/{eventTypeId}`\n  - `POST /v1/entry-types`, `PATCH /v1/entry-types/{entryTypeId}`\n  - `POST /v1/accounting-accounts`, `PATCH /v1/accounting-accounts/{accountingAccountId}`\n  - `POST /v1/accounting-entries`\n\nThe offending user-supplied **value** is never echoed — only the field name and the JSON\ntypes (expected vs received) appear in the message, and the `cid` correlates to server logs.\n",
        "properties": {
          "error": {
            "type": "string",
            "description": "Descriptive message naming the offending field and the expected/received JSON type.\n",
            "example": "field 'credit_accounting_account_id' must be of type integer number (unquoted) but received a string value"
          },
          "cid": {
            "type": "string",
            "description": "Correlation ID echoed on every 4xx/5xx response body.",
            "example": "6fdd31b0-c5b9-911a-a713-10158c1fd6ea"
          },
          "invalid_field": {
            "type": "string",
            "description": "JSON path of the field whose type did not match the schema.",
            "example": "credit_accounting_account_id"
          }
        }
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Account access token. Tokens can expire quickly, which can result in an \"Unauthorized\" error.",
        "bearerFormat": "JWT"
      }
    }
  },
  "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](doc: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. A JSON field type mismatch in the body\n(e.g. a numeric ID sent as a quoted string) returns the shared `V1BindTypeMismatchError`\nshape (`error`, `cid`, `invalid_field`); the offending value is never echoed.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1BindTypeMismatchError"
                },
                "example": {
                  "error": "field 'entry_type_id' must be of type integer number (unquoted) but received a string value",
                  "invalid_field": "entry_type_id",
                  "cid": "6fdd31b0-c5b9-911a-a713-10158c1fd6ea"
                }
              }
            }
          },
          "409": {
            "description": "Conflict when TrackingId already exists."
          }
        }
      }
    }
  }
}
```