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

Authorizations

Authorization
string
header
required

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

Path Parameters

product_id
string
required

Unique (UUID) identifier for the product

Example:

"98cae3a3-996c-4bf5-9143-0ab6d98bc1d0"

Body

application/json

Response

201 - application/json

Inventory created successfully

The response is of type object.