curl --location -g --request POST 'https://.enerpize.com/api2/journal_accounts' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"JournalAccount": {
"type": "string",
"properties": {
"id": {
"type": "string",
"format": "string",
"description": "string",
"readOnly": true
},
"journal_cat_id": {
"type": "string",
"maxLength": "string",
"description": "string",
"examples": [
"string"
]
},
"code": {
"type": "string",
"maxLength": "string",
"description": "string",
"examples": [
"string"
]
},
"type": {
"type": "string",
"description": "string",
"enum": [
"string"
]
},
"staff_id": {
"type": "string",
"format": "string",
"description": "string",
"default": 0,
"examples": [
0
]
},
"total_debit": {
"type": "string",
"format": "string",
"description": "string"
},
"total_credit": {
"type": "string",
"format": "string",
"description": "string"
},
"entity_type": {
"type": "string",
"description": "string",
"enum": [
"string"
]
},
"entity_id": {
"type": "string",
"description": "string"
},
"name": {
"type": "string",
"maxLength": "string",
"description": "string"
},
"is_recalculated": {
"type": "string",
"description": "string"
},
"last_transaction_update": {
"type": "string",
"format": "string",
"description": "string",
"readOnly": true,
"examples": [
"string"
]
},
"parent_cat_ids": {
"type": "string",
"description": "string",
"examples": [
"string"
]
},
"disabled": {
"type": "string",
"description": "string"
},
"created": {
"type": "string",
"format": "string",
"description": "string",
"readOnly": true,
"examples": [
"string"
]
},
"modified": {
"type": "string",
"format": "string",
"description": "string",
"readOnly": true,
"examples": [
"string"
]
}
},
"required": [
"string"
],
"x-apidog-orders": [
"string"
],
"journal_cat_id": "11101",
"code": "11101",
"staff_id": 0,
"total_debit": 0,
"total_credit": 0,
"entity_type": "client",
"entity_id": "string",
"name": "string",
"is_recalculated": true,
"parent_cat_ids": "17,18",
"disabled": true
}
}'