commercetools · Schema
LineItem
A product line item in a cart or order with quantity, pricing, and discount information.
CommerceComposable CommerceE-CommerceGraphQLRESTSDK
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique identifier for the line item within the cart. |
| productId | string | ID of the product this line item references. |
| name | object | |
| variant | object | |
| price | object | |
| totalPrice | object | |
| quantity | integer | Quantity of this product variant in the cart. |
| lineItemMode | string | Whether this is a standard or gift line item. |
| priceMode | string | How the price for this line item is determined. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/LineItem",
"title": "LineItem",
"type": "object",
"description": "A product line item in a cart or order with quantity, pricing, and discount information.",
"required": [
"id",
"productId",
"name",
"variant",
"price",
"totalPrice",
"quantity",
"lineItemMode",
"priceMode"
],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the line item within the cart."
},
"productId": {
"type": "string",
"description": "ID of the product this line item references."
},
"name": {
"$ref": "#/components/schemas/LocalizedString"
},
"variant": {
"$ref": "#/components/schemas/ProductVariant"
},
"price": {
"$ref": "#/components/schemas/Price"
},
"totalPrice": {
"$ref": "#/components/schemas/Money"
},
"quantity": {
"type": "integer",
"minimum": 1,
"description": "Quantity of this product variant in the cart."
},
"lineItemMode": {
"type": "string",
"enum": [
"Standard",
"GiftLineItem"
],
"description": "Whether this is a standard or gift line item."
},
"priceMode": {
"type": "string",
"enum": [
"Platform",
"ExternalTotal",
"ExternalPrice"
],
"description": "How the price for this line item is determined."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/commercetools-lineitem"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.