Recommend this page to a friend! |
Classes of Francesco Danti | Scloby Client API | docs/Api/AccountingDepartmentsApi.md | Download |
|
![]() Swagger\Client\AccountingDepartmentsApiAll URIs are relative to https://api.scloby.com/v2 Method | HTTP request | Description ------------- | ------------- | ------------- departmentsGet | GET /departments | Get All Departments departmentsIdDelete | DELETE /departments/{id} | Delete existing Department departmentsIdGet | GET /departments/{id} | Get existing department departmentsIdPut | PUT /departments/{id} | Edit existing Department departmentsPost | POST /departments | Add new Department departmentsGet> \Swagger\Client\Model\Departments departmentsGet($pagination, $per_page, $page) Get All Departments Returns a Json with data about all Departments ('Reparti' in Italy) of selected shop. Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- pagination | bool| Pagination parameter | [optional] per_page | int| Results_per_page | [optional] page | int| PAGE_NUMBER(starting from 0 to TOTAL_PAGE-1) | [optional] Return type\Swagger\Client\Model\Departments AuthorizationHTTP request headers- Content-Type: Not defined - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) departmentsIdDelete> departmentsIdDelete($id) Delete existing Department In this case you must specify the id in the URL, but it is no necessary in the request body Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- id | string| id of the Department that need to be deleted | Return typevoid (empty response body) AuthorizationHTTP request headers- Content-Type: Not defined - Accept: Not defined [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) departmentsIdGet> \Swagger\Client\Model\Departments departmentsIdGet($id) Get existing department In this case you must specify the id in the URL Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- id | string| id of the department | Return type\Swagger\Client\Model\Departments AuthorizationHTTP request headers- Content-Type: Not defined - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) departmentsIdPut> \Swagger\Client\Model\Departments departmentsIdPut($body, $id) Edit existing Department In this case you must specify the id in the URL and change the data you wanna update Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | \Swagger\Client\Model\StockMovements| Object data that need to be updated | id | string| id of the department that need to be updated | Return type\Swagger\Client\Model\Departments AuthorizationHTTP request headers- Content-Type: application/json - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) departmentsPost> \Swagger\Client\Model\Departments departmentsPost($body) Add new Department Each Department require an associated VAT Rate. First of add or edit a department, you must know the associated VAT Rate ID. NB: You have to specify the id you want to assign, you can have at maximum 10 departments (id max 10). Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | \Swagger\Client\Model\Departments| Department object that needs to be added. | Return type\Swagger\Client\Model\Departments AuthorizationHTTP request headers- Content-Type: application/json - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) |