Skip to navigation

Create product

View as Markdown
Creates a product and initializes its inventory with zero units.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
namestringRequired<=255 characters
pricedoubleRequired0-100000000
is_activebooleanRequired
categorieslist of integersRequired
descriptionstring or nullOptional

Response

Product created successfully.
idinteger
skustring
namestring
slugstring
descriptionstring or null
pricestringformat: "^\d+(\.\d{2})$"
is_activeboolean
categorieslist of objects

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error