Defacto Accounting API

The Accounting API from Defacto — 1 operation(s) for accounting.

Operations 1

GET /events /events #

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/defacto-accounting-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

defacto-accounting-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Defacto Accounting API
  version: v1.0.0
  description: Defacto provides instant, embedded financing for SMBs across Europe. This REST API lets partners onboard borrowers, test eligibility and credit limits, upload business/bank data, create invoices, request and manage loans, handle repayments and recollection, issue and manage credit cards, bill fees, and subscribe to webhooks. Reconstructed by API Evangelist from the per-operation OpenAPI fragments published on Defacto's ReadMe developer portal (developers.getdefacto.com/llms.txt). operationId values are the provider's ReadMe reference slugs; summaries are the reference page titles.
  contact:
    email: contact@getdefacto.com
    url: https://developers.getdefacto.com/
servers:
- url: https://api.getdefacto.com
  description: Production
- url: https://api-sandbox.getdefacto.com
  description: Sandbox
security:
- Bearer: []
tags:
- name: Accounting
paths:
  /events:
    get:
      description: Search for business events. These events will let you read business events to build you logic on top of it.
      parameters:
      - description: Pagination cursor from the previous response's next_page field. Omit to get the first page.
        in: query
        name: cursor
        required: false
        x-nullable: true
        schema:
          type: string
          default: null
      - in: query
        name: event_type
        required: false
        x-nullable: true
        explode: true
        schema:
          type: array
          items:
            enum:
            - LOAN_CANCELED
            - LOAN_DISBURSEMENT_PAID
            - LOAN_EXTRA_PAID
            - LOAN_GUARANTEE_DEPOSIT_CHARGED_BACK
            - LOAN_GUARANTEE_DEPOSIT_PAID
            - LOAN_INTERESTS_CHARGEBACK_PENALIZED
            - LOAN_INTERESTS_DISCOUNTED
            - LOAN_INTERESTS_FALLEN_DUE
            - LOAN_INTEREST_DEPOSIT_CHARGED_BACK
            - LOAN_INTEREST_DEPOSIT_PAID
            - LOAN_INTEREST_FROM_DEPOSIT_PAID
            - LOAN_INTEREST_FROM_DEPOSIT_UNPAID
            - LOAN_PRINCIPAL_FALLEN_DUE
            - LOAN_PRINCIPAL_FALLEN_LATE
            - LOAN_PRINCIPAL_FROM_DEPOSIT_PAID
            - LOAN_REFUND_PAID
            - LOAN_REPAYMENT_FEES_CHARGED_BACK
            - LOAN_REPAYMENT_FEES_PAID
            - LOAN_REPAYMENT_NOMINAL_CHARGED_BACK
            - LOAN_REPAYMENT_NOMINAL_PAID
            - LOAN_REPAYMENT_NOMINAL_UNPAID
            - LOAN_RETURNED_PAID
            - LOAN_VALIDATED
            type: string
          default: null
      - in: query
        name: from_date
        required: false
        x-nullable: true
        schema:
          type: string
          format: date-time
          default: null
      - in: query
        name: loan_id
        required: false
        x-nullable: true
        explode: true
        schema:
          type: array
          items:
            format: uuid
            type: string
          default: null
      - description: Maximum number of items to return per page.
        in: query
        name: page_size
        required: false
        schema:
          type: integer
          default: 100
      - in: query
        name: to_date
        required: false
        x-nullable: true
        schema:
          type: string
          format: date-time
          default: null
      responses:
        '200':
          description: ''
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/TypedApiPage4'
      security:
      - Bearer: []
      tags:
      - Accounting
      operationId: get_events
      summary: /events
components:
  schemas:
    TypedApiPage4:
      properties:
        count:
          type: integer
        data:
          items:
            $ref: '#/components/schemas/ApiEvent'
          type: array
        next_page:
          default: null
          type:
          - string
          - 'null'
        page_size:
          type: integer
        previous_page:
          default: null
          type:
          - string
          - 'null'
        total:
          default: null
          type:
          - integer
          - 'null'
      required:
      - count
      - page_size
      type: object
    ApiLoanEventPayload:
      properties:
        deposit_amount:
          default: null
          type:
          - integer
          - 'null'
        fees_amount:
          default: null
          type:
          - integer
          - 'null'
        loan_id:
          format: uuid
          type: string
        metadata:
          additionalProperties: {}
          type: object
        principal_amount:
          default: null
          type:
          - integer
          - 'null'
      required:
      - loan_id
      - metadata
      type: object
    ApiEvent:
      properties:
        event_at:
          format: date-time
          type: string
        event_payload:
          $ref: '#/components/schemas/ApiLoanEventPayload'
        event_type:
          enum:
          - LOAN_CANCELED
          - LOAN_DISBURSEMENT_PAID
          - LOAN_EXTRA_PAID
          - LOAN_GUARANTEE_DEPOSIT_CHARGED_BACK
          - LOAN_GUARANTEE_DEPOSIT_PAID
          - LOAN_INTERESTS_CHARGEBACK_PENALIZED
          - LOAN_INTERESTS_DISCOUNTED
          - LOAN_INTERESTS_FALLEN_DUE
          - LOAN_INTEREST_DEPOSIT_CHARGED_BACK
          - LOAN_INTEREST_DEPOSIT_PAID
          - LOAN_INTEREST_FROM_DEPOSIT_PAID
          - LOAN_INTEREST_FROM_DEPOSIT_UNPAID
          - LOAN_PRINCIPAL_FALLEN_DUE
          - LOAN_PRINCIPAL_FALLEN_LATE
          - LOAN_PRINCIPAL_FROM_DEPOSIT_PAID
          - LOAN_REFUND_PAID
          - LOAN_REPAYMENT_FEES_CHARGED_BACK
          - LOAN_REPAYMENT_FEES_PAID
          - LOAN_REPAYMENT_NOMINAL_CHARGED_BACK
          - LOAN_REPAYMENT_NOMINAL_PAID
          - LOAN_REPAYMENT_NOMINAL_UNPAID
          - LOAN_RETURNED_PAID
          - LOAN_VALIDATED
          type: string
      required:
      - event_at
      - event_payload
      - event_type
      type: object
  securitySchemes:
    Bearer:
      in: header
      name: Authorization
      type: apiKey