> ## 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 a collections title

> <Warning>**Under development.** This Payments PCR preview is subject to change. Endpoint descriptions distinguish current behavior from planned changes. Confirm availability with Lerian before integration.</Warning>

Returns one of the tenant's collections titles. It shows the four state axes, the version of the registration at the PCR, and why the registration failed, when it did.

<Info>**Providers:** Lerian (PCR).</Info>

**How it works**

- The response never carries payer or beneficiary data.
- The barcode and the digitable line appear only while the title is `REGISTERED`.



## OpenAPI

````yaml /en/openapi/v3-current/payments-pcr.yaml get /v1/collections/titles/{title_id}
openapi: 3.1.0
info:
  title: Payments PCR preview
  version: 2026-11-23-preview
  description: >-
    Preview of Payments with boleto collections through Lerian (PCR), CNAB 240,
    electronic payers (DDA), bill payments, and shared administration. This
    reference includes current behavior and planned changes. Read each
    operation's provider information: some operations support BTG only today.
    The preview is under development and can change before release. Confirm
    availability with Lerian before integration.


    The webhooks section describes notices Payments sends to your callback URL.
    Verify the signature and timestamp before processing a notice. Use the
    eventId and X-Webhook-Id described by each notice to detect repeated
    delivery. Do not assume delivery order.
servers:
  - url: https://api.example.com
    description: >-
      Replace the example host with the URL provided during environment
      onboarding.
