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

# Trigger the asynchronous TemposTransacoes computation

> Use this endpoint to start the asynchronous computation of the BACEN TemposTransacoes payer-experience percentiles for a closed reference month. Returns immediately with the job in PENDING; poll the job or wait for the completion webhook for the result. Only one active job (PENDING/RUNNING) per reference month is allowed (409 otherwise), and at most two jobs run concurrently service-wide (429 beyond that).



## OpenAPI

````yaml /en/openapi/v3-current/indirect-pix.yaml post /v1/statistics/tempos-transacoes/jobs
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/statistics/tempos-transacoes/jobs:
    post:
      tags:
        - Statistics
      summary: Trigger the asynchronous TemposTransacoes computation
      description: >-
        Use this endpoint to start the asynchronous computation of the BACEN
        TemposTransacoes payer-experience percentiles for a closed reference
        month. Returns immediately with the job in PENDING; poll the job or wait
        for the completion webhook for the result. Only one active job
        (PENDING/RUNNING) per reference month is allowed (409 otherwise), and at
        most two jobs run concurrently service-wide (429 beyond that).
      operationId: createTemposTransacoesReportJob
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateReportJobRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportJobResponse'
          description: Accepted
        '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
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorBody'
          description: Error
components:
  schemas:
    CreateReportJobRequest:
      additionalProperties: false
      properties:
        referenceMonth:
          description: >-
            Reference month to compute, in YYYY-MM format (-03 reference
            timezone). Must be a month that has already closed.
          examples:
            - 2026-05
          pattern: ^\d{4}-(0[1-9]|1[0-2])$
          type: string
      required:
        - referenceMonth
      type: object
    ReportJobResponse:
      additionalProperties: false
      properties:
        completedAt:
          description: When the job reached a terminal state.
          format: date-time
          type: string
        errorMessage:
          description: >-
            Generic failure reason when status is FAILED, including manual
            cancellations.
          type: string
        referenceMonth:
          description: Reference month of the job, in YYYY-MM format.
          examples:
            - 2026-05
          type: string
        requestedAt:
          description: When the job was accepted.
          format: date-time
          type: string
        result:
          description: Computed percentiles. Present only when status is COMPLETED.
          oneOf:
            - $ref: '#/components/schemas/TemposTransacoesStatistics'
            - type: 'null'
        startedAt:
          description: When background processing started. Absent while PENDING.
          format: date-time
          type: string
        status:
          description: >-
            PENDING = accepted, not started; RUNNING = in progress; COMPLETED =
            result available; FAILED = see errorMessage (includes cancelled
            jobs).
          enum:
            - PENDING
            - RUNNING
            - COMPLETED
            - FAILED
          type: string
      required:
        - referenceMonth
        - status
        - requestedAt
      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
    TemposTransacoesStatistics:
      additionalProperties: false
      properties:
        liqForaSpi:
          $ref: '#/components/schemas/PercentileRail'
        liqSpi:
          $ref: '#/components/schemas/PercentileRail'
        referenceMonth:
          type: string
        unit:
          type: string
      required:
        - referenceMonth
        - unit
        - liqSpi
        - liqForaSpi
      type: object
    PercentileRail:
      additionalProperties: false
      properties:
        perc50:
          format: double
          type: number
        perc99:
          format: double
          type: number
        transactionCount:
          format: int64
          type: integer
      required:
        - perc50
        - perc99
        - transactionCount
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````