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

# Listar chargebacks

> Lista os chargebacks abertos contra a sua conta

Requer o escopo `chargebacks:read`.

<Note>
  Esta listagem **não é paginada**: ela responde o conjunto inteiro em `data`, sem `meta`, e não aceita `page` nem `per_page`.
</Note>

`amount` e `fee` são strings decimais na moeda de `currency`. `fee` é `null` quando a taxa do chargeback ainda não foi lançada, e `null` ali significa "ainda não se sabe", não "zero".


## OpenAPI

````yaml GET /public/chargebacks
openapi: 3.1.0
info:
  title: SpeedSellX API
  version: 2.0.0
  description: >-
    API pública da SpeedSellX para consultar e atualizar, por integração, os
    dados da sua conta: produtos, pedidos, reembolsos, chargebacks, checkouts,
    upsells, webhooks, assinaturas, vendas e métricas.


    Autentique com `Authorization: Bearer sk_live_...` e gere chaves no painel,
    em Desenvolvedores. Requisições que alteram dados exigem o header
    `Idempotency-Key`. Listagens aceitam `page`/`per_page` (padrão 15) e
    retornam `{ data, links, meta }`.
servers:
  - url: https://api.speedsellx.io/v2
    description: Produção
security:
  - bearerAuth: []
tags:
  - name: Ping
    description: A chamada que prova que a chave funciona.
  - name: Pedidos
    description: Os pedidos da conta da chave.
  - name: Reembolsos
    description: Os pedidos de reembolso da conta da chave.
  - name: Produtos
    description: >-
      O catálogo da conta da chave: leitura, criação, substituição, preço e
      arquivamento.
  - name: Checkouts
    description: Os checkouts da conta da chave e a personalização deles.
  - name: Assinaturas
    description: As assinaturas recorrentes da conta da chave.
  - name: Upsells
    description: As ofertas de upsell da conta da chave.
  - name: Métricas
    description: Os agregados da conta da chave.
  - name: Vendas
    description: O resumo de vendas pagas por janela de datas.
  - name: Chargebacks
    description: Os chargebacks abertos contra a conta da chave.
  - name: Webhooks
    description: As assinaturas de webhook da conta da chave.
paths:
  /public/chargebacks:
    get:
      tags:
        - Chargebacks
      summary: Listar chargebacks
      description: >-
        Retorna os chargebacks abertos contra a conta da chave. Não é paginado.
        Exige o escopo `chargebacks:read`.
      operationId: publicapi.chargebacks.index
      responses:
        '200':
          description: Array of `ApiChargebackResource`
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApiChargebackResource'
                required:
                  - data
        '401':
          description: Chave ausente, inválida ou revogada.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: error
                  error:
                    type: string
                    const: unauthenticated
                required:
                  - status
                  - error
        '403':
          description: A chave não tem o escopo que a rota exige.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: error
                  error:
                    type: string
                    const: insufficient_scope
                required:
                  - status
                  - error
        '429':
          description: Limite de requisições por minuto excedido para esta chave.
components:
  schemas:
    ApiChargebackResource:
      type: object
      properties:
        uuid:
          type: string
        order_id:
          type: integer
        seller_id:
          type: integer
        amount:
          type: string
        fee:
          type:
            - string
            - 'null'
          description: |-
            Null stays null all the way to the JSON: it is the one rendering
            that cannot be mistaken for an amount.
        currency:
          type: string
        gateway:
          type: string
        gateway_reference:
          type:
            - string
            - 'null'
        status:
          type: string
        received_at:
          type:
            - string
            - 'null'
      required:
        - uuid
        - order_id
        - seller_id
        - amount
        - fee
        - currency
        - gateway
        - gateway_reference
        - status
        - received_at
      title: ApiChargebackResource
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A chave de API da conta, no formato `sk_{modo}_{prefixo}.{segredo}`.

````