> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.sellercenter.pe/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.sellercenter.pe/_mcp/server.

# Actualizar precio

POST https://qa.api.sellercenter.pe/sellercenter/seller/sellerproduct/v2/update-price
Content-Type: application/json

Actualiza el precio regular y, opcionalmente, un precio de oferta con vigencia.

### Body
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
| `sku` | string | Sí | Id del SKU. |
| `listPrice` | número positivo, hasta 2 decimales | Sí | Precio regular. |
| `price` | número positivo, hasta 2 decimales | No | Precio de oferta (menor que `listPrice`). |
| `priceValidFrom` | `YYYY-MM-DD` | Sí, si envías `price` | Inicio de la oferta. |
| `priceValidUntil` | `YYYY-MM-DD` | Sí, si envías `price` | Fin de la oferta. |

Para quitar una oferta, envía solo `sku` y `listPrice`.

### Errores
`400 Validation Errors`. Si un valor numérico es inválido (p. ej. negativo), el detalle de `data.errors` es técnico; revisa que `listPrice` y `price` sean positivos y que las fechas tengan el formato correcto.

Reference: https://developers.sellercenter.pe/referencia-de-la-api/precio-y-stock/actualizar-precio

## Authentication

- `Authorization` header (bearer token, required) — `accessToken` obtenido en **Login**. Dura 24 horas.
- `apiKey` header (required) — apiKey de tu ambiente (QA o PRD). La recibes por correo con tus credenciales.

## Servers

- `https://qa.api.sellercenter.pe/sellercenter` (QA, default)
- `https://prd.api.sellercenter.pe/sellercenter` (PRD)

## Request

### Body (application/json)

This endpoint expects an object.

- `sku` (string, optional)
- `listPrice` (double, optional)
- `price` (double, optional)
- `priceValidFrom` (string, optional)
- `priceValidUntil` (string, optional)

## Response

### 200

Precio actualizado

- `message` (string, optional)
- `data` (SellerSellerproductV2UpdatePricePostResponsesContentApplicationJsonSchemaData, optional)
- `status` (boolean, optional)

## Errors

### 400 Bad Request Error

Valor inválido

- `message` (string, optional)
- `data` (SellerSellerproductV2UpdatePricePostResponsesContentApplicationJsonSchemaData, optional)
- `status` (boolean, optional)

## Types

### SellerSellerproductV2UpdatePricePostResponsesContentApplicationJsonSchemaData

- `errors` (list of string, optional)

## Examples

**Request**

```json
{
  "sku": "1793043428985",
  "listPrice": 199.9,
  "price": 149.9,
  "priceValidFrom": "2026-11-01",
  "priceValidUntil": "2026-11-30"
}
```

**Response**

```json
{
  "message": "Se realizo el registro correctamente.",
  "data": {
    "accountName": "ebgames",
    "listPrice": 299.9,
    "sku": "1793043428985"
  },
  "status": true
}
```

**SDK Code**

```python Precio y stock_actualizarPrecio_example
import requests

url = "https://qa.api.sellercenter.pe/sellercenter/seller/sellerproduct/v2/update-price"

payload = {
    "sku": "1793043428985",
    "listPrice": 199.9,
    "price": 149.9,
    "priceValidFrom": "2026-11-01",
    "priceValidUntil": "2026-11-30"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Precio y stock_actualizarPrecio_example
const url = 'https://qa.api.sellercenter.pe/sellercenter/seller/sellerproduct/v2/update-price';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"sku":"1793043428985","listPrice":199.9,"price":149.9,"priceValidFrom":"2026-11-01","priceValidUntil":"2026-11-30"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Precio y stock_actualizarPrecio_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://qa.api.sellercenter.pe/sellercenter/seller/sellerproduct/v2/update-price"

	payload := strings.NewReader("{\n  \"sku\": \"1793043428985\",\n  \"listPrice\": 199.9,\n  \"price\": 149.9,\n  \"priceValidFrom\": \"2026-11-01\",\n  \"priceValidUntil\": \"2026-11-30\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Precio y stock_actualizarPrecio_example
require 'uri'
require 'net/http'

url = URI("https://qa.api.sellercenter.pe/sellercenter/seller/sellerproduct/v2/update-price")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"sku\": \"1793043428985\",\n  \"listPrice\": 199.9,\n  \"price\": 149.9,\n  \"priceValidFrom\": \"2026-11-01\",\n  \"priceValidUntil\": \"2026-11-30\"\n}"

response = http.request(request)
puts response.read_body
```

```java Precio y stock_actualizarPrecio_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://qa.api.sellercenter.pe/sellercenter/seller/sellerproduct/v2/update-price")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"sku\": \"1793043428985\",\n  \"listPrice\": 199.9,\n  \"price\": 149.9,\n  \"priceValidFrom\": \"2026-11-01\",\n  \"priceValidUntil\": \"2026-11-30\"\n}")
  .asString();
```

```php Precio y stock_actualizarPrecio_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://qa.api.sellercenter.pe/sellercenter/seller/sellerproduct/v2/update-price', [
  'body' => '{
  "sku": "1793043428985",
  "listPrice": 199.9,
  "price": 149.9,
  "priceValidFrom": "2026-11-01",
  "priceValidUntil": "2026-11-30"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Precio y stock_actualizarPrecio_example
using RestSharp;

var client = new RestClient("https://qa.api.sellercenter.pe/sellercenter/seller/sellerproduct/v2/update-price");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"sku\": \"1793043428985\",\n  \"listPrice\": 199.9,\n  \"price\": 149.9,\n  \"priceValidFrom\": \"2026-11-01\",\n  \"priceValidUntil\": \"2026-11-30\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Precio y stock_actualizarPrecio_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "sku": "1793043428985",
  "listPrice": 199.9,
  "price": 149.9,
  "priceValidFrom": "2026-11-01",
  "priceValidUntil": "2026-11-30"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://qa.api.sellercenter.pe/sellercenter/seller/sellerproduct/v2/update-price")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```