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

# Listar ofertas

> Ofertas da empresa. Só as com `status` `active` aceitam link.



## OpenAPI

````yaml /api-reference/openapi-pagamentos.json get /v1/offers
openapi: 3.1.0
info:
  title: Velan · API de pagamentos
  version: 1.0.0
  description: >-
    Crie links de pagamento de ofertas e planos de assinatura e acompanhe o
    pagamento. Use uma chave `vk_live_…` para produção ou `vk_test_…` para o
    ambiente de teste (nada é cobrado).
servers:
  - url: https://open.velan.app
    description: Produção e teste (o modo vem da chave)
security:
  - bearerAuth: []
tags:
  - name: Links de pagamento
  - name: Ofertas e planos
  - name: Ambiente de teste
paths:
  /v1/offers:
    get:
      tags:
        - Ofertas e planos
      summary: Listar ofertas
      description: Ofertas da empresa. Só as com `status` `active` aceitam link.
      operationId: listOffers
      responses:
        '200':
          description: Ofertas.
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Offer'
        '401':
          description: Chave ausente, inválida ou revogada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Chave sem acesso à API de pagamentos.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Limite de requisições atingido.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Offer:
      type: object
      properties:
        object:
          const: offer
        code:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - active
            - inactive
            - coming_soon
            - expired
            - archived
        price:
          type: string
        product:
          type: object
          properties:
            id:
              type: integer
            name:
              type:
                - string
                - 'null'
        url:
          type: string
          format: uri
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation_error
                - authentication_error
                - permission_error
                - not_found
                - conflict
                - rate_limited
                - api_error
            message:
              type: string
            fields:
              type: object
            retry_after_seconds:
              type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: vk_live_… | vk_test_…
      description: >-
        Chave criada no painel em Configurações → Chaves de API → Nova chave →
        API de pagamentos (dash.velan.app/dashboard/settings/api-keys).

````

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