---
title: "product.variant.price.update"
method: PUT
path: "/product.variant.price.update.json"
tags: ["product"]
---

# product.variant.price.update

`PUT /product.variant.price.update.json`

## Request

- Base URL: `https://api.api2cart.com/v1.1`
- URL: `https://api.api2cart.com/v1.1/product.variant.price.update.json`
- Auth: API key in header `x-api-key` and API key in header `x-store-key`

Update some prices of the product variant.

## Request body

- ProductVariantPriceUpdate
  - `id` string: Defines the variant where the price has to be updated
  - `product_id` string: Product id
  - `group_prices` object[], required: Defines variants's group prices
    - `id` integer
    - `group_id` string
    - `price` number
    - `qty` integer
  - `idempotency_key` string: A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>

## Response `200`

successful operation

- object
  - `return_code` integer
  - `return_message` string
  - `result` object
    - `updated_items` integer

---

[API](https://skmtc.dev/api2cart/apis/api2cart-openapi.md) · [All operations](https://skmtc.dev/api2cart/apis/api2cart-openapi/llms.txt) · [OpenAPI document](https://skmtc.dev/api2cart/apis/api2cart-openapi/revisions/c34440741693?raw)
