Treasury object. Only name is required; type defaults to Treasury and active defaults to inactive when omitted. Setting is_primary to 1 makes this the default treasury (and activates it). Requires the General Settings or Manage Journal Accounts permission.Authorization: Bearer ********************curl --location --globoff 'https://.daftara.com/api2/treasuries' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"Treasury":{"name":"Cairo Cash Box","type":3,"is_primary":0,"active":1,"description":"Front-desk petty cash"}}'{
"result": "successful",
"code": 202,
"id": 2415
}