---
search:
  tags:
    - Customer Groups
    - PUT
seo:
  description: >-
    Creates or updates prices for product variants… Reference for the PUT
    /api/v1/{team_slug}/{app_slug}/customer-group-prices endpoint in the
    Management API.
sidebar:
  label: Bulk upsert customer group product variant prices
  badge: PUT
title: Bulk upsert customer group product variant prices
type: openapi-operation
---
Creates or updates prices for product variants within customer groups and markets in bulk. Accepts up to 100 price items.

`PUT /api/v1/{team_slug}/{app_slug}/customer-group-prices`

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

Prices data

- `prices` (internal_pkg_webserver_v1.InputCustomerGroupProductVariantPriceItem[], required)

Request body example:

```json
{
  "prices": [
    {
      "customer_group_id": "string",
      "market_id": "string",
      "price_amount": 0,
      "product_variant_id": "string"
    }
  ]
}
```

**Responses**

- `200` — Prices created or updated successfully
- `400` — Invalid request
- `401` — Unauthorized access
- `500` — Internal server error

Response example, 200:

```json
{
  "data": {
    "failed": [
      {
        "customer_group_id": "string",
        "market_id": "string",
        "product_variant_id": "string",
        "reason": "string"
      }
    ],
    "successful": [
      {
        "created_at": "string",
        "customer_group": {
          "id": "string",
          "name": "string",
          "slug": "string"
        },
        "id": "string",
        "market": {
          "id": "string",
          "name": "string",
          "slug": "string"
        },
        "price_amount": 0,
        "product_variant": {
          "id": "string",
          "variant_name": "string"
        },
        "updated_at": "string"
      }
    ]
  },
  "details": [
    "string"
  ],
  "success": true
}
```
