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

# Preview buying an extra number (On Demand)

> Computes the cost of buying N extra number(s) without charging. Requires a TENANT-scoped key (403 for a number key). For Free-plan tenants it flags the On Demand conversion: the free number becomes paid/unlimited and the new one too (you pay per number/mo). On Demand = unlimited messages on every number.

**Requires a tenant-scoped key.**



## OpenAPI

````yaml openapi.json GET /v1/subscription/extra-numbers
openapi: 3.1.0
info:
  title: Pilot Status API
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    Public REST API for Pilot Status. Authenticate with the `x-api-key: ps_...`
    header (or `x-api-key-id`). Base URL: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/subscription/extra-numbers:
    get:
      tags:
        - Subscription
      summary: Preview buying an extra number (On Demand)
      description: >-
        Computes the cost of buying N extra number(s) without charging. Requires
        a TENANT-scoped key (403 for a number key). For Free-plan tenants it
        flags the On Demand conversion: the free number becomes paid/unlimited
        and the new one too (you pay per number/mo). On Demand = unlimited
        messages on every number.


        **Requires a tenant-scoped key.**
      operationId: get_subscription_extra-numbers
      parameters:
        - name: quantity
          in: query
          required: false
          description: How many numbers to buy (default 1).
          schema:
            type: number
          example: '1'
      responses:
        '200':
          description: Preview (Free tenant buying 1)
          content:
            application/json:
              example:
                requiresConversion: true
                fromPlan: FREE
                toPlan: ON_DEMAND
                currentNumbers: 1
                requested: 1
                billedQuantity: 2
                unitPriceBRL: 29.9
                monthlyTotalBRL: 59.8
                messagesBecomeUnlimited: true
                hasSavedCard: false
        '400':
          description: Invalid payload or parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Validation error
        '401':
          description: Missing or invalid `x-api-key` / `x-api-key-id` header
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Unauthorized
        '403':
          description: Number-scoped key used on a tenant-only endpoint
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Number-scoped keys cannot call tenant endpoints
                code: NUMBER_SCOPE_NOT_ALLOWED
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Too many requests
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your ps_ API key
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: API key id (alternative to x-api-key)

````