LuckPanda Banking API

Statement import, the review queue, bank rules, reconciliation, deposits, transfers and registers (Books phase 2)

Business capability
General Ledger Management BC-200.10

Operations 22

POST /banking/statements/import Plan (dry_run, returns plan_hash) then apply exactly that plan: CSV with a… #
GET /banking/statements Imported statements with the balance-chain result and counts #
GET /banking/lines The review queue: bank lines with their proposal (reason, confidence, origin)… #
POST /banking/lines/review Human-only. Exclude (reason), restore or unmatch bank lines #
POST /banking/lines/{lineId}/create Propose an expense, a receipt or a transfer from a bank line (accept it with… #
POST /banking/matches/propose Run the matcher and the rules over unmatched lines, or record one explicit… #
POST /banking/matches/accept Human-only. #
POST /banking/matches/reject Reject proposals; the target is not proposed again for that line #
GET /banking/rules Rules with their sentence and counts; format=portable exports them; preview=… #
POST /banking/rules create, update, archive, restore, import, apply (rules only propose) #
GET /banking/reconciliations The open (else latest) reconciliation of payment_account_id, with history #
POST /banking/reconciliations Start from an imported statement or a date and closing balance #
GET /banking/reconciliations/{reconciliationId} Header strip and lines (or the stored snapshot) #
POST /banking/reconciliations/{reconciliationId}/tick Tick or untick lines, or tick through a date (expected_version) #
POST /banking/reconciliations/{reconciliationId}/complete Human-only. Complete when the difference is exactly zero; stores the snapshot #
POST /banking/reconciliations/{reconciliationId}/undo Human-only, reason required. #
GET /banking/deposits Receipts waiting in undeposited funds (view=undeposited) or deposits… #
POST /banking/deposits Human-only. Deposit undeposited receipts into a bank account #
POST /banking/deposits/{depositId}/reverse Human-only. Reverse a deposit not matched or reconciled #
POST /banking/transfers Human-only. Money moved between two own accounts in one currency #
POST /banking/transfers/{transferId}/reverse Human-only. Reverse a transfer not matched or reconciled #
GET /payment-accounts/{paymentAccountId}/register The account ledger newest first with the balance after each line (computed)… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/luckpanda-app:luckpanda-app-banking-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

luckpanda-app-banking-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Luckpanda App Banking API
  version: 1.0.0
  description: 'Operations tagged Banking across 2 of this provider''s published API definitions: openapi.yaml, luckpanda-app-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://luckpanda.app/api/v1
- url: http://127.0.0.1:8787/api/v1
  description: Local `wrangler dev`
security:
- bearerAuth: []
tags:
- name: Banking
  description: Statement import, the review queue, bank rules, reconciliation, deposits, transfers and registers (Books phase 2)
paths:
  /banking/statements/import:
    post:
      tags:
      - Banking
      operationId: importBankStatement
      x-mcp-tool: bank_statement_import
      summary: 'Plan (dry_run, returns plan_hash) then apply exactly that plan: CSV with a…'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '201':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/statements:
    get:
      tags:
      - Banking
      operationId: listBankStatements
      x-mcp-tool: bank_statement_list
      summary: Imported statements with the balance-chain result and counts
      responses:
        '200':
          $ref: '#/components/responses/Page'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/lines:
    get:
      tags:
      - Banking
      operationId: listBankLines
      x-mcp-tool: bank_line_list
      summary: 'The review queue: bank lines with their proposal (reason, confidence, origin)…'
      responses:
        '200':
          $ref: '#/components/responses/Page'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/lines/review:
    post:
      tags:
      - Banking
      operationId: reviewBankLines
      x-mcp-tool: bank_line_review
      summary: Human-only. Exclude (reason), restore or unmatch bank lines
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/lines/{lineId}/create:
    post:
      tags:
      - Banking
      operationId: createFromBankLine
      x-mcp-tool: bank_line_create
      summary: Propose an expense, a receipt or a transfer from a bank line (accept it with…
      parameters:
      - name: lineId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/Uuid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '201':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/matches/propose:
    post:
      tags:
      - Banking
      operationId: proposeBankMatches
      x-mcp-tool: bank_match_propose
      summary: Run the matcher and the rules over unmatched lines, or record one explicit…
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '201':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/matches/accept:
    post:
      tags:
      - Banking
      operationId: acceptBankMatches
      x-mcp-tool: bank_match_accept
      summary: Human-only.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/matches/reject:
    post:
      tags:
      - Banking
      operationId: rejectBankMatches
      x-mcp-tool: bank_match_reject
      summary: Reject proposals; the target is not proposed again for that line
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/rules:
    get:
      tags:
      - Banking
      operationId: listBankRules
      x-mcp-tool: bank_rule_list
      summary: Rules with their sentence and counts; format=portable exports them; preview=…
      responses:
        '200':
          $ref: '#/components/responses/Page'
    post:
      tags:
      - Banking
      operationId: manageBankRules
      x-mcp-tool: bank_rule_manage
      summary: create, update, archive, restore, import, apply (rules only propose)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/reconciliations:
    get:
      tags:
      - Banking
      operationId: getAccountReconciliation
      x-mcp-tool: reconciliation_get
      summary: The open (else latest) reconciliation of payment_account_id, with history
      responses:
        '200':
          $ref: '#/components/responses/Page'
    post:
      tags:
      - Banking
      operationId: startReconciliation
      x-mcp-tool: reconciliation_start
      summary: Start from an imported statement or a date and closing balance
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '201':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/reconciliations/{reconciliationId}:
    get:
      tags:
      - Banking
      operationId: getReconciliation
      x-mcp-tool: reconciliation_get
      summary: Header strip and lines (or the stored snapshot)
      parameters:
      - name: reconciliationId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/Uuid'
      responses:
        '200':
          $ref: '#/components/responses/Page'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/reconciliations/{reconciliationId}/tick:
    post:
      tags:
      - Banking
      operationId: tickReconciliation
      x-mcp-tool: reconciliation_tick
      summary: Tick or untick lines, or tick through a date (expected_version)
      parameters:
      - name: reconciliationId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/Uuid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/reconciliations/{reconciliationId}/complete:
    post:
      tags:
      - Banking
      operationId: completeReconciliation
      x-mcp-tool: reconciliation_complete
      summary: Human-only. Complete when the difference is exactly zero; stores the snapshot
      parameters:
      - name: reconciliationId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/Uuid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/reconciliations/{reconciliationId}/undo:
    post:
      tags:
      - Banking
      operationId: undoReconciliation
      x-mcp-tool: reconciliation_undo
      summary: Human-only, reason required.
      parameters:
      - name: reconciliationId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/Uuid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/deposits:
    get:
      tags:
      - Banking
      operationId: listDeposits
      x-mcp-tool: deposit_list
      summary: Receipts waiting in undeposited funds (view=undeposited) or deposits…
      responses:
        '200':
          $ref: '#/components/responses/Page'
    post:
      tags:
      - Banking
      operationId: createDeposit
      x-mcp-tool: deposit_create
      summary: Human-only. Deposit undeposited receipts into a bank account
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '201':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/deposits/{depositId}/reverse:
    post:
      tags:
      - Banking
      operationId: reverseDeposit
      x-mcp-tool: deposit_reverse
      summary: Human-only. Reverse a deposit not matched or reconciled
      parameters:
      - name: depositId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/Uuid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/transfers:
    post:
      tags:
      - Banking
      operationId: recordTransfer
      x-mcp-tool: transfer_record
      summary: Human-only. Money moved between two own accounts in one currency
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '201':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /banking/transfers/{transferId}/reverse:
    post:
      tags:
      - Banking
      operationId: reverseTransfer
      x-mcp-tool: transfer_reverse
      summary: Human-only. Reverse a transfer not matched or reconciled
      parameters:
      - name: transferId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/Uuid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInput'
      responses:
        '200':
          $ref: '#/components/responses/CommandAccepted'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
  /payment-accounts/{paymentAccountId}/register:
    get:
      tags:
      - Banking
      operationId: getAccountRegister
      x-mcp-tool: payment_account_register
      summary: The account ledger newest first with the balance after each line (computed)…
      parameters:
      - name: paymentAccountId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/Uuid'
      responses:
        '200':
          $ref: '#/components/responses/Page'
    servers:
    - url: https://luckpanda.app/api/v1
    - url: http://127.0.0.1:8787/api/v1
      description: Local `wrangler dev`
components:
  responses:
    Problem:
      description: Typed RFC 7807 error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Page:
      description: Cursor page
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Page'
    CommandAccepted:
      description: 'Command result: succeeded, awaiting_approval (a proposal) or preview (dry_run)'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CommandResult'
  schemas:
    Problem:
      type: object
      required:
      - type
      - title
      - status
      - code
      properties:
        type:
          type: string
          format: uri-reference
        title:
          type: string
        status:
          type: integer
        code:
          type: string
          description: 'VALIDATION_FAILED (422) the body or a field is wrong; see field_errors.

            FORBIDDEN (401 no or revoked key, 403 missing permission or grant).

            NOT_FOUND (404).

            APPROVAL_REQUIRED (403) an agent (or any key over /mcp) tried to issue, send or pay; send proposal_only to propose instead.

            INTEGRATION_LIMIT (403) a server-integration key is outside its kinds, legal entities or largest total.

            PAYWALL (402) the business has not unlocked the outcome (issuing needs the Sales module); the body names the module.

            INVALID_STATE (409) the document is not in a state that allows this (e.g. issuing a cancelled document).

            STALE_VERSION (409) expected_version is behind; reload and retry.

            IDEMPOTENCY_MISMATCH (409) the idempotency_key was used with a different body.

            DUPLICATE_EXTERNAL_REF (409) a document of this kind already has this external_ref.

            COMPLIANCE_BLOCKED (409) a compliance rule blocks the change (e.g. cancelling a document with an active e-invoice IRN).

            ALLOCATION_EXCEEDS_AVAILABLE (409) a payment allocation is more than the receipt or the amount due allows.

            NOT_IMPLEMENTED (501) a path or option that is planned but not served.

            DELIVERY_FAILED (502, /invoices send step) the email provider refused the message.

            RATE_LIMITED (429).

            '
          enum:
          - VALIDATION_FAILED
          - FORBIDDEN
          - NOT_FOUND
          - APPROVAL_REQUIRED
          - INTEGRATION_LIMIT
          - PAYWALL
          - INVALID_STATE
          - STALE_VERSION
          - IDEMPOTENCY_MISMATCH
          - DUPLICATE_EXTERNAL_REF
          - COMPLIANCE_BLOCKED
          - ALLOCATION_EXCEEDS_AVAILABLE
          - CONFLICT
          - NOT_IMPLEMENTED
          - DELIVERY_FAILED
          - RATE_LIMITED
          - INTERNAL_ERROR
        message:
          type: string
        field_errors:
          type: array
          items:
            type: object
            required:
            - path
            - code
            properties:
              path:
                type: string
              code:
                type: string
        correlation_id:
          $ref: '#/components/schemas/Uuid'
    CommandResult:
      type: object
      required:
      - operation_id
      - status
      - correlation_id
      properties:
        operation_id:
          $ref: '#/components/schemas/Uuid'
        status:
          type: string
          enum:
          - succeeded
          - awaiting_approval
          - preview
        correlation_id:
          $ref: '#/components/schemas/Uuid'
        resource:
          type: object
          additionalProperties: true
        approval_request_id:
          $ref: '#/components/schemas/Uuid'
    Page:
      type: object
      required:
      - data
      properties:
        data:
          type: array
          maxItems: 100
          items:
            type: object
            additionalProperties: true
        next_cursor:
          type:
          - string
          - 'null'
    ToolInput:
      type: object
      description: The input schema of the operation's `x-mcp-tool` (minus the ids the path supplies). See `architecture/mcp-tools.json`.
      required:
      - idempotency_key
      - correlation_id
      additionalProperties: true
    Uuid:
      type: string
      format: uuid
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque API key, lpk_...
      description: Made in Workspace > Developers (agent or server-integration). Not a JWT.
x-refined-from:
- openapi.yaml
- luckpanda-app-openapi.yaml