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

# Pay and confirm a scanned Pix Automático recurrence (J3)

> J3 inseparable-act saga: process the pre-created immediate-charge cashout (`initiationId`) and confirm the scanned recurrence (`idRec`). Returns 200 when the cashout settled immediately (authorization request is APPROVING); 202 when it is still processing. The payer account is the authenticated `X-Account-Id`. `X-Idempotency` is optional but recommended; replays within the window are de-duplicated.



## OpenAPI

````yaml /es/openapi/v3-current/indirect-pix.yaml post /v1/recurrences/payer/qr/pay-and-confirm
openapi: 3.1.0
info:
  description: >-
    API for Pix Indirect via BTG. It covers DICT keys and claims; MED infraction
    reports, fraud markers, refund requests, and funds recoveries; DICT
    statistics and reconciliation; Pix transfers, refunds, and schedules; static
    QR codes and QR code decoding; immediate and due-date collections; Pix
    Automático for the payer; transaction reports and TemposTransacoes
    statistics; and inbound and outbound webhook records.
  title: Plugin BR Pix Indirect - Complete API
  version: 1.10.0
servers:
  - url: https://plugin-pix-indirect.api.lerian.net
security:
  - BearerAuth: []
paths:
  /v1/recurrences/payer/qr/pay-and-confirm:
    post:
      tags:
        - Pix Automático
      summary: Pay and confirm a scanned Pix Automático recurrence (J3)
      description: >-
        J3 inseparable-act saga: process the pre-created immediate-charge
        cashout (`initiationId`) and confirm the scanned recurrence (`idRec`).
        Returns 200 when the cashout settled immediately (authorization request
        is APPROVING); 202 when it is still processing. The payer account is the
        authenticated `X-Account-Id`. `X-Idempotency` is optional but
        recommended; replays within the window are de-duplicated.
      operationId: recurring-pay-and-confirm-from-qr
      parameters:
        - description: Account ID (UUID format)
          in: header
          name: X-Account-Id
          required: true
          schema:
            description: Account ID (UUID format)
            format: uuid
            type: string
        - description: >-
            Idempotency key (optional; replays within the window are
            de-duplicated).
          in: header
          name: X-Idempotency
          schema:
            description: >-
              Idempotency key (optional; replays within the window are
              de-duplicated).
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PayAndConfirmFromQRInput'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayAndConfirmFromQROutput'
          description: OK
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayAndConfirmFromQROutput'
          description: >-
            The immediate-charge cashout is still processing (authorization
            request not yet APPROVING)
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorBody'
          description: Bad Request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorBody'
          description: Internal Server Error
