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

# Criar versão de preço

> Cria uma **nova versão** de preço para o produto — o histórico de preços anteriores é preservado. Valores sempre em centavos (BRL).

<Tip>
  Nunca edite um preço no lugar: crie uma versão nova. Assim, pedidos antigos continuam explicáveis e o audit trail fica íntegro.
</Tip>


## OpenAPI

````yaml /openapi/korbit-public-v1.json post /v1/products/{id}/prices
openapi: 3.1.0
info:
  title: Korbit API
  version: 1.0.0
  description: >-
    API de pagamentos da Korbit para merchants: PIX, cartão (com 3DS),
    assinaturas, checkout por link, payouts, antecipações e refunds — com
    idempotência, webhooks assinados e ambiente sandbox.
  contact:
    name: Suporte Korbit
    email: suporte@korbit.com.br
servers:
  - url: https://api.korbit.com.br
    description: Produção (chaves kbt_live_)
  - url: https://api-test.korbit.com.br
    description: Sandbox (chaves kbt_test_)
security:
  - bearerAuth: []
tags:
  - name: Antecipações
  - name: Assinaturas
  - name: Atividade
  - name: Catálogo
  - name: Chaves de API
  - name: Checkout
  - name: Clientes e Pedidos
  - name: Pagamentos
  - name: Refunds e Disputas
  - name: Saldo e Saques
  - name: Sandbox
  - name: Webhooks
paths:
  /v1/products/{id}/prices:
    post:
      tags:
        - Catálogo
      summary: Criar versão de preço
      description: >-
        Cria uma **nova versão** de preço para o produto — o histórico de preços
        anteriores é preservado. Valores sempre em centavos (BRL).
      operationId: createCommercePriceVersion
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
            minLength: 1
            maxLength: 255
          in: header
          name: idempotency-key
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - amountMinor
              properties:
                amountMinor:
                  type: integer
                  minimum: 1
                  maximum: 9007199254740991
                billingInterval:
                  type: string
                  enum:
                    - MONTH
                    - YEAR
                gracePeriodDays:
                  type: integer
                  minimum: 0
                  maximum: 90
                  default: 0
                intervalCount:
                  type: integer
                  minimum: 1
                  maximum: 12
                maxInstallments:
                  type: integer
                  minimum: 1
                  maximum: 12
                  default: 1
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - amountMinor
                  - billingInterval
                  - createdAt
                  - currency
                  - gracePeriodDays
                  - id
                  - intervalCount
                  - maxInstallments
                  - productId
                  - version
                properties:
                  amountMinor:
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                  billingInterval:
                    anyOf:
                      - type: string
                        enum:
                          - MONTH
                          - YEAR
                      - type: 'null'
                  createdAt:
                    type: string
                    format: date-time
                  currency:
                    type: string
                    enum:
                      - BRL
                  gracePeriodDays:
                    type: integer
                    minimum: 0
                    maximum: 90
                  id:
                    type: string
                    format: uuid
                  intervalCount:
                    anyOf:
                      - type: integer
                        minimum: 1
                        maximum: 12
                      - type: 'null'
                  maxInstallments:
                    type: integer
                    minimum: 1
                    maximum: 12
                  productId:
                    type: string
                    format: uuid
                  version:
                    type: integer
                    minimum: 1
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - amountMinor
                  - billingInterval
                  - createdAt
                  - currency
                  - gracePeriodDays
                  - id
                  - intervalCount
                  - maxInstallments
                  - productId
                  - version
                properties:
                  amountMinor:
                    type: integer
                    minimum: 1
                    maximum: 9007199254740991
                  billingInterval:
                    anyOf:
                      - type: string
                        enum:
                          - MONTH
                          - YEAR
                      - type: 'null'
                  createdAt:
                    type: string
                    format: date-time
                  currency:
                    type: string
                    enum:
                      - BRL
                  gracePeriodDays:
                    type: integer
                    minimum: 0
                    maximum: 90
                  id:
                    type: string
                    format: uuid
                  intervalCount:
                    anyOf:
                      - type: integer
                        minimum: 1
                        maximum: 12
                      - type: 'null'
                  maxInstallments:
                    type: integer
                    minimum: 1
                    maximum: 12
                  productId:
                    type: string
                    format: uuid
                  version:
                    type: integer
                    minimum: 1
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - detail
                  - instance
                  - requestId
                  - status
                  - title
                  - type
                properties:
                  code:
                    type: string
                  detail:
                    type: string
                  instance:
                    type: string
                  requestId:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  title:
                    type: string
                  type:
                    type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - detail
                  - instance
                  - requestId
                  - status
                  - title
                  - type
                properties:
                  code:
                    type: string
                  detail:
                    type: string
                  instance:
                    type: string
                  requestId:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  title:
                    type: string
                  type:
                    type: string
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - detail
                  - instance
                  - requestId
                  - status
                  - title
                  - type
                properties:
                  code:
                    type: string
                  detail:
                    type: string
                  instance:
                    type: string
                  requestId:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  title:
                    type: string
                  type:
                    type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - detail
                  - instance
                  - requestId
                  - status
                  - title
                  - type
                properties:
                  code:
                    type: string
                  detail:
                    type: string
                  instance:
                    type: string
                  requestId:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  title:
                    type: string
                  type:
                    type: string
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - detail
                  - instance
                  - requestId
                  - status
                  - title
                  - type
                properties:
                  code:
                    type: string
                  detail:
                    type: string
                  instance:
                    type: string
                  requestId:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  title:
                    type: string
                  type:
                    type: string
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - detail
                  - instance
                  - requestId
                  - status
                  - title
                  - type
                properties:
                  code:
                    type: string
                  detail:
                    type: string
                  instance:
                    type: string
                  requestId:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  title:
                    type: string
                  type:
                    type: string
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - detail
                  - instance
                  - requestId
                  - status
                  - title
                  - type
                properties:
                  code:
                    type: string
                  detail:
                    type: string
                  instance:
                    type: string
                  requestId:
                    type: string
                  status:
                    type: integer
                    minimum: 400
                    maximum: 599
                  title:
                    type: string
                  type:
                    type: string
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Korbit API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.