Package: fattureincloud-python-sdk
FattureInCloud Python SDKfattureincloud-python-sdkConnect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy.The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.This Python package is automatically generated by theOpenAPI Generatorproject:API version: 2.0.30Package version: 2.0.17Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visithttps://www.fattureincloud.itRequirements.Python >= 3.7Installation & Usagepip installYou can install our python package directly using:pipinstallfattureincloud-python-sdk(you may need to runpipwith root permission:sudo pip install fattureincloud-python-sdk)Then import the package:importfattureincloud_python_sdkGetting StartedPlease follow theinstallation procedureand then run the following:importtimeimportfattureincloud_python_sdkfromfattureincloud_python_sdk.restimportApiExceptionfrompprintimportpprint# 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 clientwithfattureincloud_python_sdk.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=fattureincloud_python_sdk.ArchiveApi(api_client)company_id=12345# int | The ID of the company.create_archive_document_request={"data":{"date":"2021-08-20","category":"Altri documenti","description":"spesa 1","attachment_token":"ibfjdbf94ey9w94g3w894qbasrga"}}# CreateArchiveDocumentRequest | The Archive Document. (optional)try:# Create Archive Documentapi_response=api_instance.create_archive_document(company_id,create_archive_document_request=create_archive_document_request)print("The response of ArchiveApi->create_archive_document:\n")pprint(api_response)exceptApiExceptionase:print("Exception when calling ArchiveApi->create_archive_document:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://api-v2.fattureincloud.itClassMethodHTTP requestDescriptionArchiveApicreate_archive_documentPOST/c/{company_id}/archiveCreate Archive DocumentArchiveApidelete_archive_documentDELETE/c/{company_id}/archive/{document_id}Delete Archive DocumentArchiveApiget_archive_documentGET/c/{company_id}/archive/{document_id}Get Archive DocumentArchiveApilist_archive_documentsGET/c/{company_id}/archiveList Archive DocumentsArchiveApimodify_archive_documentPUT/c/{company_id}/archive/{document_id}Modify Archive DocumentArchiveApiupload_archive_document_attachmentPOST/c/{company_id}/archive/attachmentUpload Archive Document AttachmentCashbookApicreate_cashbook_entryPOST/c/{company_id}/cashbookCreate Cashbook EntryCashbookApidelete_cashbook_entryDELETE/c/{company_id}/cashbook/{document_id}Delete Cashbook EntryCashbookApiget_cashbook_entryGET/c/{company_id}/cashbook/{document_id}Get Cashbook EntryCashbookApilist_cashbook_entriesGET/c/{company_id}/cashbookList Cashbook EntriesCashbookApimodify_cashbook_entryPUT/c/{company_id}/cashbook/{document_id}Modify Cashbook EntryClientsApicreate_clientPOST/c/{company_id}/entities/clientsCreate ClientClientsApidelete_clientDELETE/c/{company_id}/entities/clients/{client_id}Delete ClientClientsApiget_clientGET/c/{company_id}/entities/clients/{client_id}Get ClientClientsApilist_clientsGET/c/{company_id}/entities/clientsList ClientsClientsApimodify_clientPUT/c/{company_id}/entities/clients/{client_id}Modify ClientCompaniesApiget_company_infoGET/c/{company_id}/company/infoGet Company InfoEmailsApilist_emailsGET/c/{company_id}/emailsList EmailsInfoApilist_archive_categoriesGET/c/{company_id}/info/archive_categoriesList Archive CategoriesInfoApilist_citiesGET/info/citiesList CitiesInfoApilist_cost_centersGET/c/{company_id}/info/cost_centersList Cost CentersInfoApilist_countriesGET/info/countriesList CountriesInfoApilist_currenciesGET/info/currenciesList CurrenciesInfoApilist_delivery_notes_default_causalsGET/info/dn_causalsList Delivery Notes Default CausalsInfoApilist_detailed_countriesGET/info/detailed_countriesList Detailed CountriesInfoApilist_languagesGET/info/languagesList LanguagesInfoApilist_payment_accountsGET/c/{company_id}/info/payment_accountsList Payment AccountsInfoApilist_payment_methodsGET/c/{company_id}/info/payment_methodsList Payment MethodsInfoApilist_product_categoriesGET/c/{company_id}/info/product_categoriesList Product CategoriesInfoApilist_received_document_categoriesGET/c/{company_id}/info/received_document_categoriesList Received Document CategoriesInfoApilist_revenue_centersGET/c/{company_id}/info/revenue_centersList Revenue CentersInfoApilist_templatesGET/info/templatesList TemplatesInfoApilist_units_of_measureGET/info/measuresList Units of MeasureInfoApilist_vat_typesGET/c/{company_id}/info/vat_typesList Vat TypesIssuedDocumentsApicreate_issued_documentPOST/c/{company_id}/issued_documentsCreate Issued DocumentIssuedDocumentsApidelete_issued_documentDELETE/c/{company_id}/issued_documents/{document_id}Delete Issued DocumentIssuedDocumentsApidelete_issued_document_attachmentDELETE/c/{company_id}/issued_documents/{document_id}/attachmentDelete Issued Document AttachmentIssuedDocumentsApiget_email_dataGET/c/{company_id}/issued_documents/{document_id}/emailGet Email DataIssuedDocumentsApiget_existing_issued_document_totalsPOST/c/{company_id}/issued_documents/{document_id}/totalsGet Existing Issued Document TotalsIssuedDocumentsApiget_issued_documentGET/c/{company_id}/issued_documents/{document_id}Get Issued DocumentIssuedDocumentsApiget_issued_document_pre_create_infoGET/c/{company_id}/issued_documents/infoGet Issued Document Pre-Create InfoIssuedDocumentsApiget_new_issued_document_totalsPOST/c/{company_id}/issued_documents/totalsGet New Issued Document TotalsIssuedDocumentsApijoin_issued_documentsGET/c/{company_id}/issued_documents/joinJoin Issued DocumentsIssuedDocumentsApilist_issued_documentsGET/c/{company_id}/issued_documentsList Issued DocumentsIssuedDocumentsApimodify_issued_documentPUT/c/{company_id}/issued_documents/{document_id}Modify Issued DocumentIssuedDocumentsApischedule_emailPOST/c/{company_id}/issued_documents/{document_id}/emailSchedule EmailIssuedDocumentsApitransform_issued_documentGET/c/{company_id}/issued_documents/transformTransform Issued DocumentIssuedDocumentsApiupload_issued_document_attachmentPOST/c/{company_id}/issued_documents/attachmentUpload Issued Document AttachmentIssuedEInvoicesApiget_e_invoice_rejection_reasonGET/c/{company_id}/issued_documents/{document_id}/e_invoice/error_reasonGet E-Invoice Rejection ReasonIssuedEInvoicesApiget_e_invoice_xmlGET/c/{company_id}/issued_documents/{document_id}/e_invoice/xmlGet E-Invoice XMLIssuedEInvoicesApisend_e_invoicePOST/c/{company_id}/issued_documents/{document_id}/e_invoice/sendSend E-InvoiceIssuedEInvoicesApiverify_e_invoice_xmlGET/c/{company_id}/issued_documents/{document_id}/e_invoice/xml_verifyVerify E-Invoice XMLProductsApicreate_productPOST/c/{company_id}/productsCreate ProductProductsApidelete_productDELETE/c/{company_id}/products/{product_id}Delete ProductProductsApiget_productGET/c/{company_id}/products/{product_id}Get ProductProductsApilist_productsGET/c/{company_id}/productsList ProductsProductsApimodify_productPUT/c/{company_id}/products/{product_id}Modify ProductReceiptsApicreate_receiptPOST/c/{company_id}/receiptsCreate ReceiptReceiptsApidelete_receiptDELETE/c/{company_id}/receipts/{document_id}Delete ReceiptReceiptsApiget_receiptGET/c/{company_id}/receipts/{document_id}Get ReceiptReceiptsApiget_receipt_pre_create_infoGET/c/{company_id}/receipts/infoGet Receipt Pre-Create InfoReceiptsApiget_receipts_monthly_totalsGET/c/{company_id}/receipts/monthly_totalsGet Receipts Monthly TotalsReceiptsApilist_receiptsGET/c/{company_id}/receiptsList ReceiptsReceiptsApimodify_receiptPUT/c/{company_id}/receipts/{document_id}Modify ReceiptReceivedDocumentsApicreate_received_documentPOST/c/{company_id}/received_documentsCreate Received DocumentReceivedDocumentsApidelete_received_documentDELETE/c/{company_id}/received_documents/{document_id}Delete Received DocumentReceivedDocumentsApidelete_received_document_attachmentDELETE/c/{company_id}/received_documents/{document_id}/attachmentDelete Received Document AttachmentReceivedDocumentsApiget_existing_received_document_totalsPOST/c/{company_id}/received_documents/{document_id}/totalsGet Existing Received Document TotalsReceivedDocumentsApiget_new_received_document_totalsPOST/c/{company_id}/received_documents/totalsGet New Received Document TotalsReceivedDocumentsApiget_received_documentGET/c/{company_id}/received_documents/{document_id}Get Received DocumentReceivedDocumentsApiget_received_document_pre_create_infoGET/c/{company_id}/received_documents/infoGet Received Document Pre-Create InfoReceivedDocumentsApilist_received_documentsGET/c/{company_id}/received_documentsList Received DocumentsReceivedDocumentsApimodify_received_documentPUT/c/{company_id}/received_documents/{document_id}Modify Received DocumentReceivedDocumentsApiupload_received_document_attachmentPOST/c/{company_id}/received_documents/attachmentUpload Received Document AttachmentSettingsApicreate_payment_accountPOST/c/{company_id}/settings/payment_accountsCreate Payment AccountSettingsApicreate_payment_methodPOST/c/{company_id}/settings/payment_methodsCreate Payment MethodSettingsApicreate_vat_typePOST/c/{company_id}/settings/vat_typesCreate Vat TypeSettingsApidelete_payment_accountDELETE/c/{company_id}/settings/payment_accounts/{payment_account_id}Delete Payment AccountSettingsApidelete_payment_methodDELETE/c/{company_id}/settings/payment_methods/{payment_method_id}Delete Payment MethodSettingsApidelete_vat_typeDELETE/c/{company_id}/settings/vat_types/{vat_type_id}Delete Vat TypeSettingsApiget_payment_accountGET/c/{company_id}/settings/payment_accounts/{payment_account_id}Get Payment AccountSettingsApiget_payment_methodGET/c/{company_id}/settings/payment_methods/{payment_method_id}Get Payment MethodSettingsApiget_vat_typeGET/c/{company_id}/settings/vat_types/{vat_type_id}Get Vat TypeSettingsApimodify_payment_accountPUT/c/{company_id}/settings/payment_accounts/{payment_account_id}Modify Payment AccountSettingsApimodify_payment_methodPUT/c/{company_id}/settings/payment_methods/{payment_method_id}Modify Payment MethodSettingsApimodify_vat_typePUT/c/{company_id}/settings/vat_types/{vat_type_id}Modify Vat TypeSuppliersApicreate_supplierPOST/c/{company_id}/entities/suppliersCreate SupplierSuppliersApidelete_supplierDELETE/c/{company_id}/entities/suppliers/{supplier_id}Delete SupplierSuppliersApiget_supplierGET/c/{company_id}/entities/suppliers/{supplier_id}Get SupplierSuppliersApilist_suppliersGET/c/{company_id}/entities/suppliersList SuppliersSuppliersApimodify_supplierPUT/c/{company_id}/entities/suppliers/{supplier_id}Modify SupplierTaxesApicreate_f24POST/c/{company_id}/taxesCreate F24TaxesApidelete_f24DELETE/c/{company_id}/taxes/{document_id}Delete F24TaxesApidelete_f24_attachmentDELETE/c/{company_id}/taxes/{document_id}/attachmentDelete F24 AttachmentTaxesApiget_f24GET/c/{company_id}/taxes/{document_id}Get F24TaxesApilist_f24GET/c/{company_id}/taxesList F24TaxesApimodify_f24PUT/c/{company_id}/taxes/{document_id}Modify F24TaxesApiupload_f24_attachmentPOST/c/{company_id}/taxes/attachmentUpload F24 AttachmentUserApiget_user_infoGET/user/infoGet User InfoUserApilist_user_companiesGET/user/companiesList User CompaniesWebhooksApicreate_webhooks_subscriptionPOST/c/{company_id}/subscriptionsCreate a Webhook SubscriptionWebhooksApidelete_webhooks_subscriptionDELETE/c/{company_id}/subscriptions/{subscription_id}Delete Webhooks SubscriptionWebhooksApiget_webhooks_subscriptionGET/c/{company_id}/subscriptions/{subscription_id}Get Webhooks SubscriptionWebhooksApilist_webhooks_subscriptionsGET/c/{company_id}/subscriptionsList Webhooks SubscriptionsWebhooksApimodify_webhooks_subscriptionPUT/c/{company_id}/subscriptions/{subscription_id}Modify Webhooks SubscriptionDocumentation For ModelsArchiveDocumentAttachmentDataCashbookEntryCashbookEntryDocumentCashbookEntryKindCashbookEntryTypeCityClientClientTypeCompanyCompanyInfoCompanyInfoAccessInfoCompanyInfoPlanInfoCompanyInfoPlanInfoFunctionsCompanyInfoPlanInfoFunctionsStatusCompanyInfoPlanInfoLimitsCompanyTypeControlledCompanyCreateArchiveDocumentRequestCreateArchiveDocumentResponseCreateCashbookEntryRequestCreateCashbookEntryResponseCreateClientRequestCreateClientResponseCreateF24RequestCreateF24ResponseCreateIssuedDocumentRequestCreateIssuedDocumentResponseCreatePaymentAccountRequestCreatePaymentAccountResponseCreatePaymentMethodRequestCreatePaymentMethodResponseCreateProductRequestCreateProductResponseCreateReceiptRequestCreateReceiptResponseCreateReceivedDocumentRequestCreateReceivedDocumentResponseCreateSupplierRequestCreateSupplierResponseCreateVatTypeRequestCreateVatTypeResponseCreateWebhooksSubscriptionRequestCreateWebhooksSubscriptionResponseCurrencyDetailedCountryDocumentTemplateEInvoiceRejectionReasonEmailEmailAttachmentEmailDataEmailDataDefaultSenderEmailEmailRecipientStatusEmailScheduleEmailScheduleIncludeEmailStatusEntityEntityTypeEventTypeF24F24StatusFunctionStatusGetArchiveDocumentResponseGetCashbookEntryResponseGetClientResponseGetCompanyInfoResponseGetEInvoiceRejectionReasonResponseGetEmailDataResponseGetExistingIssuedDocumentTotalsRequestGetExistingIssuedDocumentTotalsResponseGetExistingReceivedDocumentTotalsRequestGetExistingReceivedDocumentTotalsResponseGetF24ResponseGetIssuedDocumentPreCreateInfoResponseGetIssuedDocumentResponseGetNewIssuedDocumentTotalsRequestGetNewIssuedDocumentTotalsResponseGetNewReceivedDocumentTotalsRequestGetNewReceivedDocumentTotalsResponseGetPaymentAccountResponseGetPaymentMethodResponseGetProductResponseGetReceiptPreCreateInfoResponseGetReceiptResponseGetReceiptsMonthlyTotalsResponseGetReceivedDocumentPreCreateInfoResponseGetReceivedDocumentResponseGetSupplierResponseGetUserInfoResponseGetUserInfoResponseEmailConfirmationStateGetUserInfoResponseInfoGetVatTypeResponseGetWebhooksSubscriptionResponseIssuedDocumentIssuedDocumentEiDataIssuedDocumentExtraDataIssuedDocumentItemsListItemIssuedDocumentOptionsIssuedDocumentPaymentsListItemIssuedDocumentPaymentsListItemPaymentTermsIssuedDocumentPreCreateInfoIssuedDocumentPreCreateInfoDefaultValuesIssuedDocumentPreCreateInfoExtraDataDefaultValuesIssuedDocumentPreCreateInfoItemsDefaultValuesIssuedDocumentStatusIssuedDocumentTotalsIssuedDocumentTypeJoinIssuedDocumentsResponseLanguageListArchiveCategoriesResponseListArchiveDocumentsResponseListArchiveDocumentsResponsePageListCashbookEntriesResponseListCitiesResponseListClientsResponseListClientsResponsePageListCostCentersResponseListCountriesResponseListCurrenciesResponseListDeliveryNotesDefaultCausalsResponseListDetailedCountriesResponseListEmailsResponseListEmailsResponsePageListF24ResponseListF24ResponseAggregatedDataListF24ResponseAggregationListF24ResponsePageListIssuedDocumentsResponseListIssuedDocumentsResponsePageListLanguagesResponseListPaymentAccountsResponseListPaymentMethodsResponseListProductCategoriesResponseListProductsResponseListProductsResponsePageListReceiptsResponseListReceiptsResponsePageListReceivedDocumentCategoriesResponseListReceivedDocumentsResponseListReceivedDocumentsResponsePageListRevenueCentersResponseListSuppliersResponseListSuppliersResponsePageListTemplatesResponseListUnitsOfMeasureResponseListUserCompaniesResponseListUserCompaniesResponseDataListVatTypesResponseListWebhooksSubscriptionsResponseModifyArchiveDocumentRequestModifyArchiveDocumentResponseModifyCashbookEntryRequestModifyCashbookEntryResponseModifyClientRequestModifyClientResponseModifyF24RequestModifyF24ResponseModifyIssuedDocumentRequestModifyIssuedDocumentResponseModifyPaymentAccountRequestModifyPaymentAccountResponseModifyPaymentMethodRequestModifyPaymentMethodResponseModifyProductRequestModifyProductResponseModifyReceiptRequestModifyReceiptResponseModifyReceivedDocumentRequestModifyReceivedDocumentResponseModifySupplierRequestModifySupplierResponseModifyVatTypeRequestModifyVatTypeResponseModifyWebhooksSubscriptionRequestModifyWebhooksSubscriptionResponseMonthlyTotalOriginalDocumentTypePaginationPaymentAccountPaymentAccountTypePaymentMethodPaymentMethodDetailsPaymentMethodTypePaymentTermsTypePermissionLevelPermissionsPermissionsFicIssuedDocumentsDetailedProductReceiptReceiptItemsListItemReceiptPreCreateInfoReceiptTypeReceivedDocumentReceivedDocumentInfoReceivedDocumentInfoDefaultValuesReceivedDocumentInfoItemsDefaultValuesReceivedDocumentItemsListItemReceivedDocumentPaymentsListItemReceivedDocumentPaymentsListItemPaymentTermsReceivedDocumentTotalsReceivedDocumentTypeScheduleEmailRequestSendEInvoiceRequestSendEInvoiceRequestDataSendEInvoiceRequestOptionsSendEInvoiceResponseSendEInvoiceResponseDataSenderEmailShowTotalsModeSupplierSupplierTypeTransformIssuedDocumentResponseUploadArchiveAttachmentResponseUploadF24AttachmentResponseUploadIssuedDocumentAttachmentResponseUploadReceivedDocumentAttachmentResponseUserUserCompanyRoleVatItemVatKindVatTypeVerifyEInvoiceXmlErrorResponseVerifyEInvoiceXmlErrorResponseErrorVerifyEInvoiceXmlErrorResponseErrorValidationResultVerifyEInvoiceXmlErrorResponseExtraVerifyEInvoiceXmlResponseVerifyEInvoiceXmlResponseDataWebhooksSubscriptionWebhooksSubscriptionConfigWebhooksSubscriptionMappingDocumentation For AuthorizationAuthentication schemes defined for the API:OAuth2AuthenticationCodeFlowType: OAuthFlow: accessCodeAuthorization URL:https://api-v2.fattureincloud.it/oauth/authorizeScopes:entity.clients:r: Read permission to the Clients registryentity.clients:a: Write permission to the Clients registryentity.suppliers:r: Read permission to the Suppliers registryentity.suppliers:a: Write permission to the Suppliers registryproducts:r: Read permission to the Productsproducts:a: Write permission to the Productsissued_documents.invoices:r: Read permission to the issued Invoicesissued_documents.credit_notes:r: Read permission to the issued Credit Notesissued_documents.receipts:r: Read permission to the issued Receiptsissued_documents.orders:r: Read permission to the issued Ordersissued_documents.quotes:r: Read permission to the issued Quotesissued_documents.proformas:r: Read permission to the issued Proformasissued_documents.delivery_notes:r: Read permission to the issued Delivery Notesissued_documents.work_reports:r: Read permission to the issued Work Reportsissued_documents.supplier_orders:r: Read permission to the issued Supplier Ordersissued_documents.self_invoices:r: Read permission to the issued Self Invoicesissued_documents.invoices:a: Write permission to the issued Invoicesissued_documents.credit_notes:a: Write permission to the issued Credit Notesissued_documents.receipts:a: Write permission to the issued issued Receiptsissued_documents.orders:a: Write permission to the issued Ordersissued_documents.quotes:a: Write permission to the issued Quotesissued_documents.proformas:a: Write permission to the issued Proformasissued_documents.delivery_notes:a: Write permission to the issued Delivery Notesissued_documents.work_reports:a: Write permission to the issued Work Reportsissued_documents.supplier_orders:a: Write permission to the issued Supplier Ordersissued_documents.self_invoices:a: Write permission to the issued Self Invoicesreceived_documents:r: Read permission to the Received Documentsreceived_documents:a: Write permission to the Received Documentsstock:r: Read permission to the Stock movementsstock:a: Write permission to the Stock movementsreceipts:r: Read permission to the Receiptsreceipts:a: Write permission to the Receiptstaxes:r: Read permission to the Taxestaxes:a: Write permission to the Taxesarchive:r: Read permission to the Archive Documentsarchive:a: Read permission to the Archive Documentscashbook:r: Read permission to the Cashbookcashbook:a: Write permission to the Cashbooksettings:r: Read permission to the Settingssettings:a: Write permission to the Settingssituation:r: Read permission to the company SituationAuthorinfo@fattureincloud.it