---
updatedAt: 2026-08-23T20:56:45.000Z
agentTools:
  projectIndex: https://x-series-api.lightspeedhq.com/llms.txt
---

# List purchase order line items

Returns a paginated list of line items belonging to a purchase order using version-based
cursor pagination. Cost fields require the `products:read:costs` scope.

🔒 Requires: `consignments:read` scope

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {
      "email": "x-series.api@lightspeedhq.com",
      "name": "Lightspeed Developer Relations",
      "url": "https://developers.retail.lightspeed.app"
    },
    "description": "Lightspeed Retail (X-Series) API.",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "termsOfService": "https://developers.lightspeedhq.com/terms",
    "title": "API 2026-10",
    "version": "2026-10"
  },
  "servers": [
    {
      "url": "https://{domain_prefix}.retail.lightspeed.app/api/2026-10",
      "variables": {
        "domain_prefix": {
          "default": "example",
          "description": "Domain prefix of the store to be operated on"
        }
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "description": "Purchase order operations",
      "name": "Purchase Orders"
    }
  ],
  "externalDocs": {
    "description": "List of tz database time zones",
    "url": "https://en.wikipedia.org/wiki/List_of_tz_database_time_zones"
  },
  "paths": {
    "/purchase_orders/{purchase_order_id}/line_items": {
      "get": {
        "description": "Returns a paginated list of line items belonging to a purchase order using version-based\ncursor pagination. Cost fields require the `products:read:costs` scope.\n\n🔒 Requires: `consignments:read` scope",
        "operationId": "ListPurchaseOrderLineItems",
        "parameters": [
          {
            "$ref": "#/components/parameters/PurchaseOrderID"
          },
          {
            "$ref": "#/components/parameters/PurchaseOrderAfter"
          },
          {
            "$ref": "#/components/parameters/PurchaseOrderBefore"
          },
          {
            "$ref": "#/components/parameters/PurchaseOrderPageSize"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLineItemCollectionResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "List purchase order line items",
        "tags": [
          "Purchase Orders"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    },
    "schemas": {
      "PurchaseOrderVersion": {
        "properties": {
          "max": {
            "description": "Highest version number in the payload.",
            "format": "int64",
            "nullable": true,
            "type": "integer"
          },
          "min": {
            "description": "Lowest version number in the payload.",
            "format": "int64",
            "nullable": true,
            "type": "integer"
          }
        },
        "required": [
          "min",
          "max"
        ],
        "title": "Purchase Order Version",
        "type": "object"
      },
      "PurchaseOrderLineItemAllocation": {
        "properties": {
          "outlet_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          }
        },
        "required": [
          "outlet_id",
          "quantity"
        ],
        "title": "Purchase Order Line Item Allocation",
        "type": "object"
      },
      "PurchaseOrderLineItemComponent": {
        "properties": {
          "bom_quantity": {
            "type": "string"
          },
          "component_product_id": {
            "type": "string"
          },
          "cost_price": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "component_product_id",
          "bom_quantity",
          "cost_price"
        ],
        "title": "Purchase Order Line Item Component",
        "type": "object"
      },
      "PurchaseOrderLineItem": {
        "properties": {
          "allocations": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLineItemAllocation"
            },
            "type": "array"
          },
          "components": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLineItemComponent"
            },
            "type": "array"
          },
          "cost_price": {
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "purchase_order_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "version",
          "purchase_order_id",
          "product_id",
          "quantity",
          "cost_price",
          "allocations",
          "created_at",
          "updated_at"
        ],
        "title": "Purchase Order Line Item",
        "type": "object"
      },
      "PurchaseOrderLineItemCollectionResponse": {
        "example": {
          "data": [
            {
              "allocations": [
                {
                  "outlet_id": "6ba7b810-9dad-41d1-80b4-00c04fd430c8",
                  "quantity": "10"
                }
              ],
              "cost_price": "2.50",
              "created_at": "2026-04-01T12:00:00Z",
              "id": "550e8401-e29b-41d4-a716-446655440000",
              "product_id": "550e8402-e29b-41d4-a716-446655440000",
              "purchase_order_id": "550e8400-e29b-41d4-a716-446655440000",
              "quantity": "10",
              "updated_at": "2026-04-01T12:00:00Z",
              "version": 7
            }
          ],
          "version": {
            "max": 7,
            "min": 7
          }
        },
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLineItem"
            },
            "type": "array"
          },
          "version": {
            "$ref": "#/components/schemas/PurchaseOrderVersion"
          }
        },
        "required": [
          "data",
          "version"
        ],
        "title": "Purchase Order Line Item Collection Response",
        "type": "object"
      }
    },
    "parameters": {
      "PurchaseOrderAfter": {
        "description": "The lower limit for the version numbers to be included in the response.",
        "in": "query",
        "name": "after",
        "schema": {
          "format": "int64",
          "minimum": 0,
          "type": "integer"
        }
      },
      "PurchaseOrderBefore": {
        "description": "The upper limit for the version numbers to be included in the response.",
        "in": "query",
        "name": "before",
        "schema": {
          "format": "int64",
          "minimum": 0,
          "type": "integer"
        }
      },
      "PurchaseOrderPageSize": {
        "description": "The maximum number of items to return. Defaults to 100 and cannot exceed 1000.",
        "in": "query",
        "name": "page_size",
        "schema": {
          "format": "int64",
          "maximum": 1000,
          "minimum": 0,
          "type": "integer"
        }
      },
      "PurchaseOrderID": {
        "description": "The unique identifier of the purchase order.",
        "in": "path",
        "name": "purchase_order_id",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    }
  }
}
```