BoldSales

API Documentation

Product Fields

The product field API suite enables you to manage product-related data in BoldSales. It provides comprehensive capabilities to list, retrieve, create, update, and delete custom fields across your organization's modules. This section describes how to retrieve all fields in the product module.

Get all product fields

get/api/v1/products/fields

Retrieves a list of all fields in the product module, including details such as field IDs, names, and field types.

Code snippet

curl -X 'GET' \
  'https://{yourdomain}/api/v1/products/fields' \
  -H 'accept: text/plain; x-api-version=1.0' \
  -H 'x-api-key: {your API key}'

Query parameters

searchstringFilters the list of fields by field name or API name. Returns only fields whose field name or API name contains the specified search string.

Example response

200 Success

{
  "data": [
    {
      "placeholderText": "Enter your last name",
      "description": "Description text for Custom fields",
      "instructions": "Instruction text for Custom fields",
      "isSystemField": true,
      "isActive": true,
      "fieldTypeId": 1,
      "fieldTypeName": "Single-line text",
      "showInCreateForm": true,
      "isRequired": false,
      "fieldId": 2,
      "apiName": "lastName",
      "fieldName": "Last Name",
      "options": null
    },
    {
      "placeholderText": "",
      "description": "Description text for Custom fields",
      "instructions": "Instruction text for Custom fields",
      "isSystemField": false,
      "isActive": true,
      "fieldTypeId": 11,
      "fieldTypeName": "Single-select dropdown",
      "showInCreateForm": false,
      "isRequired": false,
      "fieldId": 33,
      "apiName": "cf_states",
      "fieldName": "States",
      "options": [
        {
          "id": 10,
          "value": "Tamil Nadu",
          "isActive": true
        },
        {
          "id": 11,
          "value": "Kerala",
          "isActive": true
        },
        {
          "id": 12,
          "value": "Karnataka",
          "isActive": true
        }
      ]
    }
  ]
}