Defacto Webhook API

The Webhook API from Defacto — 2 operation(s) for webhook.

Operations 4

DELETE /webhook/{webhook_id} /webhook/{webhook_id} #
PATCH /webhook/{webhook_id} /webhook/{webhook_id} #
GET /webhooks /webhooks #
POST /webhooks /webhooks #

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-webhook-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-webhook-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Defacto Accounting Webhook 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: Webhook
paths:
  /webhook/{webhook_id}:
    delete:
      description: Delete a webhook subscription.
      parameters:
      - in: path
        name: webhook_id
        required: true
        schema:
          type: string
      responses:
        '204':
          description: ''
          content:
            '*/*':
              schema: {}
      security:
      - Bearer: []
      tags:
      - Webhook
      operationId: delete_webhook-webhook-id
      summary: /webhook/{webhook_id}
    patch:
      description: '

        Update a webhook subscription.


        ⚠️ Our webhooks always call the POST method of the given url.


        For more information on webhooks such as how to secure them, you can refer to <a href=''https://developers.getdefacto.com/reference/introduction''>our guide</a>.


        '
      parameters:
      - in: path
        name: webhook_id
        required: true
        schema:
          type: string
      requestBody:
        $ref: '#/components/requestBodies/CreateWebhook'
      responses:
        '200':
          description: ''
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Webhook'
      security:
      - Bearer: []
      tags:
      - Webhook
      operationId: patch_webhook-webhook-id
      summary: /webhook/{webhook_id}
  /webhooks:
    get:
      description: '

        List your webhook subscription.


        ⚠️ Our webhooks always call the POST method of the given url.


        For more information on webhooks such as how to secure them, you can refer to <a href=''https://developers.getdefacto.com/reference/introduction''>our guide</a>.


        '
      responses:
        '200':
          description: ''
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/TypedApiPage9'
      security:
      - Bearer: []
      tags:
      - Webhook
      operationId: get_webhooks
      summary: /webhooks
    post:
      description: '

        Create a webhook subscription.


        ⚠️ Our webhooks always call the POST method of the given url.


        For more information on webhooks such as how to secure them, you can refer to <a href=''https://developers.getdefacto.com/reference/introduction''>our guide</a>.


        '
      requestBody:
        $ref: '#/components/requestBodies/CreateWebhook'
      responses:
        '201':
          description: ''
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Webhook'
      security:
      - Bearer: []
      tags:
      - Webhook
      operationId: post_webhooks
      summary: /webhooks
components:
  schemas:
    Webhook1:
      properties:
        event_types:
          items:
            enum:
            - BorrowerFinancialProductCreated
            - BorrowerFinancialProductUpdated
            - CounterpartyCreditLimit.CREATED
            - CounterpartyCreditLimit.UPDATED
            - CreditLimit.UPDATED
            - CreditLine.BALANCE_UPDATED
            - CreditLine.CREATED
            - CreditLine.POOL_AMOUNT_UPDATED
            - Invoice.DECLINED
            - Invoice.DELETED
            - Invoice.SUBMITTED
            - Invoice.TO_EDIT
            - Invoice.VERIFIED
            - Loan.CANCELED
            - Loan.CLOSED
            - Loan.DECLINED
            - Loan.DELETED
            - Loan.INITIATED
            - Loan.ISSUE_DETECTED
            - Loan.PENDING_VALIDATION
            - Loan.SCHEDULED
            - Loan.SUBMITTED
            - Loan.TO_REPAY
            - Loan.TO_REPAY_FEES
            - Loan.TO_VALIDATE
            - Loan.VALIDATED
            - Payment.CANCELED
            - Payment.FAILED
            - Payment.INSTRUCTED
            - Payment.IN_TRANSIT
            - Payment.PAID
            - Payment.SCHEDULED
            type: string
          minItems: 1
          type: array
        id:
          default: null
          format: uuid
          type:
          - string
          - 'null'
        name:
          type: string
        to_url:
          format: url
          type: string
      required:
      - event_types
      - name
      - to_url
      type: object
    Webhook:
      properties:
        event_types:
          items:
            enum:
            - BorrowerFinancialProductCreated
            - BorrowerFinancialProductUpdated
            - CounterpartyCreditLimit.CREATED
            - CounterpartyCreditLimit.UPDATED
            - CreditLimit.UPDATED
            - CreditLine.BALANCE_UPDATED
            - CreditLine.CREATED
            - CreditLine.POOL_AMOUNT_UPDATED
            - Invoice.DECLINED
            - Invoice.DELETED
            - Invoice.SUBMITTED
            - Invoice.TO_EDIT
            - Invoice.VERIFIED
            - Loan.CANCELED
            - Loan.CLOSED
            - Loan.DECLINED
            - Loan.DELETED
            - Loan.INITIATED
            - Loan.ISSUE_DETECTED
            - Loan.PENDING_VALIDATION
            - Loan.SCHEDULED
            - Loan.SUBMITTED
            - Loan.TO_REPAY
            - Loan.TO_REPAY_FEES
            - Loan.TO_VALIDATE
            - Loan.VALIDATED
            - Payment.CANCELED
            - Payment.FAILED
            - Payment.INSTRUCTED
            - Payment.IN_TRANSIT
            - Payment.PAID
            - Payment.SCHEDULED
            type: string
          minItems: 1
          type: array
        id:
          default: null
          format: uuid
          type:
          - string
          - 'null'
        name:
          type: string
        to_url:
          format: url
          type: string
      required:
      - event_types
      - name
      - to_url
      type: object
    TypedApiPage9:
      properties:
        count:
          type: integer
        data:
          items:
            $ref: '#/components/schemas/Webhook1'
          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
  securitySchemes:
    Bearer:
      in: header
      name: Authorization
      type: apiKey