Skip to main content
POST

Authorizations

Authorization
string
header
required

Paste the JWT access token returned by the corresponding login endpoint.

Body

application/json

Required fields are based on VendorProductRequest class-validator decorators. The image TypeScript property is declared as string, but the controller iterates it as an array of image objects; that repository inconsistency is explicitly called out in the schema description.

productName
string
required

Required product name.

Maximum string length: 255
sku
string
required

Required unique SKU.

Maximum string length: 64
productType
string
required

Required product type. Replace the placeholder with a value supported by the deployment.

quantity
number
required

Required available product quantity.

categoryId
integer[]
required

Required non-empty category ID list.

image
object[]
required

Required image entries. The controller iterates this value and reads image/containerName/defaultImage from each entry; the TypeScript DTO currently declares image as string, so this is a source type mismatch to confirm.

price
number
required

Required product price.

isSpecification
integer
required

Required specification flag.

productDescription
string
productSlug
string
status
integer
upc
string
hsn
string
tax
number
taxType
integer
taxId
integer

Response

Successful response, copied from the current VendorProductController @apiSuccessExample.

status
integer
message
string
data
object