Recommend this page to a friend! |
Classes of Francesco Danti | Scloby Client API | docs/Api/CustomersApi.md | Download |
|
![]() Swagger\Client\CustomersApiAll URIs are relative to https://api.scloby.com/v2 Method | HTTP request | Description ------------- | ------------- | ------------- customersGet | GET /customers | Get All Customers customersIdDelete | DELETE /customers/{id} | Delete existing Customer customersIdGet | GET /customers/{id} | Get existing customer customersIdPut | PUT /customers/{id} | Edit existing customers customersPost | POST /customers | Add customer customersGet> \Swagger\Client\Model\Customers customersGet() Get All Customers return a json of all customers of selected shop. Paginated by default (per_page=1000) Example
ParametersThis endpoint does not need any parameter. Return type\Swagger\Client\Model\Customers 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) customersIdDelete> customersIdDelete($id) Delete existing Customer 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 customer 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) customersIdGet> \Swagger\Client\Model\Customers customersIdGet($id) Get existing customer In this case you must specify the id in the URL Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- id | string| id of the customer | Return type\Swagger\Client\Model\Customers 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) customersIdPut> \Swagger\Client\Model\Customers customersIdPut($body, $id) Edit existing customers 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\Customers| Object data that need to be updated | id | string| id of the customer that need to be updated | Return type\Swagger\Client\Model\Customers 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) customersPost> \Swagger\Client\Model\InlineResponse2011 customersPost($body, $pagination, $per_page, $page) Add customer Returns a Json with the data of the new customer Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | \Swagger\Client\Model\Customers| Customer object that needs to be added. | 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\InlineResponse2011 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) |