Recommend this page to a friend! |
Classes of Francesco Danti | Scloby Client API | docs/Api/CustomerOrdersApi.md | Download |
|
![]() Swagger\Client\CustomerOrdersApiAll URIs are relative to https://api.scloby.com/v2 Method | HTTP request | Description ------------- | ------------- | ------------- ordersGet | GET /orders | Get All Orders ordersIdDelete | DELETE /orders/{id} | Delete existing Order ordersIdGet | GET /orders/{id} | Get existing Order ordersIdPut | PUT /orders/{id} | Edit existing Order ordersPost | POST /orders | Add new Order ordersGet> \Swagger\Client\Model\Orders ordersGet($pagination, $per_page, $page) Get All Orders Returns a Json with all orders of selected shop. Paginated by default (per_page=1000). Orders status An order can be in open or closed status. If is open it can be edited. Each order can contain a 'previus_order' that is the previous version of the order, before last save (parcheggia) or print. 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 typeAuthorizationHTTP 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) ordersIdDelete> ordersIdDelete($id) Delete existing Order 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 Order 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) ordersIdGet> \Swagger\Client\Model\Orders ordersIdGet($id) Get existing Order In this case you must specify the id in the URL Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- id | string| id of the order | Return typeAuthorizationHTTP 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) ordersIdPut> \Swagger\Client\Model\Orders ordersIdPut($body, $id) Edit existing Order 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\Orders| Object data that need to be updated | id | string| id of the Order that need to be updated | Return typeAuthorizationHTTP 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) ordersPost> \Swagger\Client\Model\Orders ordersPost($body) Add new Order Returns a Json with the data of the new Order Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | \Swagger\Client\Model\Orders| Order object that needs to be added. | Return typeAuthorizationHTTP 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) |