var request = new CreateInvoiceRequest();
request.Settings.ApiKey = "<YOUR AGENT KEY>";
request.Seller.BankName = "Our Bank";
request.Seller.BankAccount = "11111111-22222222-33333333";
request.Customer.CustomerContact.Name = "Good Friend Inc.";
request.Customer.CustomerContact.PostalCode = "1132";
request.Customer.CustomerContact.City = "Budapest";
request.Customer.CustomerContact.Address = "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.pdf);
forked from agabor/szamlazz-hu-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
License
safigi/szamlazz-hu-sdk
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C# 100.0%