Skip to main content
GET
/
purchase-orders
/
items
Purchase order items
curl --request GET \
  --url https://{companyName}.api.joinluminous.com/external/api/v1/purchase-orders/items \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 123,
      "purchase_order_id": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "quantity": 123,
      "unit_price": 123,
      "unit": "<string>",
      "tax": 123,
      "discount_amount": 123,
      "line_total": 123,
      "received_quantity": 123,
      "source_sku": "<string>",
      "product": {
        "id": 123,
        "name": "<string>",
        "description": "<string>",
        "retail_price": 123,
        "wholesale_price": 123,
        "unit_cost": 123,
        "product_weight": 123,
        "product_length": 123,
        "product_width": 123,
        "product_height": 123,
        "sellable": true,
        "discontinued": true,
        "image_url": "<string>",
        "variant_attributes": {},
        "sku": "<string>",
        "upc": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      },
      "base_unit_of_measure": {
        "id": 123,
        "name": "<string>",
        "abbreviation": "<string>"
      },
      "ordered_unit_of_measure": {
        "id": 123,
        "name": "<string>",
        "abbreviation": "<string>"
      },
      "lot": {
        "id": 123,
        "lot_number": "<string>",
        "expiration_date": "2023-12-25"
      }
    }
  ],
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 5,
    "per_page": 10,
    "to": 10,
    "total": 50
  }
}

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To obtain a token, contact [email protected]

Query Parameters

page
integer
default:1

Page number for pagination

per_page
integer
default:10

Number of items per page (max 100)

Required range: x <= 100
purchase_order_id
integer

Filter by purchase order ID

source_sku
string

Filter by source SKU

quantity
number<float>

Filter by ordered quantity

received_quantity
number<float>

Filter by received quantity

unit_price
number<float>

Filter by unit price

on_shipment
boolean

Filter by whether the item is on a shipment

created_at
string<date-time>

Filter by creation date

updated_at
string<date-time>

Filter by last update date

product.id
integer

Filter by product ID

product.name
string

Filter by product name

product.description
string

Filter by product description

product.sku
string

Filter by product SKU (searches both internal and alternate SKUs)

product.upc
string

Filter by product UPC/Barcode

product.sellable
boolean

Filter by product sellable status

product.discontinued
boolean

Filter by whether the product is discontinued

product.retail_price
number<float>

Filter by product retail price

product.wholesale_price
number<float>

Filter by product wholesale price

product.tag
string

Filter by product tags

product.category.id
integer

Filter by product category ID

product.category.name
string

Filter by product category name

product.sub_category.id
integer

Filter by product sub-category ID

product.sub_category.name
string

Filter by product sub-category name

product.supplier.id
integer

Filter by product supplier ID

product.supplier.name
string

Filter by product supplier name

product.q
string

General product search (matches name OR upc OR sku)

Response

Successful response

data
object[]
meta
object