v1

latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MB
Accounting entry types

Create accounting entry types

Create accounting entry type for your organization.

post/v2/entry-types

Request body

idinteger required

Entry type ID

descriptionstring required

Entry type description.

type'DUE_DATE' | 'CREATION' required

Set the entry type:

  • CREATION: Default value for new entries. Also, this value is assumed when type is not provided.
  • DUE_DATE: Used only with a credit program to indicate a due date entry.
reasonstring required

Reason for the operation.

responsiblestring

User name or ID of the person performing the operation.

Example request

{
  "id": 101,
  "description": "CREDIT",
  "type": "DUE_DATE",
  "reason": "Creation of a new entry type configuration.",
  "responsible": "John Doe"
}

Response

Ok

idinteger

Entry type ID

descriptionstring

Entry type description.

type'DUE_DATE' | 'CREATION'

Set the entry type:

  • CREATION: Default value for new entries. Also, this value is assumed when type is not provided.
  • DUE_DATE: Used only with a credit program to indicate a due date entry.
org_idstring

Organization ID

Example response

[
  {
    "id": 101,
    "description": "CREDIT",
    "type": "DUE_DATE",
    "org_id": "TN-cc8f8b89-233a-4582-9f36-63ee85278d6d",
    "history": {
      "org_id": "TN-cc8f8b89-233a-4582-9f36-63ee85278d6d",
      "action": "Created",
      "reason": "Creation of a new entry type configuration.",
      "responsible": "John Doe",
      "version": 1,
      "jsonb": "{\"id\": 101, \"description\": \"CREDIT\", \"type\": \"DUE_DATE\", \"reason\": \"Creation of a new entry type configuration.\", \"responsible\": \"John Doe\", \"created_at\": \"2021-10-10T10:10:00Z\"}",
      "created_at": "2021-10-10T10:10:00Z"
    }
  }
]