---
search:
  tags:
    - Variants
    - PUT
seo:
  description: >-
    Creates or… Reference for the PUT
    /api/v1/{team_slug}/{app_slug}/products/{product_id}/variants/{variant_id}/prices-batch
    endpoint in the Management API.
sidebar:
  label: Batch create or update variant prices
  badge: PUT
title: Batch create or update variant prices
type: openapi-operation
---
Creates or updates multiple prices for a product variant across different markets within a store group in a single request.

`PUT /api/v1/{team_slug}/{app_slug}/products/{product_id}/variants/{variant_id}/prices-batch`

**Request body** (`application/json`, required)

Batch price data with store group and array of market prices

- `dont_update_price_if_on_sale` (boolean) — Used to prevent overwriting price if on\_sale.
- `prices` (internal_pkg_webserver_v1.BatchPrice[], required)
- `store_group_slug` (string, required)

Request body example:

```json
{
  "dont_update_price_if_on_sale": true,
  "prices": [
    {
      "amount_cents_with_tax": 0,
      "market_slug": "string",
      "on_sale": true,
      "reference_price_with_tax": 0,
      "sale_end_timestamp": "string",
      "sale_price_with_tax": 0,
      "sale_start_timestamp": "string",
      "status": "active"
    }
  ],
  "store_group_slug": "string"
}
```

**Responses**

- `200` — List of created or updated prices with store group and market details
- `400` — Invalid request (e.g. bad UUID, validation error)
- `401` — Unauthorized access
- `500` — Internal server error

Response example, 200:

```json
{
  "data": [
    {
      "amount_cents_with_tax": 0,
      "created_at": "string",
      "id": "string",
      "market": {
        "active": true,
        "country_codes": [
          "string"
        ],
        "created_at": "string",
        "currency_code": "string",
        "id": "string",
        "locale": "string",
        "name": "string",
        "slug": "string",
        "updated_at": "string"
      },
      "on_sale": true,
      "reference_price_with_tax": 0,
      "sale_end_timestamp": "string",
      "sale_price_with_tax": 0,
      "sale_start_timestamp": "string",
      "status": "active",
      "store_group": {
        "country_of_sale": "string",
        "created_at": "string",
        "description": "string",
        "id": "string",
        "name": "string",
        "slug": "string",
        "store_type": "string",
        "updated_at": "string"
      },
      "updated_at": "string"
    }
  ],
  "details": [
    "string"
  ],
  "success": true
}
```
