Skip to main content

Product

Base path: /api/data/product

All product CRUD endpoints are registered but not yet implemented — handlers are empty stubs.

POST /api/data/product

Create a new product record.

Auth: Session cookie required Tenant: Scoped via x-tenant-id header

Not yet implemented — returns no response.

Product Schema Reference

FieldTypeRequiredDescription
tenantIdstringYesTenant identifier
namestringYesProduct name
descriptionstringNoProduct description
skustringYesStock-keeping unit code
priceCentsnumberYesPrice in cents (non-negative integer)
currencystringNoISO 4217 currency code, 3 chars (default USD)
requiredRoleIdsstring[]NoRole IDs required to purchase (default [])
grantedRoleIdsstring[]NoRole IDs granted upon purchase (default [])
isDigitalbooleanNoWhether the product is digital (default false)
isActivebooleanNoWhether the product is active (default true)
inventoryTrackedbooleanNoWhether inventory is tracked (default true)
createdAtdateYesCreation timestamp
updatedAtdateYesLast update timestamp

GET /api/data/product/:id

Retrieve a product by ID.

Auth: Session cookie required Tenant: Scoped via x-tenant-id header

Not yet implemented — returns no response.


PATCH /api/data/product/:id

Update a product by ID.

Auth: Session cookie required Tenant: Scoped via x-tenant-id header

Not yet implemented — returns no response.


DELETE /api/data/product/:id

Delete a product by ID.

Auth: Session cookie required Tenant: Scoped via x-tenant-id header

Not yet implemented — returns no response.