Get company operation types
curl --request GET \
--url https://api.finsync.ar/api/operation-types \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operation-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operation-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/operation-types"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 123,
"name": "<string>",
"type": "up",
"company_id": 123,
"operation_form_config": {
"kind": "up_down",
"version": 123,
"fixedConfig": {},
"fieldModes": {}
},
"default_completed": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]Operation Types
Get company operation types
Retrieves all operation types available for the company, including dashboard operation_form_config and default_completed when set.
GET
/
api
/
operation-types
Get company operation types
curl --request GET \
--url https://api.finsync.ar/api/operation-types \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operation-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operation-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/operation-types"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 123,
"name": "<string>",
"type": "up",
"company_id": 123,
"operation_form_config": {
"kind": "up_down",
"version": 123,
"fixedConfig": {},
"fieldModes": {}
},
"default_completed": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]Authorizations
API Key for authentication
Response
List of operation types
Operation type ID
Operation type name
Operation category
Available options:
up, down, exchange, other, budget, interest Company ID
Company operation-type form config (dashboard operation_form_config). Validated with parseOperationFormConfig. kind is up_down (type=up or down), exchange, or other.
Show child attributes
Show child attributes
When true, create-operation forms default the completed checkbox on for approvers for this type. False starts them pending. Users without approve permission always create pending. Defaults to true.
Creation timestamp
Last update timestamp