PUT /catalog/products/{product_id}/bulk-pricing-rules/{bulk_pricing_rule_id}

Updates a Bulk Pricing Rule.

Required Fields

Read-Only Fields

Servers

Path parameters

Name Type Required Description
bulk_pricing_rule_id Integer Yes

The ID of the BulkPricingRule.

product_id Integer Yes

The ID of the Product to which the resource belongs.

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
id Integer Yes

Unique ID of the Bulk Pricing Rule. Read-Only.

amount Object Yes

You can express the adjustment type as either a fixed dollar amount or a percentage. Send a number; the response will return a number for price and fixed adjustments. Divide the adjustment percentage by 100 and send the result in string format. For example, represent 10% as “.10”. The response will return a float value for both price and percentage adjustments. Required in /POST.

type String Yes

The type of adjustment that is made. Values: price - the adjustment amount per product; percent - the adjustment as a percentage of the original price; fixed - the adjusted absolute price of the product. Required in /POST.

Valid values:

  • "price"
  • "fixed"
  • "percent"
quantity_min Integer Yes

The minimum inclusive quantity of a product to satisfy this rule. Must be greater than or equal to zero. Required in /POST.

quantity_max Integer Yes

The maximum inclusive quantity of a product to satisfy this rule. Must be greater than the quantity_min value – unless this field has a value of 0 (zero), in which case there will be no maximum bound for this rule. Required in /POST.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. 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.
  3. Click Test request to test run your request to the API and see the API's response.