Create a product
Products
Create a product
Creates a new product for the authenticated user
POST
Create a product
Documentation Index
Fetch the complete documentation index at: https://developers.lightyshare.com/llms.txt
Use this file to discover all available pages before exploring further.
Request Structure
Key Fields
| Field | Required | Description |
|---|---|---|
code | No | Unique product SKU code |
description | Yes | Short product description |
stock_unit_type_id | Yes | Unit of measure type ID |
barcode | No | Primary product barcode |
commodity_code | No | HS code for customs |
shelf_life_min | No | Minimum shelf life in days |
shelf_life_max | No | Maximum shelf life in days |
Authorizations
Use your API token in the Authorization header with Bearer scheme.
Alternative: You can also pass the token as a query parameter ?token=your_token for backward compatibility.
Query Parameters
User authentication token
Example:
"YOUR_TOKEN"
Body
application/json