Examples of SuperFaktura API client usage
Add Invoice
Main script to add an invoice and save it as a PDF using the SuperFaktura API.
This script demonstrates how to create an invoice with multiple items, retrieve the invoice as a PDF, and save the PDF to a file.
- Usage:
- Run this script directly to create and save an invoice PDF. 
- Dependencies:
- superfaktura.bank_account.BankAccount 
- superfaktura.client_contacts.ClientContactModel 
- superfaktura.enumerations.currency.Currencies 
- superfaktura.enumerations.language.Language 
- superfaktura.invoice.Invoice 
- superfaktura.invoice.InvoiceModel 
- superfaktura.invoice.InvoiceType 
- superfaktura.invoice.InvoiceItem 
- superfaktura.invoice.InvoiceSettings 
- superfaktura.utils.data_types.Date 
 
- examples.add_invoice.main()
- Main function to add Invoice and save it as a pdf using the SuperFaktura API. 
Get country list
This script retrieves and prints the list of countries using the SuperFaktura API.
- examples.get_country_list.main()
- Main function to retrieve and print the list of countries using the SuperFaktura API.