> ## 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 executor failed orders

> Returns the institution-scoped paginated list of order revisions the executor failed or abandoned, read from its execution journal. Each item names the journal row it was derived from and a closed-set reason; uncertain revisions are not listed.



## OpenAPI

````yaml /es/openapi/v3-current/sisbajud-executor.yaml get /v1/institutions/{institutionId}/executor/failed-orders
openapi: 3.1.0
info:
  description: >-
    API for the Lerian SISBAJUD executor, which runs judicial orders on Midaz.
    It covers institution and Midaz connector configuration, orders that need
    attention, ledger-routing checks, credential key rotation and audit
    verification.
  title: Lerian SISBAJUD Executor API
  version: 1.0.0
servers:
  - url: https://api.example.com
    description: >-
      Replace the example host with the URL provided during environment
      onboarding.
security:
  - BearerAuth: []
tags:
  - description: >-
      Institution configuration lifecycle: create (with key provisioning), read,
      and partial update of a connector configuration addressed by institution
      id.
    name: Institution
  - description: >-
      Rotation of the key that wraps an institution's stored connector
      credentials, addressed by institution id.
    name: Security
  - description: 'Admin API: audit-trail integrity verification.'
    name: Admin
paths:
  /v1/institutions/{institutionId}/executor/failed-orders:
    get:
      tags:
        - Executor
      summary: List executor failed orders
      description: >-
        Returns the institution-scoped paginated list of order revisions the
        executor failed or abandoned, read from its execution journal. Each item
        names the journal row it was derived from and a closed-set reason;
        uncertain revisions are not listed.
      operationId: list-executor-failed-orders
      parameters:
        - description: The institution's unique identifier (UUID).
          in: path
          name: institutionId
          required: true
          schema:
            description: The institution's unique identifier (UUID).
            examples:
              - 550e8400-e29b-41d4-a716-446655440000
            type: string
        - description: Maximum items per page.
          explode: false
          in: query
          name: limit
          schema:
            description: Maximum items per page.
            examples:
              - 50
            format: int64
            type: integer
        - description: Pagination offset.
          explode: false
          in: query
          name: offset
          schema:
            description: Pagination offset.
            examples:
              - 0
            format: int64
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageJournalFailedOrderItem'
          description: OK
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Internal Server Error
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Error
components:
  schemas:
    PageJournalFailedOrderItem:
      additionalProperties: false
      properties:
        data:
          items:
            $ref: '#/components/schemas/JournalFailedOrderItem'
          type:
            - array
            - 'null'
        limit:
          format: int64
          type: integer
        offset:
          format: int64
          type: integer
        total:
          format: int64
          type: integer
      required:
        - data
        - limit
        - offset
        - total
      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
    JournalFailedOrderItem:
      additionalProperties: false
      properties:
        evidence:
          $ref: '#/components/schemas/NoEffectEvidenceItem'
          description: >-
            No-effect evidence, present only when the journal proves every write
            failed before effect.
        journalEntryId:
          description: >-
            Id of the execution-journal row the item was derived from: the
            revision's first failed row, or its abandoned row.
          examples:
            - 7d1e8400-e29b-41d4-a716-446655440000
          type: string
        orderId:
          description: Order id.
          examples:
            - 660e8400-e29b-41d4-a716-446655440000
          type: string
        orderRevision:
          description: Order revision (>= 1).
          examples:
            - 1
          format: int64
          type: integer
        reason:
          description: Closed-set v1 FailReason token; never raw ledger text.
          examples:
            - baseline-refused
          type: string
      required:
        - journalEntryId
        - orderId
        - orderRevision
        - reason
      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: The value at the given location
      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
    NoEffectEvidenceItem:
      additionalProperties: false
      properties:
        intents:
          description: Every write of the revision, each failed before effect.
          items:
            $ref: '#/components/schemas/NoEffectIntentItem'
          type:
            - array
            - 'null'
      required:
        - intents
      type: object
    NoEffectIntentItem:
      additionalProperties: false
      properties:
        baselineAvailable:
          description: >-
            Available balance of the blocking account read before the write
            (decimal string).
          examples:
            - '12.34'
          type: string
        baselineVersion:
          description: Balance version read before the write.
          examples:
            - 7
          format: int64
          type: integer
        failureClass:
          description: Before-effect class of the write's terminal row.
          examples:
            - before-effect
          type: string
        idempotencyKey:
          description: Idempotency key pairing the journaled intent with its failed row.
          examples:
            - 9f1c2d3e-key
          type: string
      required:
        - idempotencyKey
        - failureClass
        - baselineAvailable
        - baselineVersion
      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.