---
title: "List accounting scripts V2"
method: GET
path: "/v2/accounting-scripts"
tags: ["Accounting scripts V2"]
---

# List accounting scripts V2

`GET /v2/accounting-scripts`

## Request

- Base URL: `https://sandbox.pismolabs.io/accounting`
- URL: `https://sandbox.pismolabs.io/accounting/v2/accounting-scripts`
- Auth: HTTP bearer

List existing accounting scripts for your organization.

## Query parameters

- `pageSize` integer
- `pageOffset` integer
- `debitAccountingAccount` string
- `creditAccountingAccount` string
- `programId` integer
- `eventTypeId` integer
- `entryTypeId` integer
- `cashInBucketName` integer
- `cashOutBucketName` integer
- `isStage` string

## Response `200`

OK

- object
  - `has_next` boolean: Indicates if there are more items to be retrieved.
  - `items` object[]: Items retrieved from a given request.
    - `id` integer: Accounting script ID
    - `program_id` integer: Program ID
    - `event_type_id` integer: Event type ID
    - `entry_type_id` integer: Entry type ID
    - `debit_accounting` AccountingAccountAccountSctiptPost
      - `description` string, required: Description that helps to identify the accounting account. Can be `0` or any value if there's no corresponding account.
      - `account` string, required: Accounting account number. Can be `0` or any value if there's no corresponding account.
    - `credit_accounting` AccountingAccountAccountSctiptPost
      - `description` string, required: Description that helps to identify the accounting account. Can be `0` or any value if there's no corresponding account.
      - `account` string, required: Accounting account number. Can be `0` or any value if there's no corresponding account.
    - `cost_center` CostCenterAccountingScriptPost
      - `debit_org` string, required: Number of your Org’s debit accounting account
      - `credit_org` string, required: Number of your Org’s credit accounting account
      - `debit_cost` string, required: Number of the cost center of the debit accounting account
      - `credit_cost` string, required: Number of the cost center of the credit accounting account
    - `processing_code` string: Processing code
    - `expression` string: Expression to calculate the value of the accounting entry. It can be a simple mathematical expression or a more complex one using functions. Identifiers must belong to the evaluator vocabulary: AMOUNT, INTEREST, FEE, BUCKET, TRANSACTIONS, DISCHARGE_AMOUNT, BALANCE_AMOUNT, MDR_AMOUNT, SETTLEMENT_AMOUNT (and the SUM function); quoted map keys such as FEE['iof'] are allowed. Unknown identifiers (e.g. V1 entry-name strings like amount-dueDate) are rejected with ET0007.
    - `fee_information` object: Information about the fee applied to the accounting entry. It can include details such as fee type, amount, and currency.
    - `parameters` AccountingScriptParameters
      - `name` string, required: Parameter name [pismo:timing or bacen:classification]
      - `value` string, required: Parameter value [REGULAR, DUEDATE, TRUE, or 3]
    - `cash_in_bucket` AccountingScriptBucket
      - `name` string: Bucket name
      - `account` integer: Account ID
    - `cash_out_bucket` AccountingScriptBucket
      - `name` string: Bucket name
      - `account` integer: Account ID
    - `is_database_stage` string: 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_due` integer: Minimum number of days for the due date
    - `max_days_due` integer: Maximum number of days for the due date
    - `history` History: Historical information for auditing the entity.
      - `org_id` string: Organization ID
      - `action` string: Action performed on the entity.
      - `reason` string: Reason for the operation.
      - `responsible` string: User name or ID of the person performing the operation, as stored in the audit history. May be empty when the entry was recorded without a responsible person, which is optional for create, update, and delete operations.
      - `version` integer: Entity version.
      - `jsonb` string: JSON representation of the request body.
      - `created_at` string, date-time: Date and time when the history was created (ISO 8601). Format: YYYY-MM-DDThh:mm:ssZ.

## Other responses

- `400`: Bad request

---

[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)
