update_commerce_price
Set product and/or per-variant pricing in one call.
All amounts are integers in the currency's smallest unit: 2999 is $29.99 for USD. At least one pricing argument must be supplied.
Args: project_id: The project ID. product_id: The product ID. price_amount: New product price. Leave -1 to keep current. compare_at_amount: New struck-through reference price. Use 0 to clear it, -1 to keep current. currency: New ISO currency code for the product. pricing_type: one_time, subscription, or pay_what_you_want. Forced to one_time for physical products. variant_prices: JSON array of per-variant overrides, e.g. [{"variant_id":"v_abc","price_amount":3499}]. Unknown variant ids are rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | ||
| product_id | Yes | ||
| project_id | Yes | ||
| price_amount | No | ||
| pricing_type | No | ||
| variant_prices | No | ||
| compare_at_amount | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |