Skip to main content
GET
/
inventory
/
stocks
Inventory stock
curl --request GET \
  --url https://{companyName}.api.joinluminous.com/external/api/v1/inventory/stocks \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "sku": "<string>",
      "name": "<string>",
      "type": "<string>",
      "qty_onhand": 123,
      "qty_pending": 123,
      "qty_available": 123,
      "qty_incoming": 123,
      "qty_backordered": 123,
      "qty_available_via_assembly": 123,
      "qty_recoverable_via_disassembly": 123,
      "qty_outstanding": 123,
      "current_landed_unit_cost": 123,
      "updated_at": "2023-11-07T05:31:56Z",
      "category_id": 123,
      "sub_category_id": 123,
      "category_name": "<string>",
      "sub_category_name": "<string>",
      "location_stocks": [
        {
          "id": 123,
          "warehouse": {
            "id": 123,
            "status": "<string>",
            "name": "<string>",
            "parent_id": 123,
            "created_at": "2023-11-07T05:31:56Z",
            "updated_at": "2023-11-07T05:31:56Z"
          },
          "location": {
            "id": 123,
            "status": "<string>",
            "name": "<string>",
            "parent_id": 123,
            "created_at": "2023-11-07T05:31:56Z",
            "updated_at": "2023-11-07T05:31:56Z"
          },
          "qty_onhand": 123,
          "qty_pending": 123,
          "qty_available": 123,
          "qty_incoming": 123,
          "qty_available_via_assembly": 123,
          "qty_recoverable_via_disassembly": 123,
          "current_landed_unit_cost": 123
        }
      ]
    }
  ],
  "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 developers@joinluminous.com

Query Parameters

page
integer
default:1

Page number for pagination

per_page
integer
default:100

Number of items per page

sort
string
default:updated_at:desc

Sort results by field and direction. Format: field:direction

⚠️ Warning: Default sorting by updated_at changes frequently and can cause pagination issues. For stable pagination, use product.id:asc, product.sku:asc, or product.name:asc.

Available sort fields:

  • product.id - Product ID
  • product.sku - Product SKU
  • product.name - Product name
  • updated_at - Last stock update date (default)

Examples:

  • product.id:asc - Sort by product ID ascending
  • product.sku:desc - Sort by product SKU descending
  • product.name:asc - Sort by product name ascending
  • updated_at:asc - Sort by update date ascending
location
integer

Filter by location ID

warehouse_ids
string

Filter by warehouse ID(s), comma-separated

warehouse_group_ids
string

Filter by warehouse group ID(s), comma-separated

qty_onhand
integer

Filter by quantity on hand

qty_pending
integer

Filter by pending quantity

qty_available
integer

Filter by available quantity

qty_incoming
integer

Filter by incoming quantity

qty_backordered
number<float>

Filter by quantity backordered

qty_available_via_assembly
number<float>

Filter by quantity available via assembly

qty_recoverable_via_disassembly
number<float>

Filter by quantity recoverable via disassembly

qty_outstanding
number<float>

Filter by quantity outstanding

updated_at
string<date-time>

Filter by last stock update date

discontinued
integer

Filter by discontinued status (0 = not discontinued, 1 = discontinued, 2+ = all)

sku
string

Filter by SKU (searches product name, internal SKU, UPC, and alternate SKUs)

product_name
string

Filter by product name

category_id
string

Filter by category ID(s), comma-separated

subcategory_ids
string

Filter by subcategory ID(s), comma-separated

product_type
string

Filter by product type

product_type_id
integer

Filter by product type ID

product.q
string

Filter by name OR upc OR sku

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 SKU (searches both internal and alternate SKUs)

product.upc
string

Filter by UPC/Barcode

product.sellable
boolean

Filter by sellable status

product.discontinued
boolean

Filter by whether the product is discontinued

product.retail_price
number<float>

Filter by retail price

product.wholesale_price
number<float>

Filter by wholesale price

product.created_at
string<date-time>

Filter by creation date

product.updated_at
string<date-time>

Filter by last update date

product.tag
string

Filter by product tags

product.category.id
integer

Filter by category ID

product.category.name
string

Filter by category name

product.sub_category.id
integer

Filter by sub-category ID

product.sub_category.name
string

Filter by sub-category name

product.supplier.id
integer

Filter by supplier ID

product.supplier.name
string

Filter by supplier name

Response

Successful response

data
object[]
meta
object