Update a product
patch/api/v1/products/{id}Updates one or more field values for an existing product by ID. Supports updating product information, pricing details, category assignment, and custom fields.
Code snippet
curl -X 'PATCH' \
'https://{yourdomain}/api/v1/products/{id}' \
-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",
"listPrice": 24000.99,
"isActiveProduct": false,
"cf_manufacturer": "Northwind Manufacturing"
}
}'
Path parameters
| idintegerRequired | The unique identifier of the product to update. |
Query parameters
| skipValidationboolean | A flag indicating whether to bypass specific validations during product update. 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
| namestring | Represents the name of the product. | ||
| descriptionstring | Provides additional details or notes about the product. | ||
| productCodestring | A unique identifier or SKU for the product. | ||
| listPricedecimal | The standard selling price of the product. | ||
categoryobject | Defines the product category assignment.
| ||
ownerobject | Identifies the user who owns this product.
| ||
sellingTypeobject | Specifies how the product is sold.
| ||
subscriptionTypeobject | Defines the subscription model for the product.
| ||
chargeTypeobject | Specifies how charges are applied to the product.
| ||
billingFrequencyobject | Defines the billing frequency for the product.
| ||
| terminteger | Represents the duration or term length for the product. | ||
taxobject | Specifies the tax configuration for the product.
| ||
| isActiveProductboolean | Indicates whether the product is currently active and available. | ||
| cf_manufacturerstring | Custom field defined for the product module. Pass a custom field using its API name, which always begins with the cf_ prefix. The value must match the data type configured for the custom field. |
Example response
200 Success
{
"message": "Product updated successfully.",
"data": {
"id": 900
}
}