GET
/
api
/
v1
/
products
/
inventory
curl --request GET \
  --url https://api.byblend.com/api/v1/products/inventory \
  --header 'Authorization: Bearer <token>'
{
  "non_prescription": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "created_at": "2025-03-15T12:00:00Z",
      "updated_at": "2025-03-15T12:00:00Z",
      "batch_number": "1234567890",
      "cost_per_unit": 2.49,
      "current_quantity": 80,
      "expiration_date": "2025-01-01T00:00:00",
      "is_active": true,
      "manufacturer": "Krill Farms",
      "mpn": "KF1234567890",
      "notes": "This batch was received as a replacement to batch 817",
      "received_date": "2025-01-01T18:21:45.371623",
      "unit_type": "mg",
      "upc": "7-12345-67890-4",
      "type": "prescription",
      "initial_quantity": 100,
      "associations": {
        "prescription": [
          {
            "customer": "Health First Telemedicine Clinic",
            "customer_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "name": "Special Blend Product",
            "product_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "units_per_product": 100
          }
        ],
        "non_prescription": [
          {
            "customer": "Health First Telemedicine Clinic",
            "customer_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "name": "Special Blend Product",
            "product_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "units_per_product": 100
          }
        ],
        "order_material": [
          {
            "customer": "Health First Telemedicine Clinic",
            "customer_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "name": "Special Blend Product",
            "product_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "units_per_product": 100
          }
        ]
      }
    }
  ],
  "prescription": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "created_at": "2025-03-15T12:00:00Z",
      "updated_at": "2025-03-15T12:00:00Z",
      "batch_number": "1234567890",
      "cost_per_unit": 2.49,
      "current_quantity": 80,
      "expiration_date": "2025-01-01T00:00:00",
      "is_active": true,
      "manufacturer": "Krill Farms",
      "mpn": "KF1234567890",
      "notes": "This batch was received as a replacement to batch 817",
      "received_date": "2025-01-01T18:21:45.371623",
      "unit_type": "mg",
      "upc": "7-12345-67890-4",
      "type": "prescription",
      "initial_quantity": 100,
      "associations": {
        "prescription": [
          {
            "customer": "Health First Telemedicine Clinic",
            "customer_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "name": "Special Blend Product",
            "product_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "units_per_product": 100
          }
        ],
        "non_prescription": [
          {
            "customer": "Health First Telemedicine Clinic",
            "customer_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "name": "Special Blend Product",
            "product_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "units_per_product": 100
          }
        ],
        "order_material": [
          {
            "customer": "Health First Telemedicine Clinic",
            "customer_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "name": "Special Blend Product",
            "product_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "units_per_product": 100
          }
        ]
      }
    }
  ],
  "order_material": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "created_at": "2025-03-15T12:00:00Z",
      "updated_at": "2025-03-15T12:00:00Z",
      "batch_number": "1234567890",
      "cost_per_unit": 2.49,
      "current_quantity": 80,
      "expiration_date": "2025-01-01T00:00:00",
      "is_active": true,
      "manufacturer": "Krill Farms",
      "mpn": "KF1234567890",
      "notes": "This batch was received as a replacement to batch 817",
      "received_date": "2025-01-01T18:21:45.371623",
      "unit_type": "mg",
      "upc": "7-12345-67890-4",
      "type": "prescription",
      "initial_quantity": 100,
      "associations": {
        "prescription": [
          {
            "customer": "Health First Telemedicine Clinic",
            "customer_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "name": "Special Blend Product",
            "product_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "units_per_product": 100
          }
        ],
        "non_prescription": [
          {
            "customer": "Health First Telemedicine Clinic",
            "customer_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "name": "Special Blend Product",
            "product_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "units_per_product": 100
          }
        ],
        "order_material": [
          {
            "customer": "Health First Telemedicine Clinic",
            "customer_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "name": "Special Blend Product",
            "product_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
            "units_per_product": 100
          }
        ]
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
string

Optional type of product to retrieve, either 'prescription', 'non_prescription', or 'order_material'

Example:

"prescription"

is_active
boolean

Optional filter to retrieve only active inventory lots

Example:

true

Response

200 - application/json

Successful response with inventory lots.

The response is of type object.