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

# Issue a batch of boletos

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

Issues 1 to 25 `TRADITIONAL` boletos in one request, one per item. All items use one collection account (`midazAccountId`) and one ledger (`ledgerId`) of the `X-Organization-Id` organization.

<Info>**Providers:** BTG.</Info>

**How it works**

- The response is `202` with the batch and the status of each item. No item has a barcode yet.
- Each item is issued on its own, asynchronously. Follow it with `GET /v1/boletos/batches/{batch_id}` or with status change notifications set at `/v1/admin/webhooks`.
- Do not send `guarantor`, `ledgerId` or `midazAccountId` inside an item.
- Each item gets a payment deadline: its due date plus the days set for the provider at `/v1/admin/providers/{provider_type}/payment-deadline`, or the provider's default. It shows in `paymentDeadline` on each item and on the item's boleto.
- An item whose fine or interest would start after its deadline is refused as an item problem. Days set above the provider's maximum are a `PBP-0006` on `paymentDeadline` of every item, though no item sends that member. Both refuse the batch with `422 PBP-0123`.
- One item problem refuses the whole batch. Every problem comes in `itemErrors`, with the position and field.
- The body limit is 256 KiB.
- A retry under the same `Idempotency-Key` and body issues nothing: it returns the stored answer or the batch the key names.
- The key is bound to the organization. While the stored answer lives, the same key under another organization is `422 PBP-0013`. After it expires, the same key under another organization creates a new batch.
- After a refusal for a different body, organization or a fully failed batch, send under a new key.
- Refusals before anything is recorded come in this order: auth, `PBP-0012`, `PBP-0010`, `PBP-0001`, `PBP-0025`, `PBP-0026`, `PBP-0122`, `PBP-0005`, `PBP-0116`, `PBP-0117`, `PBP-0123`, `PBP-0017`.
- When the provider settles through this service (today BTG), incomplete accounting routes refuse the batch before anything is recorded. Check them with `GET /v1/admin/accounting-routes/preflight`.

**Planned changes**

- `PBP-0108`: today it names the boleto that holds the nosso número whatever its organization, and reading one of another organization returns `404`. It will name the holder only when it belongs to the `X-Organization-Id` organization.



## OpenAPI

