v1
latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MBAccounting scripts V2
Create accounting script V2
Create an accounting script.
Refer to the How to create accounting script guide for more information.
post/v2/accounting-scripts
Request body
Example request
{
"credit_accounting": {
"description": "SAMPLE ACCOUNT",
"account": "123123132-x"
},
"debit_accounting": {
"description": "SAMPLE ACCOUNT",
"account": "123123132-x"
},
"entry_type_id": {
"id": 101,
"description": "CREDIT",
"type": "DUE_DATE",
"reason": "Creation of a new entry type configuration.",
"responsible": "John Doe"
},
"cash_in_bucket": {
"name": "bacen_pre_2039",
"account": 123456
},
"cash_out_bucket": {
"name": "bacen_pre_2039",
"account": 123456
},
"cost_center": {
"debit_org": "999999",
"credit_org": "999999",
"debit_cost": "999999",
"credit_cost": "999999"
},
"except_program_ids": [
78,
91
],
"is_database_stage": "yes",
"max_days_due": 90,
"min_days_due": 30,
"parameters": {
"name": "pismo:timing",
"value": "REGULAR, DUEDATE"
},
"program_list_id": [
12,
34,
56
],
"program_types": [
"CREDIT",
"DEBIT"
],
"reason": "Creation of a new entry type configuration.",
"responsible": "John Doe"
}Response
Created
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"
}
}
]