Create a product
POST/api/products
Required permissions:
- product.edit: allows to create products.
Here the dedicated support page.
Request
Header Parameters
The company you want to interact with
The API version you want to use
- application/json
Body
Possible values: <= 50 characters
The product name
Possible values: <= 50 characters
The product description
Product availability start date. This follows the YYYY-MM-DD format
Product availability end date. This follows the YYYY-MM-DD format
Default value: 0
The external cost of the product
Default value: 0
The markup percentage for the product
The final price of the product
Responses
- 201
- 400
- 401
- 403
- 412
Returns the product created.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 1
The unique identifier of the resource
The date and time when the resource was created
The date and time when the resource was last updated
Possible values: <= 50 characters
The name of the product
Possible values: <= 50 characters
The description of the product
The availability start date of the product
The availability end date of the product
The external cost of the product
The markup percentage for the product
The final price of the product
{
"id": 1,
"created_at": "2025-11-27T15:33:51.319Z",
"updated_at": "2025-11-27T15:33:51.319Z",
"name": "Premium Software License",
"description": "Annual license for premium software features",
"available_from": "2024-01-01",
"available_to": "2024-12-31",
"external_cost": 100.5,
"markup": 20,
"price": 120.6
}
Validation failed
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error unique key
Human-readable message describing the error
failures
object[]
List of validation errors
Name of the field causing the error
Human-readable description of the error
{
"key": "invalid_data",
"message": "You provided invalid data. Check 'failures' for details.",
"failures": [
{
"field": "string",
"message": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Precondition failed
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "precondition_failure",
"message": "string"
}