v1

latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MB
Accounting scripts V2

Get accounting script V2

Get a specific accounting script by its ID.

get/v2/accounting-scripts/{accountingScriptId}

Path parameters

accountingScriptIdinteger required

Accounting script ID

Response

Accounting script found

idinteger

Accounting script ID

program_idinteger

Program ID

event_type_idinteger

Event type ID

entry_type_idinteger

Entry type ID

processing_codestring

Processing code

expressionstring

Expression to calculate the value of the accounting entry. It can be a simple mathematical expression or a more complex one using functions.

fee_informationobject

Information about the fee applied to the accounting entry. It can include details such as fee type, amount, and currency.

is_database_stagestring

Indicates if the accounting script is for a database stage. If yes, the script is used for testing purposes and does not affect production data.

min_days_dueinteger

Minimum number of days for the due date

max_days_dueinteger

Maximum number of days for the due date

Example response

{
  "debit_accounting": {
    "description": "SAMPLE ACCOUNT",
    "account": "123123132-x"
  },
  "credit_accounting": {
    "description": "SAMPLE ACCOUNT",
    "account": "123123132-x"
  },
  "cost_center": {
    "debit_org": "999999",
    "credit_org": "999999",
    "debit_cost": "999999",
    "credit_cost": "999999"
  },
  "parameters": {
    "name": "pismo:timing",
    "value": "REGULAR, DUEDATE"
  },
  "cash_in_bucket": {
    "name": "bacen_pre_2039",
    "account": 123456
  },
  "cash_out_bucket": {
    "name": "bacen_pre_2039",
    "account": 123456
  },
  "is_database_stage": "yes",
  "min_days_due": 30,
  "max_days_due": 90,
  "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"
  }
}