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

# Get boleto by ID

> Retrieves a single boleto by its ID with full detail.



## OpenAPI

````yaml en/openapi/v3-current/payments.yaml get /v1/boletos/{id}
openapi: 3.0.3
info:
  title: Payments — via BTG API
  description: >-
    API for the Lerian Payments interface via BTG. It covers boleto issuance,
    cancellation, installments, and queries; bill payments (bankslip, utilities,
    and DARF), cancellation, and queries; aggregated boleto and payment
    dashboards; provider connection and outbound webhook configuration; and the
    provider webhook receiver for settlement events.
  version: v1.0.0
servers:
  - url: https://payments.sandbox.lerian.net
security: []
tags:
  - name: Health
    description: Service health and readiness endpoints
  - name: Boletos
    description: Boleto issuance, cancellation, installments, and queries
  - name: Payments
    description: Bill payments (bankslip, utilities, DARF), cancellation, and queries
  - name: Dashboards
    description: Aggregated metrics and dashboards for boletos and payments
  - name: Admin
    description: Administrative endpoints for webhook configuration
  - name: Webhooks
    description: Provider webhook receiver for settlement events
paths:
  /v1/boletos/{id}:
    get:
      tags:
        - Boletos
      summary: Get boleto by ID
      description: Retrieves a single boleto by its ID with full detail.
      parameters:
        - description: Tenant organization ID
          in: header
          name: X-Organization-Id
          required: true
          schema:
            type: string
        - description: Boleto ID (UUID)
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.GetBoletoResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pluginerrors.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pluginerrors.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pluginerrors.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pluginerrors.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    http.GetBoletoResponse:
      properties:
        amount:
          type: string
        barcode:
          type: string
        canceledAt:
          type: string
        cancellationReason:
          type: string
        createdAt:
          type: string
        digitableLine:
          type: string
        discount:
          $ref: '#/components/schemas/http.DiscountResponse'
        dueDate:
          type: string
        errorMessage:
          type: string
        failedAt:
          type: string
        fine:
          $ref: '#/components/schemas/http.FineResponse'
        guarantor:
          $ref: '#/components/schemas/http.GuarantorResponse'
        id:
          type: string
        inactivatedAt:
          type: string
        installmentLabel:
          type: string
        instructions:
          type: string
        interest:
          $ref: '#/components/schemas/http.InterestResponse'
        kind:
          type: string
        payer:
          $ref: '#/components/schemas/http.PayerResponse'
        providerId:
          type: string
        qrCode:
          type: string
        seriesId:
          type: string
        settledAmount:
          type: string
        settledAt:
          type: string
        status:
          type: string
        type:
          type: string
        updatedAt:
          type: string
      type: object
    pluginerrors.ErrorResponse:
      properties:
        code:
          example: PBP-0001
          type: string
        details:
          additionalProperties: {}
          type: object
        message:
          example: dueDate must be in YYYY-MM-DD format
          type: string
        title:
          example: Bad Request
          type: string
      type: object
    http.DiscountResponse:
      properties:
        amount:
          type: string
        limitDate:
          type: string
        type:
          type: string
      type: object
    http.FineResponse:
      properties:
        amount:
          type: string
        type:
          type: string
      type: object
    http.GuarantorResponse:
      properties:
        address:
          $ref: '#/components/schemas/http.AddressResponse'
        document:
          type: string
        name:
          type: string
      type: object
    http.InterestResponse:
      properties:
        amount:
          type: string
        type:
          type: string
      type: object
    http.PayerResponse:
      properties:
        address:
          $ref: '#/components/schemas/http.AddressResponse'
        document:
          type: string
        name:
          type: string
      type: object
    http.AddressResponse:
      properties:
        city:
          type: string
        complement:
          type: string
        neighborhood:
          type: string
        number:
          type: string
        state:
          type: string
        street:
          type: string
        zipCode:
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer token authentication (format: "Bearer {token}")'
      in: header
      name: Authorization
      type: apiKey

````