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

# Create Stripe Price

> Create a Stripe price in the requested environment, then mirror it locally after Stripe succeeds.



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/payments.yaml post /api/payments/stripe/{environment}/catalog/prices
openapi: 3.0.3
info:
  title: Insforge Payments API
  version: 1.0.0
  description: >-
    Provider-specific Stripe and Razorpay payment setup, runtime flows, catalog
    management, sync, and webhook projections
servers: []
security: []
tags:
  - name: Stripe Payments
    description: >-
      Stripe Checkout, Billing Portal, catalog, sync, customer, subscription,
      and transaction routes
  - name: Razorpay Payments
    description: >-
      Razorpay Orders, Subscriptions, catalog, manual webhook setup, sync,
      customer, and transaction routes
  - name: Payment Webhooks
    description: Provider webhook ingestion routes
paths:
  /api/payments/stripe/{environment}/catalog/prices:
    post:
      tags:
        - Stripe Payments
      summary: Create Stripe Price
      description: >-
        Create a Stripe price in the requested environment, then mirror it
        locally after Stripe succeeds.
      parameters:
        - $ref: '#/components/parameters/EnvironmentPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateStripePriceBody'
            example:
              productId: prod_123
              currency: usd
              unitAmount: 2900
              recurring:
                interval: month
                intervalCount: 1
              lookupKey: pro_monthly
              idempotencyKey: price-pro-monthly
      responses:
        '201':
          description: Price created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MutateStripePriceResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      security:
        - bearerAuth: []
        - apiKey: []
components:
  parameters:
    EnvironmentPath:
      name: environment
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/PaymentEnvironment'
      description: Payment provider environment.
  schemas:
    CreateStripePriceBody:
      type: object
      required:
        - productId
        - currency
        - unitAmount
      additionalProperties: false
      properties:
        productId:
          type: string
          minLength: 1
        currency:
          type: string
          minLength: 3
          maxLength: 3
          example: usd
        unitAmount:
          type: integer
          minimum: 0
          example: 2900
        lookupKey:
          type: string
          nullable: true
          minLength: 1
          maxLength: 200
        active:
          type: boolean
        recurring:
          type: object
          additionalProperties: false
          required:
            - interval
          properties:
            interval:
              $ref: '#/components/schemas/StripePriceRecurringInterval'
            intervalCount:
              type: integer
              minimum: 1
        taxBehavior:
          $ref: '#/components/schemas/StripePriceTaxBehavior'
        metadata:
          $ref: '#/components/schemas/Metadata'
        idempotencyKey:
          type: string
          minLength: 1
          maxLength: 200
    MutateStripePriceResponse:
      type: object
      required:
        - price
      properties:
        price:
          $ref: '#/components/schemas/StripePrice'
    PaymentEnvironment:
      type: string
      enum:
        - test
        - live
    StripePriceRecurringInterval:
      type: string
      enum:
        - day
        - week
        - month
        - year
    StripePriceTaxBehavior:
      type: string
      enum:
        - exclusive
        - inclusive
        - unspecified
    Metadata:
      type: object
      additionalProperties:
        type: string
    StripePrice:
      type: object
      required:
        - environment
        - priceId
        - productId
        - active
        - currency
        - unitAmount
        - unitAmountDecimal
        - type
        - lookupKey
        - billingScheme
        - taxBehavior
        - recurringInterval
        - recurringIntervalCount
        - metadata
        - syncedAt
      properties:
        environment:
          $ref: '#/components/schemas/StripeEnvironment'
        priceId:
          type: string
          example: price_123
        productId:
          type: string
          nullable: true
          example: prod_123
        active:
          type: boolean
        currency:
          type: string
          example: usd
        unitAmount:
          type: integer
          nullable: true
          example: 2900
        unitAmountDecimal:
          type: string
          nullable: true
          example: '2900'
        type:
          type: string
          example: recurring
        lookupKey:
          type: string
          nullable: true
          example: pro_monthly
        billingScheme:
          type: string
          nullable: true
          example: per_unit
        taxBehavior:
          type: string
          nullable: true
          enum:
            - exclusive
            - inclusive
            - unspecified
          example: unspecified
        recurringInterval:
          type: string
          nullable: true
          enum:
            - day
            - week
            - month
            - year
          example: month
        recurringIntervalCount:
          type: integer
          nullable: true
          example: 1
        metadata:
          $ref: '#/components/schemas/Metadata'
        syncedAt:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      required:
        - error
        - message
        - statusCode
      properties:
        error:
          type: string
          example: INVALID_INPUT
        message:
          type: string
          example: 'environment: Invalid enum value'
        statusCode:
          type: integer
          example: 400
        nextActions:
          type: string
          nullable: true
    StripeEnvironment:
      $ref: '#/components/schemas/PaymentEnvironment'
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````