Add New Journal Account
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
POST
https://{{subdomain}}.daftra.com/api2
Journal Accounts
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://.daftra.com/api2/journal_accounts' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"JournalAccount": {
"journal_cat_id": "11101",
"code": "11101",
"type": "0",
"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
}
}'
Response Response Example
202 - Example 1
{
"code": 202,
"result": "successful",
"id": "2415"
}
Request
Path Params
format
stringÂ
required
Header Params
Accept
stringÂ
optional
Default:
application/json
Content-Type
stringÂ
optional
Default:
application/json
Authorization
stringÂ
optional
Default:
Bearer {{access_token}}
apikey
stringÂ
deprecated
Default:
{{apikey}}
Body Params application/json