PayNow

CustomVariableOptionRequestDto

Request model for defining custom variable options. Used within UpsertCustomVariableRequestDto for dropdown-type variables.

is_defaultbooleanRequired
Whether this option is selected by default. Only one option per custom variable should be marked as default.
namestringRequired
Display name shown to customers for this option.
priceintegerRequired
Price modification when this option is selected. Interpretation depends on PriceType (fixed amount or percentage). If fixed, the value is in cents, if a percentage, in permille.
price_typeenumRequired
Defines how option pricing should be applied to the base product price.
Possible enum values
  • fixed

    Fixed amount added to or subtracted from the base price. Price value represents the exact amount in the smallest currency unit.

  • percentage

    Percentage modification of the base price. Price value represents the percentage (e.g., 150 = 1.5% increase).

valuestringRequired
The value the command variable will be replaced with.
idFlakeIdOptional
Example
{
  "is_default": true,
  "name": "string",
  "price": 0,
  "price_type": "fixed",
  "value": "string",
  "id": "411486491630370816"
}