var request = new CreateInvoiceRequest();
request.AuthenticationData.ApiKey = "<YOUR AGENT KEY>";
request.Seller.BankName = "Our Bank";
request.Seller.BankAccount = "11111111-22222222-33333333";
request.Customer.Name = "Good Friend Inc.";
request.Customer.CustomerAddress.PostalCode = "1132";
request.Customer.CustomerAddress.City = "Budapest";
request.Customer.CustomerAddress.StreetAddress = "Tárnoki út 23.";
request.Customer.TaxNumber = "12345678-1-42";
request.Items = new List<InvoiceItem> {
new InvoiceItem {
Name = "Something we sell",
Quantity = 1,
UnitOfQuantity = "piece",
UnitPrice = 1000,
VatRate = "EU",
NetPrice = 1000,
VatAmount = 0,
GrossAmount = 1000
}
};
var api = new SzamlazzHuApi();
var response = await api.CreateInvoice(request);
//Optionally write invoice PDF to the disk
File.WriteAllBytes("invoice.pdf", response.InvoicePdf);
If you are missing something please open an issue, or send a pull request! Every contribution is welcome :)