Authorizations
API Keys can be issued in the Orb's web application.
Body
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"
Response
Created
The final amount for a line item after all adjustments and pre paid credits have been applied.
"7.00"
This field is deprecated in favor of adjustments
- PercentageDiscount
- TrialDiscount
- UsageDiscount
- AmountDiscount
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.
This field is deprecated in favor of adjustments
.
This field is deprecated in favor of adjustments
.
This field is deprecated in favor of adjustments
.
This field is deprecated in favor of adjustments
.
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).
- MonetaryUsageDiscountAdjustment
- MonetaryAmountDiscountAdjustment
- MonetaryPercentageDiscountAdjustment
- MonetaryMinimumAdjustment
- MonetaryMaximumAdjustment
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
.
- MatrixSubLineItem
- TierSubLineItem
- OtherSubLineItem
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
- UnitPrice
- TieredPrice
- BulkPrice
- BulkWithFiltersPrice
- PackagePrice
- MatrixPrice
- ThresholdTotalAmountPrice
- TieredPackagePrice
- TieredWithMinimumPrice
- GroupedTieredPrice
- TieredPackageWithMinimumPrice
- PackageWithAllocationPrice
- UnitWithPercentPrice
- MatrixWithAllocationPrice
- TieredWithProrationPrice
- UnitWithProrationPrice
- GroupedAllocationPrice
- BulkWithProrationPrice
- GroupedWithProratedMinimumPrice
- GroupedWithMeteredMinimumPrice
- GroupedWithMinMaxThresholdsPrice
- MatrixWithDisplayNamePrice
- GroupedTieredPackagePrice
- MaxGroupTieredPackagePrice
- ScalableMatrixWithUnitPricingPrice
- ScalableMatrixWithTieredPricingPrice
- CumulativeGroupedBulkPrice
- MinimumCompositePrice
- PercentCompositePrice
- EventOutputPrice
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.