Skip to main content
POST
/
commerce
/
rules
/
product
Error
A valid request URL is required to generate request examples
{
  "ruleType": "<string>",
  "code": "<string>",
  "name": "<string>",
  "description": "<string>",
  "scope": "<string>",
  "expression": {
    "text": "<string>",
    "tree": {
      "type": "<string>",
      "logicalOperator": "<string>",
      "nodes": "<array>",
      "left": "<string>",
      "operator": "<string>",
      "right": "<unknown>"
    }
  },
  "metaData": "<unknown>",
  "auditInfo": {
    "updateDate": "2023-11-07T05:31:56Z",
    "createDate": "2023-11-07T05:31:56Z",
    "updateBy": "<string>",
    "createBy": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Query Parameters

responseFields
string

limits which fields are returned in the response body

Body

application/json

The product rule to create.

ruleType
string
required

The type of rule this ProductRule belongs to.

code
string | null

Unique identifier of the ProductRule. System-supplied and read-only.

name
string | null

ProductRule name

description
string | null

ProductRule description

scope
string | null

Scope to which the ProductRule applies, valid values are: Product, Variant

expression
object

Category

metaData
unknown
auditInfo
object

Response

Success

ruleType
string
required

The type of rule this ProductRule belongs to.

code
string | null

Unique identifier of the ProductRule. System-supplied and read-only.

name
string | null

ProductRule name

description
string | null

ProductRule description

scope
string | null

Scope to which the ProductRule applies, valid values are: Product, Variant

expression
object

Category

metaData
unknown
auditInfo
object