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.

Payload

fieldtyperequirednotes
idstring (/^prd_[a-zA-Z0-9]{1,32}$/) | string (/^var_[a-zA-Z0-9]{1,32}$/)yes
priceinteger (0..10000000000000) | nullyes
compareAtinteger (0..10000000000000) | nullno

JSON Schema

{
  "$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
}
Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/commands/catalog.price.set.md