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

# Redeem a promo code

> Adds the code's credit to your balance. Each code can be redeemed once per organization.



## OpenAPI

````yaml /openapi.yaml post /billing/promo-codes/redeem
openapi: 3.1.0
info:
  title: Capibo API
  version: '1.0'
  description: |
    Plan data-collection missions, track quality review, and pull accepted
    egocentric videos into your robot-training pipeline.
  contact:
    name: Capibo support
    email: support@capibo.work
servers:
  - url: https://api.capibo.work/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Missions
    description: Create and manage data-collection missions.
  - name: Planning
    description: Price a mission before you launch it.
  - name: Datasets
    description: Accepted videos, grouped per mission.
  - name: Videos
    description: Individual submissions and their quality-review results.
  - name: Exports
    description: Package a dataset into a training format and deliver it.
  - name: Billing
    description: Prepaid credits, transactions and promo codes.
  - name: Usage
    description: Collection volume and spend over time.
  - name: Webhooks
    description: Get notified when videos are accepted, missions finish and more.
paths:
  /billing/promo-codes/redeem:
    post:
      tags:
        - Billing
      summary: Redeem a promo code
      description: >-
        Adds the code's credit to your balance. Each code can be redeemed once
        per organization.
      operationId: redeemPromoCode
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - code
              properties:
                code:
                  type: string
                  description: Case-insensitive.
                  example: CAL_HACKS
      responses:
        '200':
          description: The code was redeemed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  transaction:
                    $ref: '#/components/schemas/Transaction'
                  balance:
                    type: number
                    description: New credit balance in USD.
                    example: 68420.55
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: The code doesn't exist or has expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: not_found
                  code: promo_code_invalid
                  message: '"CALHACKS" isn''t a valid promo code.'
        '409':
          description: The code was already redeemed by this organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: conflict
                  code: promo_code_redeemed
                  message: CAL_HACKS has already been redeemed on this account.
components:
  schemas:
    Transaction:
      type: object
      properties:
        id:
          type: string
          example: TXN-81009
        kind:
          type: string
          enum:
            - credit
            - promo
            - invoice
        description:
          type: string
          example: Promo code CAL_HACKS redeemed
        amount:
          type: number
          example: 50000
        status:
          type: string
          enum:
            - succeeded
            - pending
            - failed
            - paid
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              enum:
                - invalid_request
                - authentication_error
                - permission_denied
                - not_found
                - conflict
                - payment_required
                - rate_limited
                - api_error
            code:
              type: string
              description: Machine-readable reason.
            message:
              type: string
              description: Human-readable explanation.
            param:
              type: string
              description: The parameter that caused the error
              if any.: null
  responses:
    Unauthorized:
      description: The API key is missing, invalid or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: authentication_error
              code: api_key_invalid
              message: Invalid API key.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API key from **Settings → API keys**, e.g. `cpb_live_…` or
        `cpb_test_…`.

````

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