components:
  schemas:
    PayAndConfirmFromQRInput:
      additionalProperties: false
      properties:
        amount:
          examples:
            - '29.90'
          minLength: 1
          type: string
        description:
          examples:
            - Payment for services
          type: string
        idRec:
          examples:
            - RR0000000000000000001
          maxLength: 64
          minLength: 1
          type: string
        initiationId:
          examples:
            - 550e8400-e29b-41d4-a716-446655440010
          minLength: 1
          type: string
        receiverMaxAmount:
          examples:
            - '500.00'
          type: string
      required:
        - idRec
        - initiationId
        - amount
      type: object
    PayAndConfirmFromQROutput:
      additionalProperties: false
      properties:
        authorizationRequest:
          $ref: '#/components/schemas/AuthorizationRequestOutput'
        cashoutId:
          examples:
            - 550e8400-e29b-41d4-a716-446655440010
          type: string
        cashoutStatus:
          enum:
            - CREATED
            - PENDING
            - PROCESSING
            - COMPLETED
          examples:
            - PROCESSING
          type: string
      required:
        - authorizationRequest
        - cashoutId
        - cashoutStatus
      type: object
    LegacyErrorBody:
      additionalProperties: false
      properties:
        fields:
          additionalProperties:
            type: string
          type: object
        headers:
          additionalProperties:
            type: string
          type: object
        message:
          type: string
        paths:
          additionalProperties:
            type: string
          type: object
        queryParams:
          additionalProperties:
            type: string
          type: object
        raw:
          type: string
        code:
          type: string
        title:
          type: string
      required:
        - code
        - title
        - message
      type: object
    AuthorizationRequestOutput:
      additionalProperties: false
      properties:
        acceptedMaxAmount:
          examples:
            - '500.00'
          type: string
        accountId:
          examples:
            - 019cf6ef-e418-7ced-80c0-7b9816faa798
          type: string
        amount:
          $ref: '#/components/schemas/AuthorizationRequestAmountProfile'
        approvingAt:
          format: date-time
          type: string
        cancellationCode:
          examples:
            - ACCL
          type: string
        cancellationRequester:
          examples:
            - PSP_PAYEE
          type: string
        cancelledAt:
          format: date-time
          type: string
        confirmedAt:
          format: date-time
          type: string
        createdAt:
          format: date-time
          type: string
        description:
          examples:
            - Streaming subscription
          type: string
        destination:
          $ref: '#/components/schemas/AuthorizationRequestDestination'
        expiredAt:
          format: date-time
          type: string
        externalRequestId:
          examples:
            - RREC-2026-04-001
          type: string
        firstChargeId:
          examples:
            - 019cf6ef-e418-7ced-80c0-7b9816faa798
          type: string
        id:
          examples:
            - 019cf6ef-e418-7ced-80c0-7b9816faa798
          type: string
        journey:
          examples:
            - J1
          type: string
        payeeRejectionCode:
          examples:
            - MD20
          type: string
        payeeRejectionDescription:
          type: string
        periodicity:
          $ref: '#/components/schemas/AuthorizationRequestPeriodicity'
        rejectedAt:
          format: date-time
          type: string
        replyFailedAt:
          format: date-time
          type: string
        replyFailureReason:
          type: string
        retryPolicy:
          examples:
            - RETRY_3X_7D
          type: string
        status:
          enum:
            - PENDING
            - INITIATED
            - APPROVING
            - CONFIRMED
            - REJECTED
            - PAYMENT_FAILED
            - REPLY_FAILED
            - CANCELLED
            - EXPIRED
          examples:
            - PENDING
          type: string
        updatedAt:
          format: date-time
          type: string
        validUntil:
          examples:
            - '2026-06-30T23:59:59Z'
          format: date-time
          type: string
      required:
        - id
        - accountId
        - externalRequestId
        - destination
        - periodicity
        - amount
        - retryPolicy
        - validUntil
        - journey
        - status
        - createdAt
        - updatedAt
      type: object
    AuthorizationRequestAmountProfile:
      additionalProperties: false
      properties:
        fixed:
          examples:
            - '29.90'
          type: string
        max:
          examples:
            - '500.00'
          type: string
        min:
          examples:
            - '10.00'
          type: string
      type: object
    AuthorizationRequestDestination:
      additionalProperties: false
      properties:
        account:
          examples:
            - '123456'
          type: string
        accountType:
          enum:
            - CACC
            - SVGS
            - TRAN
            - OTHR
          examples:
            - CACC
          type: string
        bank:
          examples:
            - '30306294'
          type: string
        branch:
          examples:
            - '0001'
          type: string
        document:
          examples:
            - '11222333000181'
          type: string
        key:
          examples:
            - contato@streaming.co
          type: string
        name:
          examples:
            - Streaming Co
          type: string
        personType:
          enum:
            - NATURAL_PERSON
            - LEGAL_PERSON
          examples:
            - LEGAL_PERSON
          type: string
      type: object
    AuthorizationRequestPeriodicity:
      additionalProperties: false
      properties:
        customDays:
          examples:
            - 30
          format: int64
          type: integer
        type:
          enum:
            - WEEKLY
            - MONTHLY
            - QUARTERLY
            - SEMIANNUAL
            - ANNUAL
            - CUSTOM
          examples:
            - MONTHLY
          type: string
      required:
        - type
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````

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