BoldSales

API Documentation

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

idintegerRequiredThe unique identifier of the product to update.

Query parameters

skipValidationbooleanA 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

namestringRepresents the name of the product.
descriptionstringProvides additional details or notes about the product.
productCodestringA unique identifier or SKU for the product.
listPricedecimalThe standard selling price of the product.

categoryobject

Defines the product category assignment.

idintegerThe unique identifier of the product category.

ownerobject

Identifies the user who owns this product.

idintegerThe unique ID of the product owner.

sellingTypeobject

Specifies how the product is sold.

idintegerThe unique identifier of the selling type.

subscriptionTypeobject

Defines the subscription model for the product.

idintegerThe unique identifier of the subscription type.

chargeTypeobject

Specifies how charges are applied to the product.

idintegerThe unique identifier of the charge type.

billingFrequencyobject

Defines the billing frequency for the product.

idintegerThe unique identifier of the billing frequency.
termintegerRepresents the duration or term length for the product.

taxobject

Specifies the tax configuration for the product.

idintegerThe unique identifier of the tax configuration.
isActiveProductbooleanIndicates whether the product is currently active and available.
cf_manufacturerstringCustom 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
  }
}