All URIs are relative to https://api-v2.fattureincloud.it
| Method | HTTP request | Description |
|---|---|---|
| get_price_list_items | GET /c/{company_id}/price_lists/{price_list_id}/items | Get PriceList Items List |
| get_price_lists | GET /c/{company_id}/price_lists | Get PriceLists |
GetPriceListItemsResponse get_price_list_items(company_id, price_list_id)
Get PriceList Items List
Retrieves all the Items of a PriceList
- OAuth Authentication (OAuth2AuthenticationCodeFlow):
import fattureincloud_python_sdk
from fattureincloud_python_sdk.models.get_price_list_items_response import GetPriceListItemsResponse
from fattureincloud_python_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api-v2.fattureincloud.it
# See configuration.py for a list of all supported configuration parameters.
configuration = fattureincloud_python_sdk.Configuration(
host = "https://api-v2.fattureincloud.it"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fattureincloud_python_sdk.PriceListsApi(api_client)
company_id = 12345 # int | The ID of the company.
price_list_id = 'price_list_id_example' # str |
try:
# Get PriceList Items List
api_response = api_instance.get_price_list_items(company_id, price_list_id)
print("The response of PriceListsApi->get_price_list_items:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PriceListsApi->get_price_list_items: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| company_id | int | The ID of the company. | |
| price_list_id | str |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPriceListsResponse get_price_lists(company_id)
Get PriceLists
Retrieves all price lists of the company
- OAuth Authentication (OAuth2AuthenticationCodeFlow):
import fattureincloud_python_sdk
from fattureincloud_python_sdk.models.list_price_lists_response import ListPriceListsResponse
from fattureincloud_python_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api-v2.fattureincloud.it
# See configuration.py for a list of all supported configuration parameters.
configuration = fattureincloud_python_sdk.Configuration(
host = "https://api-v2.fattureincloud.it"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fattureincloud_python_sdk.PriceListsApi(api_client)
company_id = 12345 # int | The ID of the company.
try:
# Get PriceLists
api_response = api_instance.get_price_lists(company_id)
print("The response of PriceListsApi->get_price_lists:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PriceListsApi->get_price_lists: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| company_id | int | The ID of the company. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]