# `catalog.price.set` Set the price (kuruş) of a product (prd_) or variant (var_). compareAt only on products; null clears it. Variant price null = inherit product price. - **scope**: `catalog:write` - **storefront-visible** (bumps the catalog generation): yes - **destructive**: no ## Payload | field | type | required | notes | |---|---|---|---| | `id` | string (/^prd_[a-zA-Z0-9]{1,32}$/) \| string (/^var_[a-zA-Z0-9]{1,32}$/) | yes | | | `price` | integer (0..10000000000000) \| null | yes | | | `compareAt` | integer (0..10000000000000) \| null | no | | ### JSON Schema ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "anyOf": [ { "type": "string", "pattern": "^prd_[a-zA-Z0-9]{1,32}$" }, { "type": "string", "pattern": "^var_[a-zA-Z0-9]{1,32}$" } ] }, "price": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 10000000000000 }, { "type": "null" } ] }, "compareAt": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 10000000000000 }, { "type": "null" } ] } }, "required": [ "id", "price" ], "additionalProperties": false } ```