Recommend this page to a friend! |
Classes of Francesco Danti | Scloby Client API | docs/Api/CashBookApi.md | Download |
|
![]() Swagger\Client\CashBookApiAll URIs are relative to https://api.scloby.com/v2 Method | HTTP request | Description ------------- | ------------- | ------------- cashMovementsGet | GET /cash_movements | Get All Cash Movements cashMovementsIdDelete | DELETE /cash_movements/{id} | Delete existing Cash Movement cashMovementsIdGet | GET /cash_movements/{id} | Get existing Cash Movement cashMovementsIdPut | PUT /cash_movements/{id} | Edit existing Cash Movement cashMovementsPost | POST /cash_movements | Add new Cash movement cashMovementsGet> \Swagger\Client\Model\CashMovements cashMovementsGet($pagination, $per_page, $page) Get All Cash Movements Returns a Json with data about all cash movements 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\CashMovements 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) cashMovementsIdDelete> cashMovementsIdDelete($id) Delete existing Cash Movement 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 Cash Movement 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) cashMovementsIdGet> \Swagger\Client\Model\CashMovements cashMovementsIdGet($id) Get existing Cash Movement In this case you must specify the id in the URL Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- id | string| id of the Cash Movement | Return type\Swagger\Client\Model\CashMovements 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) cashMovementsIdPut> \Swagger\Client\Model\CashMovements cashMovementsIdPut($body, $id) Edit existing Cash Movement 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\CashMovements| Object data that need to be updated | id | string| id of the Cash Movement that need to be updated | Return type\Swagger\Client\Model\CashMovements 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) cashMovementsPost> \Swagger\Client\Model\CashMovements cashMovementsPost($body) Add new Cash movement Returns a Json with the data of the new Cash movement Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | \Swagger\Client\Model\CashMovements| Cash movement object that needs to be added. | Return type\Swagger\Client\Model\CashMovements 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) |