POST /catalog/products/{product_id}/complex-rules
Creates a product Complex Rule.
Required Fields
- modifier_id
- modifier_value_id
- variant_id
Read-Only Fields
- complex_rule_id
- conditions_id
- rule_id
- combination_id
- id
Servers
- https://api.bigcommerce.com/stores/{store_hash}/v3
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
product_id |
Integer | Yes |
The ID of the |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Accept |
String | Yes |
The MIME type of the response body. Default value: "application/json" |
Content-Type |
String | Yes |
The MIME type of the request body. Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
price_adjuster |
Object | No |
Adjuster for Complex Rules. |
price_adjuster.adjuster_value |
Number | No |
The numeric amount by which the adjuster will change either the price or the weight of the variant, when the modifier value is selected on the storefront. |
price_adjuster.adjuster |
String | No |
The type of adjuster for either the price or the weight of the variant, when the modifier value is selected on the storefront. Valid values:
|
stop |
Boolean | No |
Flag for determining whether other rules should not be applied after this rule has been applied. |
sort_order |
Integer | No |
The priority to give this rule when making adjustments to the product properties. |
purchasing_disabled |
Boolean | No |
Flag for determining whether the rule should disable purchasing of a product when the conditions are applied. |
purchasing_disabled_message |
String | No |
Message displayed on the storefront when a rule disables the purchasing of a product. |
enabled |
Boolean | No |
Flag for determining whether the rule is to be used when adjusting a productʼs price, weight, image, or availabilty. |
conditions[] |
Array | No | |
purchasing_hidden |
Boolean | No |
Flag for determining whether the rule should hide purchasing of a product when the conditions are applied. |
weight_adjuster |
Object | No |
Adjuster for Complex Rules. |
weight_adjuster.adjuster_value |
Number | No |
The numeric amount by which the adjuster will change either the price or the weight of the variant, when the modifier value is selected on the storefront. |
weight_adjuster.adjuster |
String | No |
The type of adjuster for either the price or the weight of the variant, when the modifier value is selected on the storefront. Valid values:
|
image_url |
String | No |
The URL for an image displayed on the storefront when the conditions are applied. Limit of 8MB per file. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.