---
displayed_sidebar: pricingReference
---

import ParameterTypes from "@site/src/components/ParameterTypes"

# SetPriceListRulesDTO

The rules to add to a price list.

<ParameterTypes parameters={[
  {
    "name": "priceListId",
    "type": "`string`",
    "description": "The ID of the price list to add rules to.",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "rules",
    "type": "`Record<string, string \\| string[]>`",
    "description": "The rules to add to the price list. Each key of the object is a rule type's `rule_attribute`, and its value\nis the value(s) of the rule.",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": []
  }
]} />
