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

# List the remittances

> Lists the remittance receipts of the organization in `X-Organization-Id`, newest first, without their lines.

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

<Warning>**Under development.** This endpoint can change before it is released.</Warning>

**How it works**

- The order is `receivedAt`, then `id`.
- A page holds up to `limit` receipts. `nextCursor` fetches the next page and `prevCursor` the previous one. Each is null when there is no such page.
- A cursor works only for the query that returned it, filters included. Any other cursor is refused with `PBP-0001`.
- `receivedFrom` and `receivedTo` take a date (`YYYY-MM-DD`, a whole UTC day) or an RFC 3339 date-time with offset (an exact instant). Encode a positive offset as `%2B`.
- Dry runs are never stored and never listed.



## OpenAPI

````yaml /en/openapi/v3-current/payments-pcr.yaml get /v1/cnab/remittances
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/cnab/remittances:
    get:
      tags:
        - CNAB Remittances
      summary: List the remittances
      description: >-
        Lists the remittance receipts of the organization in
        `X-Organization-Id`, newest first, without their lines.


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


        <Warning>**Under development.** This endpoint can change before it is
        released.</Warning>


        **How it works**


        - The order is `receivedAt`, then `id`.

        - A page holds up to `limit` receipts. `nextCursor` fetches the next
        page and `prevCursor` the previous one. Each is null when there is no
        such page.

        - A cursor works only for the query that returned it, filters included.
        Any other cursor is refused with `PBP-0001`.

        - `receivedFrom` and `receivedTo` take a date (`YYYY-MM-DD`, a whole UTC
        day) or an RFC 3339 date-time with offset (an exact instant). Encode a
        positive offset as `%2B`.

        - Dry runs are never stored and never listed.
      operationId: listCnabRemittances
      parameters:
        - description: >-
            Midaz organization the remittances belong to. 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 remittances belong to. Required: a request
              without it, or with a value that is not a canonical UUID, is
              refused with 400 PBP-0025.
            type: string
        - description: >-
            Only the remittances of this CNAB agreement; one of another
            organization lists nothing.
          explode: false
          in: query
          name: agreementId
          schema:
            description: >-
              Only the remittances of this CNAB agreement; one of another
              organization lists nothing.
            format: uuid
            type: string
        - description: Only the remittances in this status.
          explode: false
          in: query
          name: status
          schema:
            description: Only the remittances in this status.
            enum:
              - VALIDATED
              - PROCESSING
              - COMPLETED
            type: string
        - description: >-
            Lower bound of receivedAt, inclusive. A calendar date (YYYY-MM-DD)
            is a UTC day and starts at its first instant; an RFC 3339 date-time
            with offset is used as the exact instant. A positive offset must be
            percent-encoded (%2B).
          explode: false
          in: query
          name: receivedFrom
          schema:
            description: >-
              Lower bound of receivedAt, inclusive. A calendar date (YYYY-MM-DD)
              is a UTC day and starts at its first instant; an RFC 3339
              date-time with offset is used as the exact instant. A positive
              offset must be percent-encoded (%2B).
            examples:
              - '2026-11-01'
            pattern: >-
              ^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?(Z|[+-][0-9]{2}:[0-9]{2}))?$
            x-pattern-description: a YYYY-MM-DD date or an RFC 3339 date-time with offset
            type: string
        - description: >-
            Upper bound of receivedAt, inclusive. A calendar date (YYYY-MM-DD)
            is a UTC day and covers it to its last instant; an RFC 3339
            date-time with offset is used as the exact instant. receivedFrom
            after receivedTo is refused with 422 PBP-0006.
          explode: false
          in: query
          name: receivedTo
          schema:
            description: >-
              Upper bound of receivedAt, inclusive. A calendar date (YYYY-MM-DD)
              is a UTC day and covers it to its last instant; an RFC 3339
              date-time with offset is used as the exact instant. receivedFrom
              after receivedTo is refused with 422 PBP-0006.
            examples:
              - '2026-11-30'
            pattern: >-
              ^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?(Z|[+-][0-9]{2}:[0-9]{2}))?$
            x-pattern-description: a YYYY-MM-DD date or an RFC 3339 date-time with offset
            type: string
        - description: >-
            Opaque cursor returned in nextCursor or prevCursor. Left out, the
            first page.
          explode: false
          in: query
          name: cursor
          schema:
            description: >-
              Opaque cursor returned in nextCursor or prevCursor. Left out, the
              first page.
            maxLength: 512
            type: string
        - description: Most items per page.
          explode: false
          in: query
          name: limit
          schema:
            default: 50
            description: Most items per page.
            examples:
              - 50
            format: int64
            maximum: 200
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CnabRemittanceList'
          description: OK. One page of remittance receipts.
        '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
                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
                      canonical UUID
                    code: PBP-0025
          description: >-
            Bad Request.


            - `PBP-0001`: a query parameter does not match the schema, or the
            cursor is not one this query returned to the same tenant,
            organization and filters.

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


            See the [error
            list](/en/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.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0900:
                  summary: 'PBP-0900: CNAB 240 not enabled'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0900
                    title: CNAB Not Enabled
                    status: 422
                    detail: CNAB 240 is not enabled for this tenant
                    code: PBP-0900
                    layout: CNAB_240
                PBP-0006:
                  summary: 'PBP-0006: Inverted date range'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0006
                    title: Unprocessable Entity
                    status: 422
                    detail: receivedFrom must be before or equal to receivedTo
                    code: PBP-0006
          description: >-
            Unprocessable Entity. Nothing was read or written.


            - `PBP-0900`: CNAB 240 is not enabled for the tenant. Checked before
            any other business rule. The `layout` member names the layout that
            is off (`CNAB_240`).

            - `PBP-0006`: `receivedFrom` is after `receivedTo`.


            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.

            - `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. Nothing was written. Retry the request. The
            `detail` is a fixed text.


            - `PBP-0008`: a dependency did not answer: authentication, the
            tenant's database or its CNAB switch.
      security:
        - BearerAuth: []
components:
  schemas:
    CnabRemittanceList:
      additionalProperties: false
      properties:
        items:
          description: The page's receipts, newest first.
          items:
            $ref: '#/components/schemas/CnabRemittanceReceipt'
          type: array
        limit:
          description: Most receipts the page holds.
          examples:
            - 50
          format: int64
          type: integer
        nextCursor:
          description: Cursor of the page after this one; null on the last page.
          maxLength: 512
          type:
            - string
            - 'null'
        prevCursor:
          description: Cursor of the page before this one; null on the first page.
          maxLength: 512
          type:
            - string
            - 'null'
      required:
        - items
        - limit
      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
    CnabRemittanceReceipt:
      additionalProperties: false
      properties:
        agreementId:
          description: The CNAB agreement the file header names.
          examples:
            - 019a7c1e-4b2d-7f30-9c11-2a5e8d0f4b61
          format: uuid
          type: string
        alerts:
          description: >-
            NSA_GAP: the NSA skips numbers. NSA_OUT_OF_ORDER: the NSA is below
            the last accepted. The file is processed in both cases.
          items:
            enum:
              - NSA_GAP
              - NSA_OUT_OF_ORDER
            type: string
          type: array
        completedAt:
          description: When every line ended, RFC 3339 in UTC; null before.
          format: date-time
          type:
            - string
            - 'null'
        contentSha256:
          description: >-
            SHA-256 of the normalized file (accents removed, CRLF), lowercase
            hex. Part of the remittance identity with the agreement and the NSA.
          pattern: ^[0-9a-f]{64}$
          type: string
        counts:
          $ref: '#/components/schemas/CnabLineCounts'
        expectedNsa:
          description: >-
            The NSA expected (last accepted + 1) when this one differs from it;
            null otherwise and on a DRY_RUN. 1000000 means the 6-digit range of
            G018 is exhausted: no NSA above the last one is accepted, and a
            lower NSA still free is accepted with NSA_OUT_OF_ORDER.
          format: int64
          maximum: 1000000
          minimum: 1
          type:
            - integer
            - 'null'
        fileGeneratedAt:
          description: >-
            Generation date and time of the file header (G016, G017), read as
            Brasília time and answered in UTC; null when the header has no time.
          format: date-time
          type:
            - string
            - 'null'
        fileGenerationDate:
          description: Generation date of the file header (G016), always present.
          examples:
            - '2026-11-16'
          format: date
          type: string
        id:
          description: Identifier of the remittance; null only on a DRY_RUN.
          format: uuid
          type:
            - string
            - 'null'
        lines:
          description: >-
            Only on a DRY_RUN, every title line with its outcome (id, boletoId
            and executedAt null). Absent otherwise.
          items:
            $ref: '#/components/schemas/CnabRemittanceLine'
          type: array
        notices:
          description: >-
            Fields taken as information only. MESSAGES_NOT_SENT: messages of the
            batch header, R and S are not sent to the boleto.
            ACCEPT_FLAG_INFORMATIONAL: the accept flag (25.3P) is kept but not
            sent. PROTEST_DAYS_IGNORED: protest days (37.3P) ignored with
            protest code 3 or 7.
          items:
            enum:
              - MESSAGES_NOT_SENT
              - ACCEPT_FLAG_INFORMATIONAL
              - PROTEST_DAYS_IGNORED
            type: string
          type: array
        nsa:
          description: NSA of the file header (G018).
          examples:
            - 43
          format: int64
          maximum: 999999
          minimum: 1
          type: integer
        receivedAt:
          description: When the file was received, RFC 3339 in UTC.
          format: date-time
          type: string
        recordCount:
          description: Records in the file, headers and trailers included.
          format: int64
          type: integer
        requestedBy:
          description: Subject of the token that sent the file.
          maxLength: 255
          type: string
        sizeBytes:
          description: Size of the file as sent.
          format: int64
          maximum: 4194304
          minimum: 0
          type: integer
        status:
          description: >-
            VALIDATED: stored, no line started yet. PROCESSING: lines being
            executed. COMPLETED: every line EXECUTED or REJECTED (also at once,
            when every line was rejected at validation). DRY_RUN: the answer of
            a dry run, never stored. Treat the list as open.
          enum:
            - VALIDATED
            - PROCESSING
            - COMPLETED
            - DRY_RUN
          type: string
        titleCount:
          description: >-
            Titles (P segments with their companions) in the file; one line
            each.
          format: int64
          type: integer
      required:
        - id
        - agreementId
        - nsa
        - status
        - fileGenerationDate
        - receivedAt
        - contentSha256
        - sizeBytes
        - recordCount
        - titleCount
        - counts
        - alerts
        - notices
        - requestedBy
      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
    CnabLineCounts:
      additionalProperties: false
      properties:
        executed:
          description: Lines whose request was accepted.
          format: int64
          type: integer
        inFlight:
          description: Lines being executed.
          format: int64
          type: integer
        ready:
          description: Lines to be executed.
          format: int64
          type: integer
        rejected:
          description: Lines refused, with their reasons.
          format: int64
          type: integer
        waiting:
          description: >-
            Lines behind an earlier line of the same title, or behind the
            registration of the title.
          format: int64
          type: integer
      required:
        - waiting
        - ready
        - inFlight
        - executed
        - rejected
      type: object
    CnabRemittanceLine:
      additionalProperties: false
      properties:
        boletoId:
          description: >-
            The boleto the entry issued, or the one a write-off or amendment
            resolved; null before execution and for a rejected entry.
          format: uuid
          type:
            - string
            - 'null'
        companyTitleId:
          description: >-
            Title id in the company (G072, 35.3P), kept only in CNAB and
            answered back in 21.3T.
          examples:
            - ERP-2026-000123
          maxLength: 25
          type:
            - string
            - 'null'
        documentNumber:
          description: Document number (C011, 19.3P).
          examples:
            - NF-000123
          maxLength: 15
          type:
            - string
            - 'null'
        dueDate:
          description: Due date of the title.
          examples:
            - '2026-12-10'
          format: date
          type:
            - string
            - 'null'
        executedAt:
          description: When the line executed, RFC 3339 in UTC.
          format: date-time
          type:
            - string
            - 'null'
        id:
          description: Identifier of the line; null only on a DRY_RUN.
          format: uuid
          type:
            - string
            - 'null'
        instructionKind:
          description: >-
            ISSUE (01), WRITE_OFF (02), AMEND (amendment movements, rejected for
            now) or REJECT (any other movement).
          enum:
            - ISSUE
            - WRITE_OFF
            - AMEND
            - REJECT
          type: string
        lotNumber:
          description: Batch number (G002) of the P segment.
          examples:
            - 1
          format: int64
          type: integer
        movementCode:
          description: Remittance movement code (C004, 07.3P), two digits.
          examples:
            - '01'
          pattern: ^[0-9]{2}$
          type: string
        nominalAmount:
          description: Amount in BRL as a decimal string with two decimal places.
          examples:
            - '1530.75'
          maxLength: 16
          pattern: ^(0|[1-9][0-9]{0,12})\.[0-9]{2}$
          type:
            - string
            - 'null'
        ourNumber:
          description: >-
            Nosso número (G069), as in the file, or, once the entry executed,
            the title's number; zeros while it is not known yet.
          examples:
            - '0000000000004517'
          maxLength: 20
          type:
            - string
            - 'null'
        platformCode:
          description: >-
            Code of the refusal by the host or the provider behind a rejection;
            null otherwise.
          examples:
            - PBP-0832
          maxLength: 64
          type:
            - string
            - 'null'
        recordSequence:
          description: Record sequence in the batch (G038) of the P segment.
          examples:
            - 1
          format: int64
          type: integer
        rejectionReasons:
          description: >-
            Up to 5 reason codes of the FEBRABAN note C047 table A, in the order
            found; empty unless REJECTED.
          items:
            type: string
          maxItems: 5
          type: array
        status:
          description: >-
            WAITING: behind an earlier line of the same title, or behind the
            registration of the title. READY: to be executed. IN_FLIGHT: being
            executed. EXECUTED: the request was accepted; the outcome at the
            base comes in the return. REJECTED: refused with rejectionReasons.
            Treat the list as open.
          enum:
            - WAITING
            - READY
            - IN_FLIGHT
            - EXECUTED
            - REJECTED
          type: string
      required:
        - lotNumber
        - recordSequence
        - movementCode
        - instructionKind
        - status
        - rejectionReasons
      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.