Skip to main content
POST
Create product

Overview

Create a new product in your tenant’s catalog. Products are automatically scoped to the tenant specified in the X-Tenant-ID header.

Authorization

  • User must be authenticated with a valid Bearer token
  • User must be a member of the tenant
  • Requires X-Tenant-ID header

Tenant Scoping

Products are automatically associated with the tenant from the X-Tenant-ID header. You don’t need to manually set the tenant_id in the request body.

Example Usage

Authorizations

Authorization
string
header
required

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

Headers

X-Tenant-ID
string
required

Tenant ID for multi-tenancy

Body

application/json
name
string
required
price
number<float>
required
description
string
stock
integer
category_id
integer

Response

201

Product created