Create a product
post/api/v1/productsCreates a new product and returns the created product's ID upon a successful API call.
Code snippet
curl -X 'POST' \
'https://{yourdomain}/api/v1/products' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}' \
-H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
-d '{
"data": {
"name": "Premium Software License",
"description": "Comprehensive software solution for enterprise customers",
"productCode": "PSL-2025-001",
"listPrice": 15000.00,
"isActiveProduct": true,
"category": {
"id": 35
},
"owner": {
"id": 1
},
"sellingType": {
"id": 114
},
"subscriptionType": {
"id": 115
},
"chargeType": {
"id": 118
},
"billingFrequency": {
"id": 38
},
"term": 6,
"tax": {
"id": 59
},
"customFields": {
"cf_manufacturer": "Northwind Manufacturing"
}
}
}'
Query parameters
| skipValidationboolean | A flag indicating whether to bypass specific validations during product creation. If set to true, the system skips checks for required fields, conditional logic, and field dependencies. When false (or unspecified), all standard validations are applied. |
Request body
| namestringRequired | The name of the product. | ||
| descriptionstring | Provides a detailed description of the product, including its features, benefits, and other relevant information. | ||
| productCodestring | A unique identifier or SKU (Stock Keeping Unit) for the product. This code is typically used for inventory management and product identification. | ||
| listPricedecimal | The standard selling price of the product before any discounts or promotions are applied. | ||
| isActiveProductboolean | Indicates whether the product is currently active and available for sale. When set to false, the product is considered inactive or discontinued. | ||
categoryobject | Defines the category or classification to which the product belongs.
| ||
ownerobject | Identifies the user or entity who owns or is responsible for managing the product.
| ||
sellingTypeobject | Specifies how the product is sold (e.g., one-time purchase, subscription).
| ||
subscriptionTypeobject | Defines the subscription model for the product, applicable when the
| ||
chargeTypeobject | Specifies how charges are applied to the product (e.g., one-time, recurring).
| ||
billingFrequencyobject | Defines how frequently the product is billed when sold as a subscription or recurring service (e.g., monthly, quarterly, half-yearly, annually).
| ||
| terminteger | Represents the duration or term length for the product, typically measured in months. | ||
taxobject | Specifies the tax configuration applicable to the product.
| ||
customFieldsobject | Represents a collection of user-defined fields used to enrich the creation of a new product record.
|
Example response
201 Created
{
"message": "Product created successfully.",
"data": {
"id": 900
}
}