> ## 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 price

> Creates a new price linked to a plan or addon.



## OpenAPI

````yaml post /v1/prices
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:
    post:
      tags:
        - Prices
      summary: Create a price
      description: Creates a new price linked to a plan or addon.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                environmentId:
                  type: string
                  minLength: 1
                name:
                  type: string
                  minLength: 1
                amount:
                  type: integer
                  minimum: 0
                currency:
                  type: string
                  minLength: 3
                  maxLength: 3
                interval:
                  type: string
                  enum:
                    - month
                    - year
                    - week
                    - day
                type:
                  type: string
                  enum:
                    - recurring
                    - one_time
                planId:
                  type: string
                addonId:
                  type: string
                metadata:
                  type: object
                  additionalProperties:
                    nullable: true
              required:
                - environmentId
                - name
                - amount
                - currency
                - type
      responses:
        '201':
          description: Price created
          content:
            application/json:
              schema:
                nullable: true
        '400':
          description: Validation error

````