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

# Obter uma autorização do Pix Automático

> Recupera uma única autorização pelo id. Restrita ao pagador autenticado.



## OpenAPI

````yaml pt/openapi/v3-current/indirect-pix.yaml GET /v1/recurrences/payer/authorizations/{id}
openapi: 3.0.3
info:
  title: Plugin BR Pix Indireto - API Completa
  description: |
    API completa para o sistema brasileiro de pagamentos instantâneos Pix,
    incluindo operações de dicionário de chaves Pix, geração/decodificação de
    QR Code, transações e limites de transações.
  version: 1.7.6
servers:
  - url: https://plugin-pix-indirect.api.lerian.net
security:
  - bearerAuth: []
paths:
  /v1/recurrences/payer/authorizations/{id}:
    get:
      tags:
        - Pix Automático API
      summary: Obter uma autorização do Pix Automático
      description: Recupera uma única autorização pelo id. Restrita ao pagador autenticado.
      parameters:
        - $ref: '#/components/parameters/XAccountId'
        - name: id
          in: path
          description: ID da autorização (formato UUID)
          required: true
          schema:
            type: string
          example: 019cf6ef-e418-7ced-80c0-7b9816faa798
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthorizationOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
      security:
        - bearerAuth: []
components:
  parameters:
    XAccountId:
      name: X-Account-Id
      in: header
      description: Identificador único da Conta do Ledger Midaz (formato UUID).
      required: true
      example: 019c96a0-0a98-7287-9a31-786e0809c769
      schema:
        type: string
  schemas:
    AuthorizationOutput:
      properties:
        accountId:
          example: 019cf6ef-e418-7ced-80c0-7b9816faa798
          type: string
        amount:
          $ref: '#/components/schemas/AuthorizationRequestAmountProfile'
        approvedAt:
          format: date-time
          type: string
        authorizationRequestId:
          example: 019cf6ef-e418-7ced-80c0-7b9816faa798
          type: string
        cancelReason:
          enum:
            - PAYER
            - FRAUD
            - EXPIRED
            - RECEIVER
          type: string
        cancellationReason:
          description: >-
            CancellationReason é a justificativa em texto livre registrada no
            momento do cancelamento (obrigatória para FRAUD). Nil quando
            ausente.
          example: Customer reported unauthorized charge
          type: string
        cancellationReasonKind:
          description: >-
            CancellationReasonKind é o motivo estruturado do cancelamento
            (PAYER, FRAUD, EXPIRED, RECEIVER). Nil quando a autorização não foi
            cancelada.
          enum:
            - PAYER
            - FRAUD
            - EXPIRED
            - RECEIVER
          example: FRAUD
          type: string
        cancelledAt:
          format: date-time
          type: string
        cancelledByOperatorId:
          description: >-
            CancelledByOperatorID é o operador (subject) que realizou um
            cancelamento FRAUD. Nil para cancelamentos iniciados pelo
            pagador/sistema.
          example: op-9
          type: string
        createdAt:
          format: date-time
          type: string
        destination:
          $ref: '#/components/schemas/AuthorizationRequestDestination'
        expiredAt:
          format: date-time
          type: string
        externalAuthorizationId:
          example: AUT-2026-04-001
          type: string
        id:
          example: 019cf6ef-e418-7ced-80c0-7b9816faa798
          type: string
        nextChargeAmount:
          example: '29.90'
          type: string
        nextChargeAt:
          format: date-time
          type: string
        periodicity:
          $ref: '#/components/schemas/AuthorizationRequestPeriodicity'
        receiverMaxAmount:
          example: '500.00'
          type: string
        retryPolicy:
          example: RETRY_3X_7D
          type: string
        status:
          enum:
            - AUTHORIZED
            - CANCELLED
            - EXPIRED
          example: AUTHORIZED
          type: string
        updatedAt:
          format: date-time
          type: string
      type: object
    ErrorFormat:
      type: object
      description: A mensagem de erro da resposta.
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: Um identificador único e estável para o erro.
        title:
          type: string
          description: Um breve resumo do problema.
        message:
          type: string
          description: Orientação detalhada para resolver o erro.
    AuthorizationRequestAmountProfile:
      properties:
        fixed:
          example: '29.90'
          type: string
        max:
          example: '500.00'
          type: string
        min:
          example: '10.00'
          type: string
      type: object
    AuthorizationRequestDestination:
      properties:
        account:
          example: '123456'
          type: string
        accountType:
          enum:
            - CACC
            - SVGS
            - TRAN
            - OTHR
          example: CACC
          type: string
        bank:
          example: '30306294'
          type: string
        branch:
          example: '0001'
          type: string
        document:
          example: '12345678000199'
          type: string
        key:
          example: contato@streaming.co
          type: string
        name:
          example: Streaming Co
          type: string
        personType:
          enum:
            - NATURAL_PERSON
            - LEGAL_PERSON
          example: LEGAL_PERSON
          type: string
      type: object
    AuthorizationRequestPeriodicity:
      properties:
        customDays:
          example: 30
          type: integer
        type:
          enum:
            - WEEKLY
            - MONTHLY
            - QUARTERLY
            - SEMIANNUAL
            - ANNUAL
            - CUSTOM
          example: MONTHLY
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````