Skip to main content

lineItem

Represents an item that is being bought/sold

skustringrequired

The unique identifier of a product, product edition or package. It can be obtained by following this guide.

Default value:
Example: A-123
typestring
Default value: lineItem
Example: lineItem
quantityinteger

The number of units to ordered

Default value: 1
amountinteger

The unit price in cents. If not provided the default price for this sku in the marketplace will be used.

Default value: 0
intervalCodestring

The billing frequency

Possible values: [onetime, monthly, yearly, ``]

isPackageboolean

Indicates if this lineitem is a package instead of a product or an addon.

containedInPackagestring

Holds the SKU of the package that this lineitem is part of. Products inside of a package do not have pricing so refer to the lineitem of the package SKU to find the price.

Default value:
Example: MP-123:EDITION-123
lineItem
{
"sku": "A-123",
"type": "lineItem",
"quantity": 1,
"amount": 0,
"intervalCode": "onetime",
"isPackage": true,
"containedInPackage": "MP-123:EDITION-123"
}