> ## Documentation Index
> Fetch the complete documentation index at: https://docs.speedsellx.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Atualizar preço

> Ajusta apenas o preço de um produto

Requer o escopo `products:write` e o header HTTP `Idempotency-Key`. Use este endpoint para alterar apenas o preço, sem reenviar o produto inteiro.

<ResponseExample>
  ```json Resposta theme={null}
  {
    "data": {
      "id": 3256,
      "name": "Curso de Vendas",
      "description": "Curso completo de vendas",
      "status": "published",
      "type": "digital",
      "payment_type": "unique",
      "recurrence_interval": null,
      "price": 149.9,
      "currency": "brl",
      "is_free": false,
      "created_at": "2026-06-01T10:00:00-03:00",
      "updated_at": "2026-06-01T10:00:00-03:00"
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml PATCH /products/{id}/price
openapi: 3.1.0
info:
  title: SpeedSellX API
  version: 1.0.0
  description: >-
    API pública da SpeedSellX para consultar e atualizar, por integração, os
    dados da sua conta: produtos, pedidos, vendas, assinaturas, métricas,
    checkouts, upsells e webhooks. Autentique com `Authorization: Bearer
    sk_live_...` e gere chaves no painel, em Desenvolvedores. Requisições que
    alteram dados exigem o header HTTP `Idempotency-Key`. Listagens aceitam
    `page`/`per_page` e retornam `{ data, meta }`.
servers:
  - url: https://api.speedsellx.io/seller/v1
    description: Produção
security: []
tags:
  - name: Produtos
  - name: Pedidos
  - name: Vendas
  - name: Assinaturas
  - name: Métricas
  - name: Upsells
  - name: Checkouts
paths:
  /products/{id}/price:
    patch:
      tags:
        - Produtos
      summary: Atualizar preço do produto
      description: |-
        Atualiza apenas o preço (e, opcionalmente, a moeda), preservando o resto
        da configuração. Requer Idempotency-Key.
      operationId: v1.products.price
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProductPriceRequest'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ProductResource'
                required:
                  - data
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        const: not_found
                      message:
                        type: string
                        const: Resource not found.
                    required:
                      - type
                      - message
                required:
                  - error
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    UpdateProductPriceRequest:
      type: object
      properties:
        price:
          type: number
          minimum: 0
        currency:
          type:
            - string
            - 'null'
          enum:
            - brl
            - usd
            - eur
      required:
        - price
      title: UpdateProductPriceRequest
    ProductResource:
      type: object
      properties:
        id:
          type: integer
        name:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        status:
          type: string
        type:
          type:
            - string
            - 'null'
        payment_type:
          type:
            - string
            - 'null'
        recurrence_interval:
          type:
            - string
            - 'null'
        price:
          type:
            - number
            - 'null'
        currency:
          type:
            - string
            - 'null'
        is_free:
          type: boolean
        image:
          type:
            - string
            - 'null'
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - name
        - description
        - status
        - type
        - payment_type
        - recurrence_interval
        - price
        - currency
        - is_free
        - image
        - created_at
        - updated_at
      title: ProductResource
  responses:
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors

````