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

# Validate an inbound Pix Automático authorization

> Validates an inbound recurring-payment authorization request pushed by the upstream system. A synchronous validation returns the result inline (200); a Jornada-3 authorization returns 202-async with the eventual result delivered via the outbound 4.3.10 validation reply.



## OpenAPI

````yaml en/openapi/v3-current/pix.yaml POST /v1/pix-automatico/authorizations/inbound/validate
openapi: 3.0.3
info:
  title: Plugin BR Pix Direct - Complete API
  description: |
    Complete API for Brazilian Pix instant payment system including
    Pix key dictionary operations, QR code generation/decoding, transactions and
    transaction limits.
  version: 1.0.0
servers:
  - url: https://plugin-pix-direct.api.lerian.net
  - url: https://plugin-pix-direct-qrcode.api.lerian.net
security:
  - bearerAuth: []
paths:
  /v1/pix-automatico/authorizations/inbound/validate:
    post:
      tags:
        - Pix Automático API
      summary: Validate an inbound Pix Automático authorization
      description: >-
        Validates an inbound recurring-payment authorization request pushed by
        the upstream system. A synchronous validation returns the result inline
        (200); a Jornada-3 authorization returns 202-async with the eventual
        result delivered via the outbound 4.3.10 validation reply.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateAuthorizationBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateAuthorizationResponse'
          description: OK
        '202':
          description: Jornada-3 async acknowledgement (dtHrValidacao only).
components:
  schemas:
    ValidateAuthorizationBody:
      additionalProperties: false
      properties:
        descContrato:
          description: Free-text contract description (35-char).
          type: string
        devedor:
          $ref: '#/components/schemas/InboundDebtorBlock'
        dtFinalRecorrencia:
          description: Last payment date (aaaa-mm-dd).
          type: string
        dtHrAutorizacaoRecorrencia:
          description: Authorization timestamp (UTC).
          type: string
        dtHrCriacaoRecorrencia:
          description: Recurrence creation timestamp (UTC).
          type: string
        dtInicialRecorrencia:
          description: First payment date (aaaa-mm-dd).
          type: string
        idRecorrencia:
          description: Unique recurrence id (29-char, RR...).
          type: string
        idSolicitacaoRecorrencia:
          description: Confirmation-solicitation id (29-char, IS...).
          type: string
        jornada:
          description: Authorization journey (1..4).
          format: int64
          type: integer
        motivoRejeicao:
          description: >-
            Rejection reason code (4-char; required when
            resultadoAutorizacao=false).
          type: string
        nrContrato:
          description: Contract/order identifier (35-char).
          type: string
        pagador:
          $ref: '#/components/schemas/InboundPayerBlock'
        recebedor:
          $ref: '#/components/schemas/InboundRecipientBlock'
        resultadoAutorizacao:
          description: Payer analysis result (true=Aceita, false=Rejeitada).
          type: boolean
        retentativa:
          description: Retry policy (0=none, 1=up to 3 in 7 days).
          format: int64
          type: integer
        tpFrequencia:
          description: Recurrence periodicity (0..4).
          format: int64
          type: integer
        valor:
          description: Fixed payment amount in reais (a JSON number).
          format: double
          type: number
      required:
        - idRecorrencia
        - retentativa
        - jornada
        - tpFrequencia
        - dtInicialRecorrencia
        - recebedor
        - pagador
        - nrContrato
        - dtHrCriacaoRecorrencia
      type: object
    ValidateAuthorizationResponse:
      additionalProperties: false
      properties:
        dtHrValidacao:
          description: Validation timestamp (UTC).
          type: string
        motivoRejeicao:
          description: Rejection reason code (required when resultado=0).
          type: string
        resultado:
          description: >-
            Validation result (0=Invalido, 1=Valido); omitted on the 202 async
            ack.
          format: int64
          type: integer
      required:
        - dtHrValidacao
      type: object
    InboundDebtorBlock:
      additionalProperties: false
      properties:
        cpfCnpj:
          description: Debtor CPF or CNPJ (a v5.5.0 string).
          type: string
        nome:
          description: Debtor name/razao social.
          type: string
        tpPessoa:
          description: Person type (0=Pessoa Fisica, 1=Pessoa Juridica).
          format: int64
          type: integer
      required:
        - tpPessoa
        - cpfCnpj
        - nome
      type: object
    InboundPayerBlock:
      additionalProperties: false
      properties:
        codMunIbge:
          description: >-
            Payer municipality IBGE code (7 digits). Carried for
            wire-completeness; the spec marks it Sim on 5.2.4, but the service
            does not consume or persist payer municipality this wave (the domain
            has no municipality field).
          format: int64
          type: integer
        cpfCnpj:
          description: Payer CPF or CNPJ (a v5.5.0 string).
          type: string
        ispb:
          description: Payer participant ISPB (8 digits, a v5.5.0 string).
          type: string
        nrAgencia:
          description: Payer branch (nrAgencia, 4 digits, string; the branch source).
          type: string
        nrConta:
          description: Payer account number (nrConta, a string; NEVER the branch).
          type: string
        tpPessoa:
          description: Person type (0=Pessoa Fisica, 1=Pessoa Juridica).
          format: int64
          type: integer
      required:
        - ispb
        - tpPessoa
        - cpfCnpj
        - nrConta
      type: object
    InboundRecipientBlock:
      additionalProperties: false
      properties:
        cnpj:
          description: Recipient CNPJ (14 digits, a v5.5.0 string).
          type: string
        ispb:
          description: Recipient participant ISPB (8 digits, a v5.5.0 string).
          type: string
        nome:
          description: Recipient legal/trade name (razao social).
          type: string
      required:
        - ispb
        - cnpj
        - nome
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        JWT Bearer token authentication. Obtain token from
        `/v1/login/oauth/access_token` endpoint

        using client credentials (clientId and clientSecret).


        Include token in Authorization header:

        `Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...`


        Token expires after 3600 seconds (1 hour).

````