Defacto Business and accounts API

The Business and accounts API from Defacto — 1 operation(s) for business and accounts.

OpenAPI Specification

defacto-business-and-accounts-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Defacto Accounting Business and accounts 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: Business and accounts
paths:
  /business/{business_id}/segment:
    get:
      parameters:
      - in: path
        name: business_id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BusinessSegment'
      security:
      - Bearer: []
      tags:
      - Business and accounts
      operationId: get_business-business-id-segment
      summary: /business/{business_id}/segment
components:
  schemas:
    BusinessIdentifierRequired:
      properties:
        identifier:
          type: string
        identifier_type:
          enum:
          - belgium_registration_number
          - bsn
          - cif
          - hr_nummer
          - kvk
          - name
          - nif
          - siren
          - siret
          - steuernummer
          - vat_number
          type: string
      required:
      - identifier
      - identifier_type
      type: object
    BusinessSegment:
      properties:
        business_id:
          format: uuid
          type: string
        business_identifier:
          $ref: '#/components/schemas/BusinessIdentifierRequired'
        defacto_segment:
          default: null
          enum:
          - CAT1
          - CAT2
          - CAT3
          - CAT4
          - null
          type: string
          nullable: true
      required:
      - business_id
      - business_identifier
      type: object
  securitySchemes:
    Bearer:
      in: header
      name: Authorization
      type: apiKey