---
title: "Get accounting script V2"
method: GET
path: "/v2/accounting-scripts/{accountingScriptId}"
tags: ["Accounting scripts V2"]
---

# Get accounting script V2

`GET /v2/accounting-scripts/{accountingScriptId}`

## Request

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

Get a specific accounting script by its ID.

## Path parameters

- `accountingScriptId` integer, required

## Response `200`

Accounting script found

- AccountingScriptV2
  - `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

- `404`: Not found

---

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