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

# Archive promo code by id

> Archive promo code by id. 
<Tip>**HTTP Request** <br/>`DELETE https://api.firstpromoter.com/api/v2/company/promo_codes/{id}`</Tip>



## OpenAPI

````yaml openapi-v2-promocodes delete /promo_codes/{id}
openapi: 3.0.1
info:
  title: FirstPromoter PromoCodes API
  version: '1.0'
  description: API for managing promo codes in FirstPromoter
servers:
  - url: https://api.firstpromoter.com/api/v2/company
security:
  - BearerAuth: []
paths:
  /promo_codes/{id}:
    delete:
      tags:
        - Promo Codes
      summary: Archive promo code by id
      description: >-
        Archive promo code by id. 

        <Tip>**HTTP Request** <br/>`DELETE
        https://api.firstpromoter.com/api/v2/company/promo_codes/{id}`</Tip>
      operationId: archivePromoCode
      parameters:
        - $ref: '#/components/parameters/AccountId'
        - name: id
          in: path
          description: ID of the promo code
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Promo code archived successfully
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    AccountId:
      name: Account-ID
      in: header
      required: true
      description: >-
        Account id. You can find your Account ID on Your FirstPromoter
        Dashboard. Navigate to Settings → Integrations
      schema:
        type: string
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key passed as a Bearer token in the Authorization header. You can
        find your API Key on Your FirstPromoter Dashboard. Navigate to Settings
        → Integrations section → Manage API Keys

````