This creates a one-off fixed fee invoice line item on an Invoice.
This can only be done for invoices that are in a draft status.
The behavior depends on which parameters are provided:
item_id is provided without name: The item is looked up by ID, and the item’s name
is used for the line item.name is provided without item_id: An item with the given name is searched for in the account.
If found, that item is used. If not found, a new item is created with that name.
The new item’s name is used for the line item.item_id and name are provided: The item is looked up by ID for association,
but the provided name is used for the line item (not the item’s name).API Keys can be issued in the Orb's web application.
A date string to specify the line item's start date in the customer's timezone.
"2023-09-22"
A date string to specify the line item's end date in the customer's timezone.
"2023-09-22"
The number of units on the line item
1
The id of the Invoice to add this line item.
"4khy3nwzktxv7"
The total amount in the invoice's currency to add to the line item.
"12.00"
The name to use for the line item. If item_id is not provided, Orb will search for an item with this name. If found, that item will be associated with the line item. If not found, a new item will be created with this name. If item_id is provided, this name will be used for the line item, but the item association will be based on item_id. At least one of name or item_id must be provided.
"Item Name"
The id of the item to associate with this line item. If provided without name, the item's name will be used for the price/line item. If provided with name, the item will be associated but name will be used for the line item. At least one of name or item_id must be provided.
"4khy3nwzktxv7"
Created
The final amount for a line item after all adjustments and pre paid credits have been applied.
"7.00"
The end date of the range of time applied for this line item's price.
"2022-02-01T08:00:00+00:00"
[DEPRECATED] For configured prices that are split by a grouping key, this will be populated with the key and a value. The amount and subtotal will be the values for this particular grouping.
All adjustments applied to the line item in the order they were applied based on invoice calculations (ie. usage discounts -> amount discounts -> percentage discounts -> minimums -> maximums).
The name of the price associated with this line item.
"Fixed Fee"
Either the fixed fee quantity or the usage during the service period.
1
The start date of the range of time applied for this line item's price.
"2022-02-01T08:00:00+00:00"
The line amount before any adjustments.
"9.00"
The line amount after any adjustments and before overage conversion, credits and partial invoicing.
"5.00"
The number of prepaid credits applied.
"6.00"
Any amount applied from a partial invoice
"4.00"
For complex pricing structures, the line item can be broken down further in sub_line_items.
An array of tax rates and their incurred tax amounts. Empty if no tax integration is configured.
A unique ID for this line item.
The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in the form of an invoice line item. Prices take a quantity and determine an amount to bill.
Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a given Price object. The model_type field determines the key for the configuration object that is present.
For more on the types of prices, see the core concepts documentation
A list of customer ids that were used to calculate the usage for this line item.
An additional filter that was used to calculate the usage for this line item.