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

# Remove a credit unit's selling price

> Archives the active price in a currency: the unit can no longer be sold in it (top-ups and
automatic top-ups included) until a new price is set.



## OpenAPI

````yaml https://api.meteroid.com/api-docs/openapi.json delete /api/v1/credit-units/{id}/prices/{currency}
openapi: 3.1.0
info:
  title: meteroid
  description: ''
  license:
    name: LicenseRef-Proprietary
    identifier: LicenseRef-Proprietary
  version: 0.1.0
servers: []
security: []
tags:
  - name: Meteroid
    description: Meteroid API
  - name: Add-ons
  - name: Batch Jobs
  - name: Budgets
    description: >-
      Beta: may change before general availability. Spending limits on a
      customer's usage, or one subscription's, per currency, with alerts at
      percentages of the amount.
    x-beta: true
  - name: Checkout Sessions
  - name: Checks
    description: >-
      Beta: may change before general availability. Whether a customer may
      consume more of a feature right now.
    x-beta: true
  - name: Connect
    description: Manage connected accounts (Express & Standard)
  - name: Coupons
  - name: Credit Notes
  - name: Credit units
    description: >-
      Custom denominations, such as "credits", that usage can be priced in and
      credit granted or sold in, instead of money.
  - name: Credits
    description: >-
      Prepaid credit: a customer's wallets, credit grants, ledger and top-ups.
      Promotional credit applies before tax like a discount; paid credit applies
      after tax like a payment.
  - name: Custom Properties
  - name: Customers
  - name: Entitlements
  - name: Events
  - name: Features
  - name: Invoices
  - name: Licenses
    description: >-
      Licenses for your customers' self-hosted installations: signed tokens
      carrying their plan's entitlements, activated and refreshed by the
      installation over the public licensing endpoints.
  - name: Metrics
  - name: OAuth
    description: OAuth 2.0 token endpoints (public, client-credentials auth)
  - name: OAuth Apps
    description: Manage OAuth applications for Connect integrations
  - name: Plans
  - name: Product Families
  - name: Products
  - name: Subscriptions
  - name: Usage
  - name: Usage costs
    description: >-
      Beta: may change before general availability. A customer's or a
      subscription's usage events and usage over time, with what they cost.
    x-beta: true
  - name: Webhook Endpoints
    description: Manage outbound webhook endpoints and inspect their deliveries
paths:
  /api/v1/credit-units/{id}/prices/{currency}:
    delete:
      tags:
        - Credit units
      summary: Remove a credit unit's selling price
      description: >-
        Archives the active price in a currency: the unit can no longer be sold
        in it (top-ups and

        automatic top-ups included) until a new price is set.
      operationId: archive_credit_unit_price
      parameters:
        - name: id
          in: path
          description: Credit unit ID
          required: true
          schema:
            type: string
        - name: currency
          in: path
          description: ISO 4217 currency code
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The archived price
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditUnitPrice'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '404':
          description: No active price in this currency
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    CreditUnitPrice:
      type: object
      description: >-
        What one credit sells for in a currency. A price is never edited:
        setting a new one for the

        same currency archives it.
      required:
        - id
        - currency
        - unit_price
        - created_at
      properties:
        archived_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When a newer price, or its removal, replaced it; absent while
            active.
        created_at:
          type: string
          format: date-time
          description: When the price was set.
        currency:
          type: string
          description: ISO 4217 code of the currency the unit sells in.
        id:
          type: string
          description: The price's id (`cup_…`).
        unit_price:
          type: string
          description: >-
            Major units of `currency` per credit, as a decimal string (e.g.
            "0.001").
    RestErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
    ErrorCode:
      type: string
      enum:
        - BAD_REQUEST
        - NOT_FOUND
        - CONFLICT
        - FORBIDDEN
        - UNAUTHORIZED
        - TOKEN_EXPIRED
        - TOO_MANY_REQUESTS
        - INTERNAL_SERVER_ERROR
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer

````

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