BoldSales

API Documentation

Create a product

post/api/v1/products

Creates 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

skipValidationbooleanA 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

namestringRequiredThe name of the product.
descriptionstringProvides a detailed description of the product, including its features, benefits, and other relevant information.
productCodestringA unique identifier or SKU (Stock Keeping Unit) for the product. This code is typically used for inventory management and product identification.
listPricedecimalThe standard selling price of the product before any discounts or promotions are applied.
isActiveProductbooleanIndicates 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.

idintegerThe unique identifier of the product category.

ownerobject

Identifies the user or entity who owns or is responsible for managing the product.

idintegerThe unique ID of the product owner or manager.

sellingTypeobject

Specifies how the product is sold (e.g., one-time purchase, subscription).

idintegerThe unique identifier of the selling type.

subscriptionTypeobject

Defines the subscription model for the product, applicable when the selling type is subscription.

idintegerThe unique identifier of the subscription type.

chargeTypeobject

Specifies how charges are applied to the product (e.g., one-time, recurring).

idintegerThe unique identifier of the charge type.

billingFrequencyobject

Defines how frequently the product is billed when sold as a subscription or recurring service (e.g., monthly, quarterly, half-yearly, annually).

idintegerThe unique identifier of the billing frequency.
termintegerRepresents the duration or term length for the product, typically measured in months.

taxobject

Specifies the tax configuration applicable to the product.

idintegerThe unique identifier of the tax rate or tax configuration.

customFieldsobject

Represents a collection of user-defined fields used to enrich the creation of a new product record.

cf_warrantyintegerThe unique identifier of the field option for the warranty.

Example response

201 Created

{
  "message": "Product created successfully.",
  "data": {
    "id": 900
  }
}