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

# Archive Stripe Price

> Archive a Stripe price in one environment, then mirror the archived state locally.



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/payments.yaml delete /api/payments/stripe/{environment}/catalog/prices/{priceId}
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/{priceId}:
    delete:
      tags:
        - Stripe Payments
      summary: Archive Stripe Price
      description: >-
        Archive a Stripe price in one environment, then mirror the archived
        state locally.
      parameters:
        - $ref: '#/components/parameters/EnvironmentPath'
        - $ref: '#/components/parameters/PriceIdPath'
      responses:
        '200':
          description: Price archived
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArchiveStripePriceResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - bearerAuth: []
        - apiKey: []
components:
  parameters:
    EnvironmentPath:
      name: environment
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/PaymentEnvironment'
      description: Payment provider environment.
    PriceIdPath:
      name: priceId
      in: path
      required: true
      schema:
        type: string
        minLength: 1
      description: Stripe price ID.
      example: price_123
  schemas:
    ArchiveStripePriceResponse:
      type: object
      required:
        - price
        - archived
      properties:
        price:
          $ref: '#/components/schemas/StripePrice'
        archived:
          type: boolean
    PaymentEnvironment:
      type: string
      enum:
        - test
        - live
    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'
    Metadata:
      type: object
      additionalProperties:
        type: string
  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'
    NotFound:
      description: Resource not found
      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

````