Get income categories
POST
/api/RPC.common.Api.Allocations.getIncome?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
id | Integer | Income/Expenses category ID |
namerequired | String | Income/Expenses category name |
get_all | Boolean | Get all |
offset | Number | Offset |
limit | Number | Limit |
Request example
Search By Id:
{
"data" : [
{
"id" : 21561
}
]
}
Search By Name:
{
"data" : [
{
"name" : "Sale of goods"
}
]
}
Search By All Params:
{
"data" : [
{
"id" : 21561,
"name" : "Sale of goods"
}
]
}
Get All:
{
"data":[
{}
],
"get_all":1,
"limit":10000,
"offset":0
}cURL
Search By Id:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "id" : 21561 } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Allocations.get?token=<TOKEN>"
Search By Name:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "name" : "Sale of goods" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Allocations.get?token=<TOKEN>"
Search By All Params:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "id" : 21561, "name" : "Sale of goods" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Allocations.getIncome?token=<TOKEN>"
Curl example Get All:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data":[ {} ], "get_all":1, "limit":10000, "offset":0} ' "https://<DOMAIN_NAME>/api/RPC.common.Api.Allocations.getIncome?token=<TOKEN>"Response example
HTTP/1.1 200 OK
{
"result" : [
{
"expense" : 0,
"name" : "Sale of goods",
"income" : 1,
"id" : 21561
}
]
}