PATCH
/
api
/
v1
/
products
/
inventory
/
{lot_id}
/
quantity
curl --request PATCH \
  --url https://api.byblend.com/api/v1/products/inventory/{lot_id}/quantity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "additional_quantity": 100
}'
{
  "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.

Body

application/json

Response

201 - application/json

Inventory created successfully

The response is of type object.