Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.

Body

application/json
id
string
required
Minimum string length: 1
name
string
required
Minimum string length: 1
brandId
string
required
Minimum string length: 1
category
string
required
Minimum string length: 1
skus
object[]
required
Minimum array length: 1
serialTracked
boolean
default:false
warrantyMonths
integer
default:0
Required range: 0 <= x <= 9007199254740991
ageRestricted
boolean
default:false
rentable
boolean
default:false
serviceable
boolean
default:false
hsCode
string
taxonomy
object
imageUrl
string
active
boolean
default:true

Response

The created product: its id, version 1, and the projected view.

The created product: its id, version 1, and the projected view.

id
string
required
version
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
view
object
required