> ## 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.

# Obtener una autorización de Pix Automático

> Recupera una única autorización por id. Limitada al pagador autenticado.



## OpenAPI

````yaml es/openapi/v3-current/indirect-pix.yaml GET /v1/recurrences/payer/authorizations/{id}
openapi: 3.0.3
info:
  title: Plugin BR Pix Indirect - API completa
  description: |
    API completa para el sistema de pagos instantáneos Pix de Brasil, que
    incluye operaciones del diccionario de claves Pix, generación/decodificación
    de códigos QR, transacciones y límites transaccionales.
  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: Obtener una autorización de Pix Automático
      description: Recupera una única autorización por id. Limitada al pagador autenticado.
      parameters:
        - $ref: '#/components/parameters/XAccountId'
        - name: id
          in: path
          description: ID de la autorización (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 de la cuenta del Ledger de 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 es la justificación en texto libre registrada al
            momento de cancelar (obligatoria para FRAUD). Nil cuando no está
            presente.
          example: Customer reported unauthorized charge
          type: string
        cancellationReasonKind:
          description: >-
            CancellationReasonKind es el motivo de cancelación estructurado
            (PAYER, FRAUD, EXPIRED, RECEIVER). Nil cuando la autorización no fue
            cancelada.
          enum:
            - PAYER
            - FRAUD
            - EXPIRED
            - RECEIVER
          example: FRAUD
          type: string
        cancelledAt:
          format: date-time
          type: string
        cancelledByOperatorId:
          description: >-
            CancelledByOperatorID es el operador que realizó una cancelación por
            FRAUD. Nil para cancelaciones iniciadas por el pagador o por el
            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: El mensaje de error de la respuesta.
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: Un identificador único y estable para el error.
        title:
          type: string
          description: Un breve resumen del problema.
        message:
          type: string
          description: Orientación detallada para resolver el error.
    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

````