InvoiceItem Type
Details about an invoice item.
Remarks
Details about an invoice item.
For example, the following code adds one item to an invoice.
Example: Setting the fields:
InvoiceItem item = new InvoiceItem();
item.Name = "THNLZZY-JB-VL"
item.Description = "Thin Lizzy Jailbreak Vinyl"
item.Quantity = "1"
item.UnitPrice = "12.00"
component.InvoiceItems.Add(item);
Example: Using the Constructors:
component.InvoiceItems.Add(new InvoiceItem("THNLZZY-JB-VL", "1", "12.00"));
Fields
| |
Date String |
Date on which the product or service was provided.
The date and time must be in the following format:
"yyyy-MM-ddTHH:mm:ss.fffZ".
This is explained in more detail below:
| | yyyy | Four-digit year, e.g. "2005" | MM | Two-digit month. | dd | Two-digit day. | T | Indicates time follows the date. | HH | Hours in military time (24-hour format). | mm | Minutes | ss | Seconds | fff | Milliseconds | Z | 1-character (US military) representation of the time zone, "A" - "M" are negative offsets -1 to -12, with "J" not being used. "N" - "Y" are positive offsets 1 to 12, and "Z" indicates GMT/UTC (no offset). |
For instance, "2004-05-26T15:00:00.000Z" is May 26th, 2004 at 3:00pm GMT.
|
Description String |
Description of the invoice item.
|
Name String |
SKU or name of the item.
This field is required.
|
Quantity String |
Item count. Valid values are 0 to 10.000.
This field is required.
|
TaxName String |
Name of the applicable tax.
|
TaxRate String |
Rate of the applicable tax.
|
UnitPrice String |
Price of the item (in the currency specified by CurrencyCode).
This field is required.
|
Constructors
[VB.NET]
Public InvoiceItem()
[C#]
public InvoiceItem();
[VB.NET]
Public InvoiceItem(ByVal Name As String, ByVal Quantity As String, ByVal UnitPrice As String)
[C#]
public InvoiceItem(string name, string quantity, string unitPrice);