Creates a new category in the chart of accounts
POSThttps://api.elvanto.com/v1/financial/categories/create.{json|xml|php}
status of 0 indicates an archived accountstatus of 1 indicates an active account| Name | Type | Description |
|---|---|---|
| name Required | text | Name of the category. |
| status | integer | 1 to indicate an active account (default) - 0 to indicate archived accounts. |
| tax_deductible | string | y to indicate the account is tax deductible. n to indicate it is not (default). |
{
"name": "General Giving",
"tax_deductible": "y"
}
name=General+Giving&tax_deductible=y
{
"generated_in": "0.018",
"status": "ok",
"category": {
"id": "647f531a-6093-4aec-a56f-4fa2962228e0",
"status": 1,
"name": "General Giving",
"tax_deductible": 1
}
}
<?xml version="1.0" encoding="UTF-8"?>
<rsp generated_in="0.018" status="ok">
<category id="647f531a-6093-4aec-a56f-4fa2962228e0">
<status>1</status>
<name>General Giving</name>
<tax_deductible>1</tax_deductible>
</category>
</rsp>
stdClass Object
(
[generated_in] => 0.018
[status] => ok
[category] => stdClass Object
(
[id] => 647f531a-6093-4aec-a56f-4fa2962228e0
[status] => 1
[name] => General Giving
[tax_deductible] => 1
)
)
Please see our response status codes documentation for details of potential error responses for any API request.