Creates an InvoiceItem object
- Parameters:
params - a dict of parameters; valid keys are:
-
amount : Amount of the invoice item in the
smallest unit of your currency. Example: 100 = $1.00
required
-
description : Individual items of an invoice
[max length: 1024]
-
invoice : The ID of the invoice this item
belongs to.
-
product : Product ID this item relates to.
-
quantity : Quantity of the item. This total
amount of the invoice item is the amount * quantity. [min
value: 1, max value: 999999, default: 1]
-
reference : User defined reference field. [max
length: 255]
-
tax : The tax ID of the tax charge in the
invoice item.
auth_args - an Authentication object used for the API call. If no value is
passed the gloabl keys simplify.public_key and
simplify.private_key are used. For backwards compatibility the
public and private keys may be passed instead of an
Authentication object.
private_api_key - Private key to use for the API call. If None , the
value of simplify.private_key will be used.
- Returns:
- a InvoiceItem object
|