InvoicingAPI NuGet Package
Description
InvoicingAPI is a powerful platform designed to simplify the process of creating invoices and managing your invoice payments. Create beautiful, customizable and dynamic, tax-compliant invoices with payment links built in. Get notified when you get paid.
Usage
Here’s a basic example of how to use InvoicingAPI. This is a basic usage of the API. For all available body parameters, see the API documentation.
var client = new InvoicingApiClient("__YOUR_API_KEY__");
var body = new CreateInvoiceBody
{
Template = "business3",
Color = "black",
DocumentType = "letter",
FontSize = 11,
InvoiceNumber = "3345",
IssueDate = DateTime.Now,
DueDate = DateTime.Now,
IssuerAddress = new Address
{
Name = "Jane Doe",
Email = "janedoe@outlook.com",
AddressLine1 = "Krusty Avenue 3rd",
AddressLine2 = "Business Center, Office 101",
Telephone = "94 903 9932"
},
RecipientAddress = new Address
{
Name = "John Doe",
Email = "johndoe@gmail.com",
AddressLine1 = "John Keneddy Str",
Telephone = "(034)-543-43354"
},
LineItems = new List<LineItem>
{
new LineItem
{
Description = "App consulting services", Quantity = 1, UnitPrice = 950
}
},
Currency = "usd",
Notes = "Payment Information\nIBAN Number: 43249423423489234",
IsPaid = false
};
var result = await client.CreateInvoice(body);
if (result.InvoiceByteArray != null)
{
File.WriteAllBytes($@"__PATH__\{result.FileName}", result.InvoiceByteArray);
}
Support
If you encounter any issues or have any questions about InvoicingAPI, please contact us at support@invoicingapi.com.