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>",
      "product_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,
      "category_id": 123,
      "sub_category_id": 123,
      "category_name": "<string>",
      "sub_category_name": "<string>",
      "location_stocks": [
        {
          "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
        }
      ]
    }
  ],
  "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:100

Number of items per page

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

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