````yaml /es/openapi/v3-current/payments-pcr.yaml post /v1/boletos/batches
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/boletos/batches:
    post:
      tags:
        - Boletos
      summary: Issue a batch of boletos
      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>


        Issues 1 to 25 `TRADITIONAL` boletos in one request, one per item. All
        items use one collection account (`midazAccountId`) and one ledger
        (`ledgerId`) of the `X-Organization-Id` organization.


        <Info>**Providers:** BTG.</Info>


        **How it works**


        - The response is `202` with the batch and the status of each item. No
        item has a barcode yet.

        - Each item is issued on its own, asynchronously. Follow it with `GET
        /v1/boletos/batches/{batch_id}` or with status change notifications set
        at `/v1/admin/webhooks`.

        - Do not send `guarantor`, `ledgerId` or `midazAccountId` inside an
        item.

        - Each item gets a payment deadline: its due date plus the days set for
        the provider at `/v1/admin/providers/{provider_type}/payment-deadline`,
        or the provider's default. It shows in `paymentDeadline` on each item
        and on the item's boleto.

        - An item whose fine or interest would start after its deadline is
        refused as an item problem. Days set above the provider's maximum are a
        `PBP-0006` on `paymentDeadline` of every item, though no item sends that
        member. Both refuse the batch with `422 PBP-0123`.

        - One item problem refuses the whole batch. Every problem comes in
        `itemErrors`, with the position and field.

        - The body limit is 256 KiB.

        - A retry under the same `Idempotency-Key` and body issues nothing: it
        returns the stored answer or the batch the key names.

        - The key is bound to the organization. While the stored answer lives,
        the same key under another organization is `422 PBP-0013`. After it
        expires, the same key under another organization creates a new batch.

        - After a refusal for a different body, organization or a fully failed
        batch, send under a new key.

        - Refusals before anything is recorded come in this order: auth,
        `PBP-0012`, `PBP-0010`, `PBP-0001`, `PBP-0025`, `PBP-0026`, `PBP-0122`,
        `PBP-0005`, `PBP-0116`, `PBP-0117`, `PBP-0123`, `PBP-0017`.

        - When the provider settles through this service (today BTG), incomplete
        accounting routes refuse the batch before anything is recorded. Check
        them with `GET /v1/admin/accounting-routes/preflight`.


        **Planned changes**


        - `PBP-0108`: today it names the boleto that holds the nosso número
        whatever its organization, and reading one of another organization
        returns `404`. It will name the holder only when it belongs to the
        `X-Organization-Id` organization.
      operationId: createBoletoBatch
      parameters:
        - description: >-
            Midaz organization the account and the ledger entry live under.
            Required: a request without it, or with a value that is not a
            canonical UUID, is refused with 400 PBP-0025.
          in: header
          name: X-Organization-Id
          schema:
            description: >-
              Midaz organization the account and the ledger entry live under.
              Required: a request without it, or with a value that is not a
              canonical UUID, is refused with 400 PBP-0025.
            type: string
        - description: >-
            Client-supplied idempotency key, a UUID. Required: a request without
            it, with a value that is not a UUID, or with the nil UUID
            (00000000-0000-0000-0000-000000000000) is refused with 400 PBP-0012.
          in: header
          name: Idempotency-Key
          required: true
          schema:
            description: >-
              Client-supplied idempotency key, a UUID. Required: a request
              without it, with a value that is not a UUID, or with the nil UUID
              (00000000-0000-0000-0000-000000000000) is refused with 400
              PBP-0012.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBoletoBatchRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BoletoBatchResponse'
          description: >-
            Accepted. The batch is recorded and its items are sent for issuance.
            Each item has its position, its boleto and its status. An item can
            be recorded `FAILED` with `PBP-0108` when its `ourNumber` is already
            in use. Do not resend the batch under a new `Idempotency-Key`.


            - Planned: `PBP-0108` names the holder boleto only when it belongs
            to the same organization.
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0001:
                  summary: 'PBP-0001: Request does not match the schema'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0001
                    title: Bad Request
                    status: 400
                    detail: validation failed
                    code: PBP-0001
                    errors:
                      - message: unexpected property
                        location: body.items[0].guarantor
                PBP-0012:
                  summary: 'PBP-0012: Idempotency-Key missing'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0012
                    title: Bad Request
                    status: 400
                    detail: Idempotency-Key header is required and must be a UUID
                    code: PBP-0012
                PBP-0025:
                  summary: 'PBP-0025: Organization header missing'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0025
                    title: Bad Request
                    status: 400
                    detail: X-Organization-Id header is required and must be a UUID
                    code: PBP-0025
                PBP-0026:
                  summary: 'PBP-0026: Ledger missing or invalid'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0026
                    title: Bad Request
                    status: 400
                    detail: ledgerId is required and must be a UUID
                    code: PBP-0026
                PBP-0116:
                  summary: 'PBP-0116: Account without a registered holder'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0116
                    title: FINAL_BENEFICIARY_DATA_MISSING
                    status: 400
                    detail: >-
                      The account this boleto would be issued against has no
                      registered owner on file, so the boleto's final
                      beneficiary cannot be established. Register the account's
                      owner, or use an account that has one.
                    code: PBP-0116
          description: >-
            Bad Request.


            - `PBP-0001`: the body does not match the schema, for example
            `items` missing, an item without `type`, or `guarantor`, `ledgerId`
            or `midazAccountId` inside an item. Also a blank `midazAccountId`.

            - `PBP-0012`: `Idempotency-Key` is missing or is not a UUID.

            - `PBP-0025`: `X-Organization-Id` is missing or is not a UUID.

            - `PBP-0026`: `ledgerId` is missing or is not a UUID.

            - `PBP-0116`: the account has no registered holder, or the
            registration is incomplete. Complete the holder's registration.


            See the [error
            list](/es/reference/interfaces/payments-btg/payments-error-list) for
            every code.
        '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: Account not found'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0005
                    title: Not Found
                    status: 404
                    detail: account not found
                    code: PBP-0005
          description: >-
            Not Found.


            - `PBP-0005`: the account does not exist, or is not under the
            organization and the ledger.
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0007:
                  summary: 'PBP-0007: Same key still running'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0007
                    title: Conflict
                    status: 409
                    detail: >-
                      a request with this Idempotency-Key is still being
                      processed
                    code: PBP-0007
          description: >-
            Conflict.


            - `PBP-0007`: an earlier request under the same `Idempotency-Key` is
            still running. Retry under the same key after a few seconds. Do not
            switch keys: the earlier request can still take effect. This code
            lasts at most five minutes after the earlier request arrived. After
            that, the same key returns the earlier answer, `500 PBP-0002` when
            it cannot be replayed, or runs the request when no answer was kept.
        '413':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0010:
                  summary: 'PBP-0010: Body too large'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0010
                    title: Request Entity Too Large
                    status: 413
                    detail: request body too large
                    code: PBP-0010
          description: |-
            Payload Too Large.

            - `PBP-0010`: the body is larger than the size limit.
        '422':
          content:
            application/problem+json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/BatchSizeProblem'
                  - $ref: '#/components/schemas/BatchInvalidItemsProblem'
                  - $ref: '#/components/schemas/Detail'
              examples:
                PBP-0122:
                  summary: 'PBP-0122: Batch size out of range'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0122
                    title: BATCH_SIZE_OUT_OF_RANGE
                    status: 422
                    detail: >-
                      a batch carries from 1 to 25 boletos; this request carries
                      26
                    code: PBP-0122
                    maxItems: 25
                    receivedItems: 26
                PBP-0123:
                  summary: 'PBP-0123: Invalid items'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0123
                    title: BATCH_INVALID_ITEMS
                    status: 422
                    detail: one or more items are invalid; nothing was issued
                    code: PBP-0123
                    itemErrors:
                      - position: 1
                        field: type
                        code: PBP-0006
                        message: type HYBRID is not supported for batch issuance
                PBP-0013:
                  summary: 'PBP-0013: Key used for another request'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0013
                    title: Idempotency Key Conflict
                    status: 422
                    detail: this Idempotency-Key was used for a different request
                    code: PBP-0013
                PBP-0017:
                  summary: 'PBP-0017: Provider not set up'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0017
                    title: PROVIDER_SETUP_INCOMPLETE
                    status: 422
                    detail: >-
                      the provider account for this tenant is not fully
                      configured
                    code: PBP-0017
                PBP-0117:
                  summary: 'PBP-0117: Holder cannot be final beneficiary'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0117
                    title: FINAL_BENEFICIARY_DATA_INVALID
                    status: 422
                    detail: >-
                      The registered owner of the account this boleto would be
                      issued against is recorded in a way that cannot be used as
                      the boleto's final beneficiary. Correct the account
                      owner's registration; resubmitting this request unchanged
                      will not resolve it.
                    code: PBP-0117
                PBP-0128:
                  summary: 'PBP-0128: Accounting routes incomplete (BTG)'
                  value:
                    title: ACCOUNTING_ROUTES_NOT_READY
                    status: 422
                    code: PBP-0128
                    detail: >-
                      boleto issuance refused: this organization's Payments
                      accounting routes cannot carry the boleto's settlement
                      credit (accounting_routes_incomplete); read GET
                      /v1/admin/accounting-routes/preflight for this
                      organization and ledger
                    type: https://errors.lerian.studio/v1/PBP-0128
                PBP-0700:
                  summary: 'PBP-0700: No provider route'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0700
                    title: PROVIDER_ROUTE_NOT_CONFIGURED
                    status: 422
                    detail: no provider is configured for BOLETO_ISSUANCE
                    code: PBP-0700
                PBP-0701:
                  summary: 'PBP-0701: Capability not supported'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0701
                    title: PROVIDER_CAPABILITY_NOT_SUPPORTED
                    status: 422
                    detail: the provider does not support this capability
                    code: PBP-0701
                    capability: BOLETO_BATCH
          description: >-
            Unprocessable Entity.


            - `PBP-0122`: the batch has fewer than 1 or more than 25 items. See
            `maxItems` and `receivedItems`.

            - `PBP-0123`: one or more items break a rule. Nothing is issued.
            `itemErrors` lists every problem with its position, field and code,
            for example `PBP-0006` for a term or a fine or interest start after
            the deadline.

            - `PBP-0013`: the `Idempotency-Key` was used with a different body
            or another organization, or every item of its batch failed. Send
            under a new key.

            - `PBP-0017`: an item has `ourNumber` and this instance cannot
            reserve it.

            - `PBP-0117`: the account holder cannot be a final beneficiary.
            Correct the holder's registration.

            - `PBP-0128`: the organization's accounting routes are incomplete,
            ambiguous or malformed, or absent on a ledger that validates
            accounting routes. The `detail` names the reason. Run `GET
            /v1/admin/accounting-routes/preflight`.

            - `PBP-0700`: the tenant has no provider for `BOLETO_ISSUANCE`.

            - `PBP-0701`: the provider does not declare a capability the batch
            needs. Nothing is written and the provider is not called.
            `capability` is one of `OPERATION_BOLETO_ISSUANCE`, `BOLETO_BATCH`,
            `CLIENT_SUPPLIED_OUR_NUMBER`, `BOLETO_DOCUMENT_NUMBER`,
            `BOLETO_CHARGE_START_DATE` or `BOLETO_INSTRUCTIONS`.


            See the [error
            list](/es/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, or the stored answer of this
            key cannot be replayed. Contact support. Do not resend under a new
            key.
        '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
                PBP-0301:
                  summary: 'PBP-0301: Ledger unavailable'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0301
                    title: Ledger Unavailable
                    status: 503
                    detail: internal error
                    code: PBP-0301
                PBP-0704:
                  summary: 'PBP-0704: Provider not installed'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0704
                    title: PROVIDER_NOT_INSTALLED
                    status: 503
                    detail: internal error
                    code: PBP-0704
          description: >-
            Service Unavailable. Nothing was issued. Retry under the same
            `Idempotency-Key`. The `detail` is a fixed text.


            - `PBP-0008`: a dependency (authentication or storage) is
            unavailable.

            - `PBP-0301`: the accounting routes or the ledger settings could not
            be read.

            - `PBP-0704`: the provider is not installed or not connected for the
            tenant.
      security:
        - BearerAuth: []
components:
  schemas:
    CreateBoletoBatchRequest:
      additionalProperties: false
      properties:
        items:
          description: >-
            Boletos of the batch, from 1 to 25, in the order the client wants to
            see them. The position of each item is its index in this list, from
            0: the position of the response and the index of body.items[<i>] in
            a refusal. A list outside 1 to 25 items, the empty list included,
            refuses the whole batch with 422 PBP-0122, which carries the limit
            and the number of items received; the batch is never split.
          items:
            $ref: '#/components/schemas/CreateBoletoBatchItemRequest'
          type: array
        ledgerId:
          description: >-
            Midaz ledger the account lives in and the entry is posted to.
            Required: absent, blank or not a canonical UUID is refused with 400
            PBP-0026.
          type: string
        midazAccountId:
          description: >-
            Midaz account every item of the batch settles into. Its holder is
            the final beneficiary of every item. It must belong to the
            organization and the ledger, or the request is answered 404. Checked
            once per batch.
          type: string
      required:
        - midazAccountId
        - items
      type: object
    BoletoBatchResponse:
      additionalProperties: false
      properties:
        batchId:
          description: Batch identifier.
          examples:
            - 0192a3b4-c5d6-7e8f-9a0b-1c2d3e4f5a6b
          format: uuid
          type: string
        closed:
          description: >-
            Whether every item is SETTLED, CANCELED, INACTIVATED, REVERSED or
            FAILED: nothing else will happen to the batch, payment included.
            Always present. It moves back to false when a cancellation is
            refused and the item returns to CREATED. True implies finished.
          type: boolean
        counts:
          $ref: '#/components/schemas/BoletoBatchCounts'
        createdAt:
          description: When the batch was created, RFC 3339 in UTC.
          examples:
            - '2026-10-14T19:34:00Z'
          format: date-time
          type: string
        finished:
          description: >-
            Whether no item is PENDING: the issuance of the batch is over.
            Always present. It never moves back to false; an overdue item keeps
            it false.
          type: boolean
        items:
          description: >-
            Every item, in ascending position. Never paginated: a batch holds at
            most 25 items.
          items:
            $ref: '#/components/schemas/BoletoBatchItemResponse'
          type:
            - array
            - 'null'
        ledgerId:
          description: Ledger of the batch and of each item.
          examples:
            - 7c1e5b9a-3d2f-4a6b-8e0c-1f2a3b4c5d6e
          format: uuid
          type: string
        midazAccountId:
          description: Collection account of the batch and of each item.
          examples:
            - 3f9a2c1e-5b7d-4e8f-9a0b-1c2d3e4f5a6b
          type: string
        organizationId:
          description: >-
            Organization the batch was recorded with: always the organization of
            the X-Organization-Id header.
          examples:
            - 0f9d6c2a-1b3e-4f5a-8c7d-6e5f4a3b2c1d
          format: uuid
          type: string
        status:
          $ref: '#/components/schemas/BoletoBatchOutcome'
      required:
        - items
        - batchId
        - organizationId
        - ledgerId
        - midazAccountId
        - status
        - closed
        - finished
        - counts
        - createdAt
      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
    BatchSizeProblem:
      allOf:
        - $ref: '#/components/schemas/Detail'
        - properties:
            code:
              enum:
                - PBP-0122
              type: string
            maxItems:
              description: The most items a batch holds.
              enum:
                - 25
              format: int64
              type: integer
            receivedItems:
              description: The number of items sent.
              examples:
                - 26
              format: int64
              minimum: 0
              type: integer
          required:
            - code
            - maxItems
            - receivedItems
          type: object
      description: '422 PBP-0122: the number of items is outside 1 to 25.'
    BatchInvalidItemsProblem:
      allOf:
        - $ref: '#/components/schemas/Detail'
        - properties:
            code:
              enum:
                - PBP-0123
              type: string
            itemErrors:
              description: >-
                The problems of the items, by ascending position and, within an
                item, in the order of its members.
              items:
                $ref: '#/components/schemas/BatchItemError'
              minItems: 1
              type: array
          required:
            - code
            - itemErrors
          type: object
      description: >-
        422 PBP-0123: one or more items are invalid. The whole batch is refused,
        and nothing is recorded or sent for issuance. Every problem of every
        item comes at once, in two forms: errors[], the service's form for
        generic clients, with location body.items[<position>].<member> and
        message; and itemErrors[], an extension member with the same problems,
        each with position, field and the item's code, to mark the member and
        translate the problem without reading the message. A refusal that holds
        for the whole batch (account, ledger, holder registration) prevails and
        comes under its own code, without the list.
    CreateBoletoBatchItemRequest:
      additionalProperties: false
      properties:
        amount:
          description: >-
            Amount as a decimal string, at most two decimal places, greater than
            zero.
          examples:
            - '150.00'
          maxLength: 32
          type: string
        discount:
          $ref: '#/components/schemas/DiscountRequest'
        documentNumber:
          description: >-
            Payee's own reference for the charge (seu numero), such as an
            invoice number: 1 to 15 printable ASCII characters (space through
            tilde: letters A-Z and a-z without accents, digits, space and
            punctuation), stored as given. Optional item by item; the same
            member and rule as on POST /v1/boletos. A value that is empty,
            longer than 15 characters or that carries any other character (an
            accented letter, a control character or any character outside ASCII)
            is refused with 400 PBP-0001; a value made only of spaces, or that
            carries markup, is an item problem PBP-0001, reported in 422
            PBP-0123 with every other problem of the batch. When the provider
            that serves the issuance does not register it, the whole batch is
            refused with 422 PBP-0701, naming BOLETO_DOCUMENT_NUMBER in the
            capability member; nothing is recorded and the provider is not
            called.
          examples:
            - NF-2030/0001
          maxLength: 15
          minLength: 1
          pattern: ^[ -~]{1,15}$
          type: string
        dueDate:
          description: Due date, YYYY-MM-DD.
          examples:
            - '2030-01-15'
          format: date
          type: string
        fine:
          $ref: '#/components/schemas/FineRequest'
        instructions:
          description: >-
            Instructions printed on the boleto, free text. Optional; the same
            member and rule as on POST /v1/boletos. When the provider that
            serves the issuance does not register them, non-empty instructions
            on any item refuse the whole batch with 422 PBP-0701, naming
            BOLETO_INSTRUCTIONS in the capability member; nothing is recorded
            and the provider is not called.
          examples:
            - Mensalidade de janeiro
          type: string
        interest:
          $ref: '#/components/schemas/InterestRequest'
        ourNumber:
          description: >-
            Bank-side identification of the boleto (nosso numero), chosen by the
            payee. Optional item by item: when absent, the number is assigned at
            issuance. Same form as on POST /v1/boletos: surrounding spaces are
            removed, a hyphen is accepted only when followed by exactly one
            digit, which is discarded, and leading zeros do not make a different
            number. Two items of the batch with the same number are an item
            problem PBP-0125 on both, and the batch is refused. A number already
            held by an active boleto of the same collection account does not
            refuse the batch: that item alone ends FAILED with errorCode
            PBP-0108, and the other items go on.
          examples:
            - '00000000152'
          type: string
        payer:
          $ref: '#/components/schemas/PayerRequest'
        type:
          description: >-
            Boleto type. Only TRADITIONAL is issued in a batch: HYBRID, QR_CODE
            or any other value is an item problem PBP-0006, reported in 422
            PBP-0123 with every other problem of the batch.
          examples:
            - TRADITIONAL
          type: string
      required:
        - type
        - payer
        - amount
        - dueDate
      type: object
    BoletoBatchCounts:
      additionalProperties: false
      properties:
        canceled:
          description: Items CANCELED.
          examples:
            - 1
          format: int64
          minimum: 0
          type: integer
        failed:
          description: Items FAILED.
          examples:
            - 1
          format: int64
          minimum: 0
          type: integer
        inactivated:
          description: 'Items INACTIVATED: written off.'
          examples:
            - 0
          format: int64
          minimum: 0
          type: integer
        overdue:
          description: >-
            Items still processing past the service's deadline (overdue: true).
            Never more than processing.
          examples:
            - 0
          format: int64
          minimum: 0
          type: integer
        processing:
          description: Items PENDING, still being issued.
          examples:
            - 1
          format: int64
          minimum: 0
          type: integer
        registered:
          description: 'Items CREATED: registered and available for payment.'
          examples:
            - 2
          format: int64
          minimum: 0
          type: integer
        requested:
          description: 'Number of items requested: the size of the batch.'
          examples:
            - 5
          format: int64
          maximum: 25
          minimum: 1
          type: integer
        reversed:
          description: >-
            Items REVERSED: the payment was returned to the payer; the boleto
            will not be paid.
          examples:
            - 0
          format: int64
          minimum: 0
          type: integer
        settled:
          description: 'Items SETTLED: paid.'
          examples:
            - 0
          format: int64
          minimum: 0
          type: integer
      required:
        - requested
        - processing
        - registered
        - settled
        - canceled
        - inactivated
        - reversed
        - failed
        - overdue
      type: object
    BoletoBatchItemResponse:
      additionalProperties: false
      properties:
        amount:
          description: Requested amount, as a decimal string with two decimal places.
          examples:
            - '150.00'
          type: string
        boletoId:
          description: >-
            Identifier of the boleto this item produced: the id GET
            /v1/boletos/{id}, the PDF and the boleto cancellation take.
          format: uuid
          type: string
        cancelable:
          description: >-
            Same meaning as cancelable on GET /v1/boletos/{id}: true only for a
            CREATED item that carries a providerId. Always present.
          type: boolean
        discount:
          $ref: '#/components/schemas/DiscountResponse'
        dueDate:
          description: Requested due date.
          examples:
            - '2030-01-15'
          format: date
          type: string
        errorCode:
          description: >-
            Product code of the failure. Present only with status FAILED. The
            list is open; today PBP-0108 when the requested ourNumber is already
            in use, and PBP-0014 when the item was refused.
          examples:
            - PBP-0108
          pattern: ^PBP-[0-9]{4}$
          type: string
        errorMessage:
          description: >-
            Readable reason of the failure, present only with status FAILED.
            Written by this service; after provider reported ERROR it may carry,
            in parentheses, the error code the issuing bank sent. Translate it
            by errorCode.
          examples:
            - no title was issued for this emission
          maxLength: 500
          type: string
        fine:
          $ref: '#/components/schemas/FineResponse'
        instructions:
          description: >-
            Instructions requested for the item. Absent when the item carried
            none.
          type: string
        interest:
          $ref: '#/components/schemas/InterestResponse'
        ourNumber:
          description: >-
            Bank-side identification of the item's boleto (nosso numero), read
            from the barcode with leading zeros, as GET /v1/boletos/{id} answers
            it. Absent while the provider has not produced the boleto.
          examples:
            - '00000000152'
          type: string
        ourNumberDigit:
          description: >-
            Check digit of ourNumber, computed by the bank, as GET
            /v1/boletos/{id} answers it. Absent whenever the provider did not
            return it.
          examples:
            - '3'
          type: string
        ourNumberHolderBoletoId:
          description: >-
            Boleto that held the requested ourNumber when the item collided with
            it on creation (errorCode PBP-0108). It may be an earlier issuance
            of the same charge, so read that boleto before requesting another
            number. Absent in every other case, and when the boleto holding the
            number is a hybrid boleto, which is not available on this service:
            errorMessage then names no boleto. When that hybrid has no answer
            from the provider yet, errorMessage does not ask for another number,
            since that emission can still become a live boleto; when it has one,
            errorMessage says it may be an earlier issuance of the same charge
            whose answer was lost and stays payable, so the charge must not be
            issued again, and asks for another number only for a different
            charge.
          type: string
        overdue:
          description: >-
            Whether the item is PENDING past the service's deadline. Derived on
            every read. It is not a failure: the item is still being processed.
            Always false outside PENDING.
          type: boolean
        payer:
          $ref: '#/components/schemas/PayerResponse'
        paymentDeadline:
          description: >-
            Last date the item's boleto can be paid, YYYY-MM-DD, computed by the
            service: it is not a member of the batch request. Its due date plus
            the days the tenant set for the batch's provider
            (/v1/admin/providers/{provider_type}/payment-deadline), or plus the
            provider's default when none is set, recorded when the batch was
            created. A later change of the setting does not move it. Absent on
            an item recorded without one: a batch created before the payment
            deadline was recorded, or on a provider that registers none.
          examples:
            - '2030-02-14'
          format: date
          type: string
        position:
          description: >-
            Position of the item in the request, from 0: its index in the
            request's items and in body.items[<i>] of a refusal. Add 1 to show
            it as item n.
          examples:
            - 0
          format: int64
          maximum: 24
          minimum: 0
          type: integer
        providerId:
          description: >-
            Identifier the payment provider assigned to the item's boleto.
            Present only once the item is bound to a live boleto at the
            provider; absent while it is queued or being sent, and on FAILED.
          type: string
        requestedOurNumber:
          description: >-
            ourNumber requested for the item, in canonical form: no hyphen and
            no check digit. Absent when the item requested none, and on an item
            that failed with PBP-0108 on creation. Distinct from ourNumber,
            which reports the boleto.
          examples:
            - '00000000152'
          type: string
        status:
          description: >-
            Status of the item's boleto, the same GET /v1/boletos/{id} answers.
            PENDING covers an item queued, sent or still being processed;
            CREATED is a registered item with barcode and digitable line. An
            item becomes FAILED only once it is certain that no boleto was
            registered for it. REVERSED: the payment was returned to the payer;
            the boleto will not be paid.
          enum:
            - PENDING
            - CREATED
            - SETTLED
            - CANCELED
            - INACTIVATED
            - FAILED
            - REVERSED
          examples:
            - CREATED
          type: string
      required:
        - position
        - boletoId
        - status
        - overdue
        - cancelable
        - amount
        - dueDate
        - payer
      type: object
    BoletoBatchOutcome:
      description: >-
        Issuance outcome of the batch, derived from its items on every read.
        CREATED: some item is still PENDING. COMPLETED: no item is PENDING and
        none is FAILED. PARTIAL_FAILURE: no item is PENDING and some, not all,
        are FAILED; those carry errorCode and errorMessage. FAILED: every item
        is FAILED. Only issuance moves it: payment, cancellation and write-off
        do not, and it never moves back to CREATED.
      enum:
        - CREATED
        - COMPLETED
        - PARTIAL_FAILURE
        - FAILED
      type: string
    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
    BatchItemError:
      additionalProperties: false
      properties:
        code:
          description: >-
            Code of the item's problem. An open list; today: PBP-0001 (form,
            size, presence, document, amount, due date, address, charge start
            date, documentNumber), PBP-0006 (type not supported, HYBRID
            included, with the reason in message; charges), PBP-0119 (payer is
            the final beneficiary) and PBP-0125 (ourNumber repeated in the
            batch). It is the code the single boleto or the installment series
            gives the same condition, except the last, which is the batch's own.
          examples:
            - PBP-0125
          pattern: ^PBP-[0-9]{4}$
          type: string
        field:
          description: >-
            Path of the member inside the item, in dot notation
            (payer.address.zipCode, ourNumber, discount.limitDate, fine).
            paymentDeadline names the deadline the service computed for the
            item, which the item does not carry.
          examples:
            - payer.address.zipCode
          type: string
        message:
          description: >-
            Human-readable message, in English like every message of the
            service. A client translates by code, never by this text.
          examples:
            - type HYBRID is not supported for batch issuance
          type: string
        position:
          description: Position of the item in the request, from 0.
          examples:
            - 1
          format: int64
          maximum: 24
          minimum: 0
          type: integer
      required:
        - position
        - field
        - code
        - message
      type: object
    DiscountRequest:
      additionalProperties: false
      properties:
        amount:
          description: >-
            Decimal string greater than zero.


            - `FIXED`: BRL, up to 2 decimal places, below the boleto amount
            (each installment's own amount on installments).

            - `PERCENTAGE`: percent (`2.5` means 2.5%), below 100, up to 6
            decimal places. Lerian (PCR): up to 5.

            - More places, or at or above the ceiling: 422 `PBP-0006` naming it.
          maxLength: 32
          type: string
        limitDate:
          description: >-
            Last day the discount applies, `YYYY-MM-DD`. On or after the
            issuance day (Brazilian calendar) and before the due date: before
            `dueDate` on a single boleto, before `firstDueDate` on installments.
            Outside that window: 422 `PBP-0006`.
          examples:
            - '2029-12-31'
          format: date
          type: string
        type:
          description: >-
            `FIXED` (BRL, up to 2 decimal places) or `PERCENTAGE` (percent of
            the face value, up to 6 decimal places, 5 on Lerian (PCR)). Granted
            when the boleto is paid on or before `limitDate`. Required when a
            discount is sent, together with `amount` and `limitDate`: absent,
            empty or unlisted is refused with 422 `PBP-0006`.
          type: string
      required:
        - amount
        - limitDate
      type: object
    FineRequest:
      additionalProperties: false
      properties:
        amount:
          description: >-
            Decimal string greater than zero.


            - `FIXED`: BRL, up to 2 decimal places.

            - `PERCENTAGE`: percent (`2.5` means 2.5%), up to 6 decimal places.

            - More places: 422 `PBP-0006` naming `fine.amount`.

            - Lerian (PCR): `PERCENTAGE` up to 5 decimal places and at most 100;
            `FIXED` below the boleto amount. Otherwise 422 `PBP-0006` naming the
            member, before anything is recorded.
          maxLength: 32
          type: string
        startDate:
          description: >-
            First day the fine is charged, `YYYY-MM-DD`. Optional. Without it,
            the day after the due date.


            - After the due date and on or before the payment deadline.
            Otherwise 422 `PBP-0006` naming `fine.startDate` (in a batch, an
            item problem `PBP-0006`).

            - Not a calendar date, or `0001-01-01` or earlier: 400 `PBP-0001`
            (in `POST /v1/boletos/batches`, an item problem `PBP-0001` reported
            in 422 `PBP-0123`).

            - Lerian (PCR), without `paymentDeadline`: the deadline is the due
            date plus the agreement's `paymentDeadlineDays`, and a later day is
            refused with 422 `PBP-0006`.

            - `POST /v1/boletos/installments`: the day for the first
            installment. Installment k (from 1) takes that day plus (k - 1)
            times `intervalDays`.

            - A provider that does not register it refuses it with 422
            `PBP-0701` and `capability` `BOLETO_CHARGE_START_DATE`. Nothing is
            recorded.
          examples:
            - '2030-01-16'
          format: date
          type: string
        type:
          description: >-
            `FIXED` (BRL, up to 2 decimal places) or `PERCENTAGE` (percent of
            the face value, up to 6 decimal places, 5 on Lerian (PCR)). Charged
            once, when the boleto is paid after the due date. Required when a
            fine is sent: absent, empty or unlisted is refused with 422
            `PBP-0006`.
          type: string
      required:
        - amount
      type: object
    InterestRequest:
      additionalProperties: false
      properties:
        amount:
          description: >-
            Decimal string greater than zero.


            - `DAILY_FIXED`: BRL per calendar day, up to 2 decimal places.

            - `DAILY_PERCENTAGE` and `MONTHLY_PERCENTAGE`: percent (`1` means
            1%), up to 6 decimal places.

            - Refused amounts: 422 `PBP-0006` naming `interest.amount`.

            - Lerian (PCR): percentages up to 5 decimal places. A
            `DAILY_PERCENTAGE` is registered as 30 times its value per month,
            which must have up to 2 decimal places: `0.001` is 0.03 a month;
            `0.0333` (0.999 a month) is refused. `DAILY_FIXED` below
            `1000000000000`; `MONTHLY_PERCENTAGE`, or 30 times a
            `DAILY_PERCENTAGE`, below `1000000000`.
          maxLength: 32
          type: string
        startDate:
          description: >-
            First day interest accrues, `YYYY-MM-DD`. Optional. Without it, the
            day after the due date.


            - After the due date and on or before the payment deadline.
            Otherwise 422 `PBP-0006` naming `interest.startDate` (in a batch, an
            item problem `PBP-0006`).

            - Not a calendar date, or `0001-01-01` or earlier: 400 `PBP-0001`
            (in `POST /v1/boletos/batches`, an item problem `PBP-0001` reported
            in 422 `PBP-0123`).

            - Lerian (PCR), without `paymentDeadline`: the deadline is the due
            date plus the agreement's `paymentDeadlineDays`, and a later day is
            refused with 422 `PBP-0006`.

            - `POST /v1/boletos/installments`: the day for the first
            installment. Installment k (from 1) takes that day plus (k - 1)
            times `intervalDays`.

            - A provider that does not register it refuses it with 422
            `PBP-0701` and `capability` `BOLETO_CHARGE_START_DATE`. Nothing is
            recorded.
          examples:
            - '2030-01-16'
          format: date
          type: string
        type:
          description: >-
            Accrued for each calendar day the boleto is paid late. Required when
            interest is sent: absent, empty or unlisted is refused with 422
            `PBP-0006`.


            - `DAILY_FIXED`: BRL per day late, up to 2 decimal places.

            - `DAILY_PERCENTAGE`: percent of the face value per day late, up to
            6 decimal places (5 on Lerian (PCR), where 30 times it must have up
            to 2).

            - `MONTHLY_PERCENTAGE`: percent of the face value per month, accrued
            per calendar day over a 30-day month, up to 6 decimal places (5 on
            Lerian (PCR)).
          type: string
      required:
        - amount
      type: object
    PayerRequest:
      additionalProperties: false
      properties:
        address:
          $ref: '#/components/schemas/AddressRequest'
        document:
          description: Payer CPF or CNPJ, digits only.
          type: string
        name:
          description: Payer full name.
          type: string
      required:
        - document
        - name
      type: object
    DiscountResponse:
      additionalProperties: false
      properties:
        amount:
          type: string
        limitDate:
          type: string
        type:
          type: string
      required:
        - type
        - amount
        - limitDate
      type: object
    FineResponse:
      additionalProperties: false
      properties:
        amount:
          type: string
        type:
          type: string
      required:
        - type
        - amount
      type: object
    InterestResponse:
      additionalProperties: false
      properties:
        amount:
          type: string
        type:
          type: string
      required:
        - type
        - amount
      type: object
    PayerResponse:
      additionalProperties: false
      properties:
        address:
          $ref: '#/components/schemas/AddressResponse'
        document:
          type: string
        name:
          type: string
      required:
        - name
        - document
      type: object
    AddressRequest:
      additionalProperties: false
      properties:
        city:
          type: string
        complement:
          type: string
        neighborhood:
          type: string
        number:
          type: string
        state:
          type: string
        street:
          type: string
        zipCode:
          type: string
      type: object
    AddressResponse:
      additionalProperties: false
      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:
      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.