security: []
tags:
  - description: >-
      Tenant-level setup: connecting the banking provider and configuring where
      status notifications are delivered.
    name: Admin
  - description: Issuing, querying and cancelling boletos, and retrieving the rendered PDF.
    name: Boletos
  - name: CNAB Agreements
    description: >-
      CNAB agreements: the link between a Lerian-provider collections agreement
      and the CNAB 240 Lerian files of one account, with its remittance and
      return sequence numbers (NSA) and its return cut times. Every operation of
      this section answers 422 PBP-0900 to a tenant without CNAB 240 enabled.
  - name: CNAB Remittances
    description: >-
      CNAB remittances: the CNAB 240 Lerian remittance files of an organization,
      each received whole, validated and stored encrypted, its title lines
      executed afterwards. A file already received is answered with its stored
      receipt; a new one answers 422 PBP-0900 to a tenant without CNAB 240
      enabled.
  - name: CNAB Returns
    description: >-
      CNAB 240 Lerian return files, one per agreement and cut, built from the
      journal of what happened to the titles that entered by remittance, and
      their download. Every operation of this section answers 422 PBP-0900 to a
      tenant without CNAB 240 enabled.
  - description: >-
      Boleto collections agreements and their reconciliation with the
      beneficiary base of the PCR: the consumption of each beneficiary inventory
      the PCR publishes and the divergences it raises, which carry only
      agreement and situation attributes, never a document or a name. Every
      operation of this section answers 422 PBP-0830 to a tenant without
      collections enabled.
    name: Collections Agreements
  - description: >-
      Boleto collections audit trail: every operation and configuration action,
      append-only, with its author, instant, reason, evidence and the module's
      fields before and after it. Every operation of this section answers 422
      PBP-0830 to a tenant without collections enabled.
    name: Collections Audit
  - description: >-
      Boleto collections beneficiaries: the enablement of the tenant's accounts
      for collections, in batches of up to 5,000 accounts, and the progress and
      per-item outcome of the enablement and bulk adoption batches. Every
      operation of this section answers 422 PBP-0830 to a tenant without
      collections enabled.
    name: Collections Beneficiaries
  - name: Collections Credit Entries
    description: >-
      Boleto collections credit entries: what the credit of each write-off moves
      in the ledger, one entry per write-off and phase, the RELEASE to the
      available balance of the title's account and the CHARGEBACK of a write-off
      cancelled after its release, with where each entry stands with the ledger
      and, when it is not posted, why, as a closed code and never the ledger's
      own text. Every operation of this section answers 422 PBP-0830 to a tenant
      without collections enabled.
  - description: >-
      Boleto collections operation queues: each case that waits for an operator
      and already has its state in collections, with its reason, since when it
      waits and the operations that act on it, read over the states collections
      keeps rather than from a list of its own. Each queue counts the items
      whose age reached its age limit, a per-tenant operational parameter. Every
      operation of this section answers 422 PBP-0830 to a tenant without
      collections enabled.
    name: Collections Operation Queues
  - description: >-
      Boleto collections commands to the PCR: each registration, change and
      write-off sent to the PCR of the institution, with the idempotency key it
      keeps across attempts, its attempts, its next attempt and the last answer
      that did not accept it, never the body sent. Every operation of this
      section answers 422 PBP-0830 to a tenant without collections enabled.
    name: Collections PCR Commands
  - description: >-
      Boleto collections notice subscription of the tenant's connection to the
      PCR: its synchronization with the PCR, the rotation of the secret the PCR
      signs the notices with, the deliveries of notices the PCR recorded for it,
      and the redelivery of a notice whose delivery failed. Every operation of
      this section answers 422 PBP-0830 to a tenant without collections enabled.
    name: Collections PCR Connection
  - description: >-
      Boleto collections notices received from the PCR: each event the PCR of
      the institution delivered to collections, stored once per connection and
      event, with where its processing stands and what it was matched with,
      never the body received. Every operation of this section answers 422
      PBP-0830 to a tenant without collections enabled.
    name: Collections PCR Notices
  - description: >-
      Boleto collections pooled accounts: the links of accounts that issue under
      the agreement of a pooled account, whose holder stays the beneficiary
      while the account's holder is the final one. A link registers nothing at
      Núclea. Every operation of this section answers 422 PBP-0830 to a tenant
      without collections enabled.
    name: Collections Pooled Accounts
  - description: >-
      Boleto collections setup: the tenant's business settings, with the default
      agreement template, the automatic enablement and the retention periods,
      and the tenant's connection to the PCR of its institution. Every operation
      of this section answers 422 PBP-0830 to a tenant without collections
      enabled.
    name: Collections Settings
  - description: >-
      Boleto collections titles: each boleto collections issues at the PCR of
      the institution, with its four state axes (registration, situation at the
      base, credit and block), never the data of a payer or of a beneficiary.
      The barcode and the digitable line are answered only while the title is
      REGISTERED. Every operation of this section answers 422 PBP-0830 to a
      tenant without collections enabled.
    name: Collections Titles
  - name: Collections Write-offs
    description: >-
      Boleto collections write-offs: each write-off of a collections title the
      PCR of the institution notified, with its route, its settlement, the state
      of its credit, its hold and its cancellation deadline, never the data of a
      payer. Every operation of this section answers 422 PBP-0830 to a tenant
      without collections enabled.
  - description: >-
      Aggregated counts, amounts and breakdowns over a period, for boletos and
      for payments.
    name: Dashboards
  - name: Electronic payers
    description: >-
      Electronic payer (DDA): adhesion of the institution's customer to
      electronic presentment of boletos, its accounts and aggregates, and the
      outcome of each request. Under development: can change before it is
      released.
  - description: >-
      The notices Payments posts to the tenant's callback URL, one per type
      enabled in enabledEvents, each signed with the configuration's secret.
      Each item describes the body, the delivery headers, when the notice is
      sent and which providers send it. The webhook is the channel of the first
      delivery: delivery will later move to Lerian's Streaming Hub, which will
      then be the only channel, with a change of subscription and a migration
      plan communicated to the client.
    name: Notices
  - description: >-
      Paying bankslips, utility bills and DARF tax slips, and querying those
      payments.
    name: Payments
  - name: Presented boletos
    description: >-
      Boletos of other institutions presented to the electronic payer: list,
      detail, acceptance and authorized third parties. Under development: can
      change before it is released.
