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

# Create a new price version

> Archives the current price and creates a new version with updated amount.



## OpenAPI

````yaml post /v1/prices/{id}/version
openapi: 3.0.0
info:
  title: Revstack API
  version: 1.0.0
  description: >-
    Open Source Billing OS for Developers. The scalable, developer-first billing
    engine with subscriptions, invoicing, usage metering, and entitlements.
servers:
  - url: http://localhost:6900
    description: Revstack API (Local Development)
security: []
paths:
  /v1/prices/{id}/version:
    post:
      tags:
        - Prices
      summary: Create a new price version
      description: >-
        Archives the current price and creates a new version with updated
        amount.
      parameters:
        - schema:
            type: string
            example: price_abc123
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: integer
                  minimum: 0
                currency:
                  type: string
                  minLength: 3
                  maxLength: 3
              required:
                - amount
      responses:
        '201':
          description: New price version created
          content:
            application/json:
              schema:
                nullable: true

````