Skip to main content

Creating an Invoice

Invoice invoice = new Invoice
{
CustomerId = 12345,
LineItems = new List<LineItem>
{
new LineItem
{
Description = "Service Charge",
Amount = 100
}
}
};
var response = chargeOver.CreateInvoice(invoice);
if (response.Success)
{
Console.WriteLine("Invoice created successfully");
}