paths:
  /v1/collections/titles/{title_id}:
    get:
      tags:
        - Collections Titles
      summary: Get a collections title
      description: >-
        <Warning>**Under development.** This Payments PCR preview is subject to
        change. Endpoint descriptions distinguish current behavior from planned
        changes. Confirm availability with Lerian before integration.</Warning>


        Returns one of the tenant's collections titles. It shows the four state
        axes, the version of the registration at the PCR, and why the
        registration failed, when it did.


        <Info>**Providers:** Lerian (PCR).</Info>


        **How it works**


        - The response never carries payer or beneficiary data.

        - The barcode and the digitable line appear only while the title is
        `REGISTERED`.
      operationId: getTitle
      parameters:
        - description: Identifier of the collections title.
          in: path
          name: title_id
          required: true
          schema:
            description: Identifier of the collections title.
            examples:
              - 7c9e6679-7425-40de-944b-e07fc1f90ae7
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Title'
          description: OK. The title.
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0003:
                  summary: 'PBP-0003: Invalid credential'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0003
                    title: Unauthorized
                    status: 401
                    detail: authentication required
                    code: PBP-0003
          description: >-
            Unauthorized.


            - `PBP-0003`: the credential is missing or invalid, or does not
            identify a tenant. Get a valid bearer token.
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0004:
                  summary: 'PBP-0004: No permission'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0004
                    title: Forbidden
                    status: 403
                    detail: permission denied
                    code: PBP-0004
          description: >-
            Forbidden.


            - `PBP-0004`: the credential does not have permission for this
            operation.
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0005:
                  summary: 'PBP-0005: Title not found'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0005
                    title: Not Found
                    status: 404
                    detail: title not found
                    code: PBP-0005
          description: |-
            Not Found.

            - `PBP-0005`: the tenant has no title with this id.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0006:
                  summary: 'PBP-0006: Request does not match the schema'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0006
                    title: Unprocessable Entity
                    status: 422
                    detail: validation failed
                    code: PBP-0006
                PBP-0830:
                  summary: 'PBP-0830: Collections not enabled'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0830
                    title: Collections Not Enabled
                    status: 422
                    detail: Collections Not Enabled
                    code: PBP-0830
          description: >-
            Unprocessable Entity.


            - `PBP-0006`: `title_id` is not a UUID.

            - `PBP-0830`: the tenant does not have the collections module.
            Retrying does not change the answer.


            See the [error
            list](/en/reference/interfaces/payments-btg/payments-error-list) for
            every code.
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0002:
                  summary: 'PBP-0002: Unexpected failure'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0002
                    title: Internal Server Error
                    status: 500
                    detail: internal error
                    code: PBP-0002
          description: |-
            Internal Server Error. The `detail` is a fixed text.

            - `PBP-0002`: an unexpected failure. Contact support.
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0008:
                  summary: 'PBP-0008: Dependency unavailable'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0008
                    title: Service Unavailable
                    status: 503
                    detail: internal error
                    code: PBP-0008
          description: >-
            Service Unavailable. The `detail` is a fixed text.


            - `PBP-0008`: a dependency (authentication or the tenant's storage)
            is unavailable. The request was not processed. Wait and retry.
      security:
        - BearerAuth: []
components:
  schemas:
    Title:
      additionalProperties: false
      properties:
        accountId:
          description: Midaz account that issues the title.
          examples:
            - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6d
          format: uuid
          type: string
        agreementId:
          description: Agreement the title is issued under.
          examples:
            - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a71
          format: uuid
          type: string
        amount:
          description: >-
            Amount of the title in reais, as a decimal string with two decimal
            places.
          examples:
            - '1000.00'
          maxLength: 32
          pattern: ^[0-9]{1,15}(\.[0-9]{1,2})?$
          type: string
        barcode:
          description: >-
            The 44 digits of the barcode, only while the title is REGISTERED;
            null in every other state.
          examples:
            - '23791000000001000000000000000000123456700000'
          pattern: ^[0-9]{44}$
          type:
            - string
            - 'null'
        baseSituation:
          description: >-
            Situation of the title at Núclea's base. OPEN: not written off.
            PAID: written off by its payment. CANCELLED: written off by the
            institution that issued it. LAPSED: written off by lapse, after its
            payment deadline passed.
          enum:
            - OPEN
            - PAID
            - CANCELLED
            - LAPSED
          examples:
            - OPEN
          type: string
        blockState:
          description: >-
            Whether the payment of the title is blocked; only a notice of the
            PCR changes it.
          enum:
            - UNBLOCKED
            - BLOCKED
          examples:
            - UNBLOCKED
          type: string
        boletoId:
          description: >-
            Boleto of the host the title registers; it is the externalId sent to
            the PCR.
          examples:
            - 9b2e6d4c-1a0e-4f11-8c3d-5f2b8a8e3c1d
          format: uuid
          type: string
        connectionId:
          description: Connection to the PCR the title is registered through.
          examples:
            - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a01
          format: uuid
          type: string
        createdAt:
          description: When the title was issued, RFC 3339 in UTC.
          examples:
            - '2026-11-03T14:00:00Z'
          format: date-time
          type: string
        creditDelayBusinessDays:
          description: >-
            Business days, counted from a write-off, before its credit is
            released, copied from the agreement at issue: a later change of the
            agreement does not change it.
          examples:
            - 0
          format: int64
          maximum: 30
          minimum: 0
          readOnly: true
          type: integer
        creditState:
          description: >-
            Where the credit of the title's write-offs is. NONE: no entry,
            because the title has no write-off or its write-off moves no money.
            TO_RELEASE: credit waiting for its release. RELEASED: credit
            released to the account. REVERSED: credit reversed before its
            release. CHARGEBACK_PENDING: a reversal after the release that the
            ledger refused, waiting to be processed again. CHARGED_BACK: credit
            reversed after its release.
          enum:
            - NONE
            - TO_RELEASE
            - RELEASED
            - REVERSED
            - CHARGEBACK_PENDING
            - CHARGED_BACK
          examples:
            - NONE
          type: string
        digitableLine:
          description: >-
            The 47 digits of the digitable line, only while the title is
            REGISTERED; null in every other state.
          examples:
            - '23790000090000000000000000012345670000000100000'
          pattern: ^[0-9]{47}$
          type:
            - string
            - 'null'
        documentNumber:
          description: >-
            Number the beneficiary gives the title (NumDocTit), printed as its
            document number; not unique. Null when the title has none.
          examples:
            - NF-2026/000123
          maxLength: 15
          minLength: 1
          pattern: ^[ -~]{1,15}$
          type:
            - string
            - 'null'
        dueDate:
          description: Due date of the title.
          examples:
            - '2026-11-10'
          format: date
          type: string
        failureReason:
          description: Why the title FAILED; null in every other state.
          oneOf:
            - $ref: '#/components/schemas/FailureReason'
            - type: 'null'
        held:
          description: Whether a write-off of the title has its credit release held.
          examples:
            - false
          type: boolean
        id:
          description: Identifier of the title.
          examples:
            - 7c9e6679-7425-40de-944b-e07fc1f90ae7
          format: uuid
          type: string
        nucleaTitleNumber:
          description: >-
            Number Núclea gave the title when it registered it (NumIdentcTit);
            null before.
          examples:
            - '2026110300000000001'
          pattern: ^[0-9]{19}$
          type:
            - string
            - 'null'
        organizationId:
          description: Midaz organization of the account that issues the title.
          examples:
            - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b
          format: uuid
          readOnly: true
          type: string
        originalTitleId:
          description: Title this one corrects; null when it corrects none.
          examples:
            - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5aa1
          format: uuid
          type:
            - string
            - 'null'
        ourNumber:
          description: Nosso número of the title, answered at 16 digits.
          examples:
            - '0000000001234567'
          pattern: ^[0-9]{1,16}$
          type: string
        overdueNotifiedAt:
          description: >-
            When the title's overdue notice was recorded, the day after its
            effective due date (the due date moved to the next business day of
            the SILOC calendar), RFC 3339 in UTC; null while no overdue notice
            was recorded for the current due date. Set once per due date; an
            amendment that moves the due date clears it.
          examples:
            - '2026-11-11T09:00:00Z'
          format: date-time
          type:
            - string
            - 'null'
        paymentDeadline:
          description: >-
            Last day the title can be paid: the one given at issue, or the due
            date plus the agreement's paymentDeadlineDays.
          examples:
            - '2026-12-10'
          format: date
          type:
            - string
            - 'null'
        pcrBoletoId:
          description: >-
            Identifier the PCR gave the boleto when it accepted the
            registration; null until the PCR gave one.
          examples:
            - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a91
          format: uuid
          type:
            - string
            - 'null'
        pooledAccountLinkId:
          description: >-
            Link to the pooled account the title is issued under; null when it
            is issued under the agreement of its own account.
          examples:
            - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a81
          format: uuid
          type:
            - string
            - 'null'
        portfolio:
          description: >-
            Portfolio of the title, its agreement's: 01 Simples, 02 Vinculada,
            03 Caucionada, 04 Descontada, 05 Vendor, 06 Cessão.
          enum:
            - '01'
            - '02'
            - '03'
            - '04'
            - '05'
            - '06'
          examples:
            - '01'
          type: string
        registrationSequence:
          description: >-
            Last update sequence of the boleto applied (numSeqAtlzCadTit), which
            orders the notices. Null before the registration.
          examples:
            - '12'
          pattern: ^[0-9]{1,19}$
          type:
            - string
            - 'null'
        registrationState:
          description: >-
            Where the title is in its issue and registration.
            AWAITING_BENEFICIARY: issued under an agreement Núclea has not
            accepted yet, and not sent until it is. PENDING_SUBMISSION: not yet
            accepted by the PCR. SUBMITTED: accepted by the PCR, without
            Núclea's answer yet. SUBMISSION_FAILED: accepted by the PCR, which
            then reported it could not submit it; not final, a late registration
            still takes it to REGISTERED. REGISTERED: registered at Núclea.
            FAILED: will not be registered; failureReason says why. WITHDRAWN:
            withdrawn before it was sent; it never reached the PCR.
          enum:
            - AWAITING_BENEFICIARY
            - PENDING_SUBMISSION
            - SUBMITTED
            - SUBMISSION_FAILED
            - REGISTERED
            - FAILED
            - WITHDRAWN
          examples:
            - REGISTERED
          type: string
        registrationVersion:
          description: >-
            Current version of the boleto at the PCR (numRefAtlCadTit), sent
            back on its changes and write-offs; it does not order the notices.
            Null before the registration.
          examples:
            - '7'
          pattern: ^[0-9]{1,19}$
          type:
            - string
            - 'null'
        releasePolicy:
          description: >-
            When the credit of the title's write-offs is released, copied from
            the agreement at issue: a later change of the agreement does not
            change it.
          enum:
            - AFTER_CANCELLATION_WINDOW
            - AT_SETTLEMENT
          examples:
            - AFTER_CANCELLATION_WINDOW
          readOnly: true
          type: string
        speciesCode:
          description: Species of the title, its agreement's, answered at two digits.
          examples:
            - '02'
          pattern: ^[0-9]{1,2}$
          type: string
        submittedAt:
          description: >-
            When the PCR accepted the registration, RFC 3339 in UTC; null
            before, and on a title that never reached the PCR.
          examples:
            - '2026-11-03T14:05:00Z'
          format: date-time
          type:
            - string
            - 'null'
        updatedAt:
          description: When the title last changed, RFC 3339 in UTC.
          examples:
            - '2026-11-03T14:05:00Z'
          format: date-time
          type: string
      required:
        - id
        - boletoId
        - connectionId
        - agreementId
        - accountId
        - organizationId
        - ourNumber
        - amount
        - dueDate
        - creditDelayBusinessDays
        - releasePolicy
        - registrationState
        - baseSituation
        - creditState
        - blockState
        - held
        - createdAt
        - updatedAt
      type: object
    Detail:
      additionalProperties: true
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
        upstream:
          $ref: '#/components/schemas/Upstream'
          description: >-
            RFC 9457 extension member: the error a proxied third-party provider
            reported. Absent unless the emitting service explicitly surfaced
            one.
      type: object
    FailureReason:
      additionalProperties: false
      properties:
        class:
          description: >-
            REQUEST: the PCR refused what the client asked for; on a
            beneficiary, also a refusal of the operator, of the Núclea or of
            collections itself. COLLECTIONS_DEFECT: a defect of collections or
            of its configuration, the client is not at fault. INSTITUTION: a
            refusal caused by the institution's PCR installation. TRANSIENT: an
            answer, or the lack of one, that a later attempt may change. When an
            answer of the PCR decided the class, its code did, never the HTTP
            status. BENEFICIARY_REJECTED (before the title was sent, its
            agreement left registration without being accepted: the Núclea
            refused it, accepted it with its beneficiary refused or unfit, or
            its close was requested) and WITHDRAWN_AT_PCR (withdrawn at the PCR
            for a reason of its own, given in withdrawalReason) carry no answer
            of the PCR; only a title is answered with either, never a command or
            a beneficiary.
          enum:
            - REQUEST
            - COLLECTIONS_DEFECT
            - INSTITUTION
            - TRANSIENT
            - BENEFICIARY_REJECTED
            - WITHDRAWN_AT_PCR
          examples:
            - COLLECTIONS_DEFECT
          type: string
        message:
          description: >-
            Reason written by collections, never the PCR's own text: in
            Portuguese, the message for a code of the PCR's catalogue or for a
            class; in English, every other text, collections' own. On a
            command's last answer: the message for the code of the PCR's
            catalogue in pcrCode or, when the answer carried no code of the
            catalogue or no answer arrived, for the class; the note that a check
            at the PCR could not tell whether a command it never answered took
            effect; or the reason the command was given up before it was sent.
            On a beneficiary: the message of the PCR's refusal, as on a command,
            or a text of collections' own naming the refusal (the holder's data
            incomplete, the operator's rejection, or the Núclea's refusal with
            its EDDA codes); empty when the operator closed the command the
            beneficiary waited on. On a title: the message of the refusal that
            failed it, as on a command, the Núclea's refusal with its EDDA
            codes, the reason its beneficiary was refused, or, withdrawn at the
            PCR, a text of collections' own naming the withdrawalReason.
          examples:
            - Código de barras inválido.
          maxLength: 500
          type: string
        pcrCode:
          description: >-
            Code of the PCR's catalogue that decided the class. Null when no
            code decided it: no answer arrived or the answer carried none, the
            refusal is the operator's, the Núclea's or collections' own, and
            always in BENEFICIARY_REJECTED and WITHDRAWN_AT_PCR.
          examples:
            - PCR-0032
          pattern: ^PCR-[0-9]{4}$
          type:
            - string
            - 'null'
        withdrawalReason:
          description: >-
            Why the PCR withdrew the boleto, only with the class
            WITHDRAWN_AT_PCR. PENDING_CANCELLED: its pending registration was
            cancelled. PENDING_DEADLINE_EXPIRED: the pending registration's
            deadline ran out. VALIDITY_LOST: the boleto lost its validity before
            the grade opened. Null in every other class, so always null on a
            command's last answer and on a beneficiary's reason.
          enum:
            - PENDING_CANCELLED
            - PENDING_DEADLINE_EXPIRED
            - VALIDITY_LOST
            - null
          examples:
            - PENDING_DEADLINE_EXPIRED
          type:
            - string
            - 'null'
      required:
        - class
        - message
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: 'Never returned: the service drops the rejected value.'
      type: object
    Upstream:
      additionalProperties: false
      properties:
        code:
          description: The upstream provider's own error code, verbatim.
          examples:
            - E4001
          type: string
        message:
          description: >-
            The upstream provider's own error message, verbatim (bounded, never
            its raw response body).
          examples:
            - account not found at provider
          type: string
      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.