Products

Products API

Manage your product catalog - create, update, and retrieve product information.

GET/v1/products
Retrieve a paginated list of products

Query Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number (default: 1)
limitintegerNoItems per page (default: 20, max: 100)
categorystringNoFilter by category name
activebooleanNoFilter by active status
searchstringNoSearch by name or SKU
curl -X GET "https://gateway.regentherapy.com/api/v1/products?page=1&limit=20" \
  -H "X-API-Key: rg_your_api_key"
GET/v1/products/:id
Retrieve a single product by ID

Path Parameters

ParameterTypeDescription
idstringThe product ID (UUID format)
curl -X GET "https://gateway.regentherapy.com/api/v1/products/prod_abc123" \
  -H "X-API-Key: rg_your_api_key"
POST/v1/products
Create a new product

Request Body

FieldTypeRequiredDescription
namestringYesProduct name (max 255 characters)
skustringYesUnique stock keeping unit
basePricenumberYesBase selling price
descriptionstringNoFull product description
costPricenumberNoCost/wholesale price
categoryIdstringNoCategory ID to assign
isActivebooleanNoWhether product is active (default: true)
isControlledbooleanNoWhether product is controlled substance
weightnumberNoProduct weight for shipping
weightUnitstringNoWeight unit: oz, lb, g, kg (default: oz)
curl -X POST "https://gateway.regentherapy.com/api/v1/products" \
  -H "X-API-Key: rg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "New CBD Product",
    "sku": "CBD-NEW-001",
    "basePrice": 59.99,
    "costPrice": 20.00,
    "description": "High-quality CBD product",
    "categoryId": "cat_xyz",
    "weight": 3.5,
    "weightUnit": "oz"
  }'
PUT/v1/products/:id
Update an existing product

Send only the fields you want to update. All fields are optional.

curl -X PUT "https://gateway.regentherapy.com/api/v1/products/prod_abc123" \
  -H "X-API-Key: rg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "basePrice": 89.99,
    "isActive": false
  }'
DELETE/v1/products/:id
Delete a product (soft delete)

Products are soft-deleted and can be restored within 30 days. Products with active orders cannot be deleted.

curl -X DELETE "https://gateway.regentherapy.com/api/v1/products/prod_abc123" \
  -H "X-API-Key: rg_your_api_key"
Product Object
The complete product object structure
FieldTypeDescription
idstringUnique product identifier (UUID)
namestringProduct display name
skustringStock keeping unit (unique)
barcodestring | nullUPC/EAN barcode
descriptionstring | nullFull product description
shortDescriptionstring | nullBrief description for listings
basePricenumberBase selling price
costPricenumber | nullCost/wholesale price
compareAtPricenumber | nullOriginal price for sale display
isActivebooleanWhether product is available
isControlledbooleanControlled substance flag
requiresPrescriptionbooleanRequires prescription
weightnumber | nullProduct weight
weightUnitstringWeight unit (oz, lb, g, kg)
dimensionsobject | nullLength, width, height
categoryobject | nullCategory object with id and name
inventoryobjectTotal and available inventory counts
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 last update timestamp