PayNow

CustomVariableOptionDto

custom_variable_idFlakeIdRequired
idFlakeIdRequired
is_defaultbooleanRequired
Whether this option is selected by default when the custom variable is presented. 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).
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).

sort_orderintegerRequired
Sort order for displaying options to customers. Lower numbers appear first.
store_idFlakeIdRequired
valuestringRequired
Internal value used for product command variable replacement, without brackets.
Example
{
  "custom_variable_id": "411486491630370816",
  "id": "411486491630370816",
  "is_default": true,
  "name": "string",
  "price": 0,
  "price_type": "fixed",
  "sort_order": 0,
  "store_id": "411486491630370816",
  "value": "string"
}