openapi: 3.1.0
info:
  title: Ledger API
  contact:
    name: API Integration Support
    email: integration@dintero.com
  version: LATEST
  license:
    name: UNLICENSED
    url: https://dintero.com
  x-logo:
    url: https://docs.dintero.com/img/dintero_logo_v2.png
  description: |
    # Changelog

    All notable changes to the API.

    ## 2026-10-01

    new: List Dintero bank accounts

    > - [GET /v1/accounts/{account_id}/ledger/dintero-bank-accounts](/ledger-api/bank-accounts/dintero-bank-accounts_get)

    new: Fund transfer

    > - [POST /v1/accounts/{account_id}/ledger/payout-destinations/{payout_destination_id}/fund-transfers](/ledger-api/payout-destinations/payout-destinations_fund-transfers_post)

    new: Set payout account overrides per currency

    > - [PUT /v1/accounts/{account_id}/ledger/payout-destinations/{payout_destination_id}/bank-accounts/payout-accounts-mapping/overrides](/ledger-api/bank-accounts/bank-accounts_payout-account-overrides_put)

    ## 2026-09-28

    new: Unlink a bank account from a payout destination, without deleting it

    > - [DELETE /v1/accounts/{account_id}/ledger/payout-destinations/{payout_destination_id}/bank-accounts/{bank_account_id}/link](/ledger-api/bank-accounts/bank-accounts_unlink)

    ## 2026-05-01

    new: Add manual payout interval type

    > - [POST /v1/accounts/{account_id}/ledger/config](/ledger-api/accounts/accounts_config_post)
    > - [PUT /v1/accounts/{account_id}/ledger/payout-destinations/{payout_destination_id}/config](/ledger-api/payout-destinations/payout-destinations_config_put)
    > - [GET /v1/accounts/{account_id}/ledger/payout-destinations](/ledger-api/payout-destinations/payout-destinations_get)

    ## 2026-04-15

    update: Update bank account number validation

    > - [POST /v1/accounts/{account_id}/ledger/payout-destinations/{payout_destination_id}/bank-accounts](/ledger-api/bank-accounts/bank-accounts_post)

    ## 2026-04-01

    new: On-demand payout

    > - [POST /v1/accounts/{account_id}/ledger/payout-destinations/{payout_destination_id}/payouts](/ledger-api/payout-destinations/payout-destinations_payouts_post)

    ## 2026-02-15

    new: List payout destinations

    > - [GET /v1/accounts/{account_id}/ledger/payout-destinations](/ledger-api/payout-destinations/payout-destinations_get)

    ## 2026-01-15

    new: Add optional `payout_reference` to payout destination configuration

    > - [PUT /v1/accounts/{account_id}/ledger/payout-destinations/{payout_destination_id}/config](/ledger-api/payout-destinations/payout-destinations_config_put)

    ## 2025-12-19

    new: Create account

    > - [POST /v1/accounts/{account_id}/ledger/config](/ledger-api/accounts/accounts_config_post)

    new: Configure payout destination

    > - [PUT /v1/accounts/{account_id}/ledger/payout-destinations/{payout_destination_id}/config](/ledger-api/payout-destinations/payout-destinations_config_put)

    new: Create bank account

    > - [POST /v1/accounts/{account_id}/ledger/payout-destinations/{payout_destination_id}/bank-accounts](/ledger-api/bank-accounts/bank-accounts_post)
servers:
  - url: /v1
security:
  - JWT: []
tags:
  - name: accounts
    description: Manage accounts
    x-displayName: Accounts
  - name: payout-destinations
    description: Manage payout destinations
    x-displayName: Payout destinations
  - name: bank-accounts
    description: Manage bank accounts
    x-displayName: Bank accounts
paths:
  /accounts/{aid}/ledger/config:
    post:
      operationId: accounts_config_post
      summary: accounts_config_post
      description: |
        Create a new account with the provided configuration.
      x-scopes:
        - admin:dintero:/ledger
      tags:
        - accounts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountConfigInput'
      parameters:
        - $ref: '#/components/parameters/AccountIdPath'
      responses:
        '200':
          $ref: '#/components/responses/AccountConfig'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-mint:
        metadata:
          title: Configure new account
          sidebarTitle: Configure new account
  /accounts/{aid}/ledger/payout-destinations:
    get:
      operationId: payout-destinations_get
      summary: payout-destinations_get
      description: List all payout destinations.
      x-scopes:
        - read:ledger
      tags:
        - payout-destinations
      parameters:
        - $ref: '#/components/parameters/AccountIdPath'
        - name: limit
          in: query
          style: form
          explode: true
          schema:
            type: number
            default: 10
            minimum: 1
            maximum: 30
        - name: starting_after
          in: query
          style: form
          explode: true
          schema:
            type: string
            description: Cursor `payout_destination_id`
        - name: payout_destination_id
          in: query
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
        - name: includes
          in: query
          description: |
            Additional fields to include for each payout destination
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
              enum:
                - balances.payable
                - bank_accounts
      responses:
        '200':
          $ref: '#/components/responses/PayoutDestinations'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-mint:
        metadata:
          title: List payout destinations
          sidebarTitle: List payout destinations
  /accounts/{aid}/ledger/payout-destinations/{payout_destination_id}/config:
    put:
      operationId: payout-destinations_config_put
      summary: payout-destinations_config_put
      description: Set the configuration for a payout destination. If a payout destination does not exist for the given `payout_destination_id`, it will be created. Use payout destionation id `"-"` to create or update the account level default config.
      x-scopes:
        - admin:dintero:/ledger
      tags:
        - payout-destinations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PayoutDestinationConfigInput'
      parameters:
        - $ref: '#/components/parameters/AccountIdPath'
        - $ref: '#/components/parameters/PayoutDestinationIdPath'
      responses:
        '200':
          $ref: '#/components/responses/PayoutDestinationConfig'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-mint:
        metadata:
          title: Configure payout destination
          sidebarTitle: Configure payout destination
  /accounts/{aid}/ledger/payout-destinations/{payout_destination_id}/payouts:
    post:
      operationId: payout-destinations_payouts_post
      summary: payout-destinations_payouts_post
      description: |
        Create a payout for the given payout destination by consolidating
        all pending funds from any payout interval account (week, month) into
        the daily payout account (`Assets.Payouts.Day`). The funds will then be included
        in the next daily payout run.

        This is useful when you want existing pending payouts to be disbursed without
        waiting for the original schedule, or when you want to manually trigger a
        payout outside the normal interval.

        **NOTE**: This operation has **eventual consistency** with the balances returned
        from [GET /v1/accounts/{account_id}/ledger/payout-destinations](/ledger-api/payout-destinations/payout-destinations_get).
      x-scopes:
        - admin:dintero:/ledger
      tags:
        - payout-destinations
      parameters:
        - $ref: '#/components/parameters/AccountIdPath'
        - $ref: '#/components/parameters/PayoutDestinationIdPath'
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-mint:
        metadata:
          title: On-demand payout
          sidebarTitle: On-demand payout
  /accounts/{aid}/ledger/payout-destinations/{payout_destination_id}/fund-transfers:
    post:
      operationId: payout-destinations_fund-transfers_post
      summary: payout-destinations_fund-transfers_post
      description: |
        Initiate a fund transfer from the current payout destination to another
        payout destination. Currently only same-account fund transfers are
        supported.
      x-scopes:
        - admin:dintero:/ledger
      tags:
        - payout-destinations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FundTransferInput'
      parameters:
        - $ref: '#/components/parameters/AccountIdPath'
        - $ref: '#/components/parameters/PayoutDestinationIdPath'
      responses:
        '200':
          $ref: '#/components/responses/FundTransfer'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-mint:
        metadata:
          title: Fund transfer
          sidebarTitle: Fund transfer
  /accounts/{aid}/ledger/payout-destinations/{payout_destination_id}/bank-accounts:
    post:
      operationId: bank-accounts_post
      summary: bank-accounts_post
      description: Create a bank account for a payout destination. If a payout destination does not exist for the given `payout_destination_id`, it will be created.
      x-scopes:
        - admin:dintero:/ledger
      tags:
        - bank-accounts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BankAccountInput'
      parameters:
        - $ref: '#/components/parameters/AccountIdPath'
        - $ref: '#/components/parameters/PayoutDestinationIdPath'
      responses:
        '200':
          $ref: '#/components/responses/BankAccountCreated'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-mint:
        metadata:
          title: Create bank account
          sidebarTitle: Create bank account
  /accounts/{aid}/ledger/payout-destinations/{payout_destination_id}/bank-accounts/{bank_account_id}/link:
    delete:
      operationId: bank-accounts_unlink
      summary: bank-accounts_unlink
      description: Unlink a bank account from one payout destination; clears any currency override pointing at it in the same call.
      x-scopes:
        - admin:dintero:/ledger
      tags:
        - bank-accounts
      parameters:
        - $ref: '#/components/parameters/AccountIdPath'
        - $ref: '#/components/parameters/PayoutDestinationIdPath'
        - $ref: '#/components/parameters/BankAccountUuidPath'
      responses:
        '200':
          $ref: '#/components/responses/BankAccountUnlinked'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-mint:
        metadata:
          title: Unlink bank account
          sidebarTitle: Unlink bank account
  /accounts/{aid}/ledger/payout-destinations/{payout_destination_id}/bank-accounts/payout-accounts-mapping/overrides:
    put:
      operationId: bank-accounts_payout-account-overrides_put
      summary: bank-accounts_payout-account-overrides_put
      description: Set the bank account used for payouts per currency. Replaces all existing overrides; nothing changes if any override is invalid.
      x-scopes:
        - admin:dintero:/ledger
      tags:
        - bank-accounts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PayoutAccountOverridesInput'
      parameters:
        - $ref: '#/components/parameters/AccountIdPath'
        - $ref: '#/components/parameters/PayoutDestinationIdPath'
      responses:
        '200':
          $ref: '#/components/responses/PayoutAccountOverrides'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-mint:
        metadata:
          title: Set payout account overrides
          sidebarTitle: Set payout account overrides
  /accounts/{aid}/ledger/dintero-bank-accounts:
    get:
      operationId: dintero-bank-accounts_get
      summary: dintero-bank-accounts_get
      description: List Dintero's client bank accounts, optionally filtered by country and currency. When both filters are given, only bank accounts matching both are returned. The same accounts are returned for every account.
      x-scopes:
        - admin:dintero:/ledger
      tags:
        - bank-accounts
      parameters:
        - $ref: '#/components/parameters/AccountIdPath'
        - name: country
          in: query
          description: Only bank accounts in this two-character ISO-3166 country.
          schema:
            type: string
            minLength: 2
            maxLength: 2
            format: iso-3166-1 alpha-2
            example: 'NO'
        - name: currency
          in: query
          description: Only bank accounts in this three-character ISO-4217 currency.
          schema:
            type: string
            minLength: 3
            maxLength: 3
            format: iso-4217
            example: NOK
      responses:
        '200':
          $ref: '#/components/responses/DinteroBankAccounts'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      x-mint:
        metadata:
          title: List Dintero bank accounts
          sidebarTitle: List Dintero bank accounts
components:
  securitySchemes:
    JWT:
      type: http
      description: |
        Bearer authentication (token authentication) should be used for accessing the API.

        Use [Get Token](/api-reference/authenticate/aid_auths_oauth_token_post) to get an access token for client credentials.
        Pass the token in the request header:

            Authorization: Bearer {access_token}

        where the **access_token** is JSON Web Tokens (JWT).
      scheme: bearer
      bearerFormat: JWT
  parameters:
    AccountIdPath:
      name: aid
      description: The Dintero merchant account id.
      in: path
      required: true
      schema:
        type: string
        pattern: ^[PT]\d{8}
        example: P12345678
        minLength: 9
        maxLength: 9
    PayoutDestinationIdPath:
      name: payout_destination_id
      description: Payout destination id. To use the default payout_destination_id, use a dash `"-"`.
      in: path
      required: true
      schema:
        type: string
        example: '-'
    BankAccountUuidPath:
      name: bank_account_id
      description: The bank account id, as returned by [Create bank account](/ledger-api/bank-accounts/bank-accounts_post).
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    AccountConfigInput:
      type: object
      additionalProperties: false
      required:
        - payout_interval_type
      properties:
        payout_interval_type:
          type: string
          enum:
            - day
            - week
            - month
            - manual
        payout_minimum_hold_days:
          type: integer
          minimum: 0
          exclusiveMinimum: false
          default: 0
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
          properties:
            code:
              type: string
              description: The code used to identify the error/warning
            errors:
              type: array
              description: The nested error(s) encountered during validation
              items:
                type: object
            message:
              type: string
              description: The human readable description of the error/warning
    PayoutBalance:
      type: object
      required:
        - type
        - currency
        - amount
      properties:
        type:
          type: string
          enum:
            - payable
          description: |
            * `payable` - Amount will be part of next payout.
        currency:
          type: string
          example: NOK
        amount:
          type: number
          example: '249_00'
          description: |
            Amount denoted in minor units of the currency.<br>
            249.00 NOK is denoted as `24900`.
    BankAccountInput:
      type: object
      additionalProperties: false
      required:
        - account_number
        - account_type
        - bic
        - country_code
        - currency
        - nickname
        - owner_name
        - owner_country_code
        - owner_city
        - owner_postal_code
        - owner_address
        - owner_id
      properties:
        account_number:
          type: string
          description: Bank account number. Alphanumeric, uppercase. Cannot be updated.
          minLength: 5
          maxLength: 34
          pattern: ^[A-Z0-9]+$
          example: NO9386011117947
        account_type:
          type: string
          enum:
            - BBAN
            - IBAN
          description: |
            Bank account type.
            Use `BBAN` for accounts in Norway.
            Use `IBAN` for other countries.
        bic:
          type: string
          description: Bank identifier code.
          maxLength: 11
          pattern: ^[A-Z\d]+$
          example: DNBANOKKXXX
        country_code:
          type: string
          description: Which country the bank account is registered in.
          maxLength: 2
          minLength: 2
          format: iso-3166-1 alpha-2
          example: 'NO'
        currency:
          type: string
          description: |
            The currency of the bank account.
            This is used to determine which bank account to use for a payment.
          maxLength: 3
          minLength: 3
          format: iso-4217
          example: NOK
        nickname:
          type: string
          description: Give a nickname to the bank account to more easily remember its purpose.
          minLength: 2
          maxLength: 40
          example: My bank account
        owner_name:
          type: string
          description: Name of the owner that receives payments on this bank account.
          minLength: 2
          maxLength: 60
          example: My Company
        owner_country_code:
          type: string
          description: Country code of the owner that receives payments on this bank account.
          maxLength: 2
          minLength: 2
          pattern: ^[A-Z]{2}$
          example: 'NO'
        owner_city:
          type: string
          description: City of the owner that receives payments on this bank account.
          minLength: 1
          maxLength: 35
          example: Old Town
        owner_postal_code:
          type: string
          description: Postal code of the owner that receives payments on this bank account.
          minLength: 1
          maxLength: 16
          example: '1540'
        owner_address:
          type: string
          description: Address of the owner that receives payments on this bank account.
          minLength: 1
          maxLength: 70
          example: Corner street 25
        owner_id:
          type: string
          description: |
            Identifier of the owner that receives payments on this bank account.
            - The organization number of the company if the owner is a company. If country is Norway, the orgno should exist in Brønnøysundregisteret.
            - A globally unique id for the account owner if the owner is an individual.
          minLength: 1
          maxLength: 60
          example: '999111999'
    BankAccount:
      allOf:
        - type: object
          required:
            - id
          properties:
            id:
              type: string
              format: uuid
              description: |
                UUID that uniquely identifies the resource
              readOnly: true
        - $ref: '#/components/schemas/BankAccountInput'
    PayoutDestinationConfigInput:
      type: object
      additionalProperties: false
      required:
        - payout_interval_type
      properties:
        payout_interval_type:
          type: string
          enum:
            - day
            - week
            - month
            - manual
        payout_reference:
          type: string
          description: A static reference that will be included on bank payments made to this payout destination.
          maxLength: 60
    FundTransferParticipant:
      oneOf:
        - title: PayoutDestination
          type: object
          required:
            - type
            - account_id
            - payout_destination_id
          properties:
            type:
              type: string
              enum:
                - payout-destination
            account_id:
              type: string
            payout_destination_id:
              type: string
          additionalProperties: false
      discriminator:
        propertyName: type
    FundTransferInput:
      type: object
      additionalProperties: false
      required:
        - fund_transfer_id
        - amount
        - currency
        - reference
        - destination
      properties:
        fund_transfer_id:
          type: string
          description: |
            A string id that uniquely identifies the fund transfer. The `id` is used
            for idempotent processing so you can safely retry the request with same
            id if you don't receive a response (for example, in case of a timeout).
          example: 38f87000-5f1c-417b-99ee-f6e9f2998aca
        amount:
          type: integer
          minimum: 1
          description: The amount of the fund transfer in the smallest unit of the currency.
          example: 499000
        currency:
          type: string
          maxLength: 3
          minLength: 3
          format: iso-4217
          example: NOK
        reference:
          type: string
          maxLength: 60
          description: |
            A static reference that will be included on settlements made to the sellers.
        destination:
          $ref: '#/components/schemas/FundTransferParticipant'
    PayoutAccountOverride:
      type: object
      additionalProperties: false
      required:
        - currency
        - bank_account_id
      properties:
        currency:
          type: string
          description: Payouts in this currency go to `bank_account_id`.
          minLength: 3
          maxLength: 3
          example: NOK
        bank_account_id:
          type: string
          format: uuid
          description: |
            The bank account id, as returned by
            [Create bank account](/ledger-api/bank-accounts/bank-accounts_post). Must be linked
            to the payout destination.
    PayoutAccountOverridesInput:
      type: object
      additionalProperties: false
      required:
        - payout_account_overrides
      properties:
        payout_account_overrides:
          type: array
          description: |
            The full set of overrides. Each currency may appear at most once.
            An empty list removes all overrides.
          items:
            $ref: '#/components/schemas/PayoutAccountOverride'
    DinteroBankAccount:
      type: object
      additionalProperties: false
      required:
        - account_number
        - account_type
        - bic
        - country_code
        - currency
        - nickname
      properties:
        account_number:
          type: string
          example: '15066717167'
        account_type:
          type: string
          enum:
            - IBAN
            - BBAN
        bic:
          type: string
          example: DNBANOKKXXX
        country_code:
          type: string
          description: The two-character ISO-3166 country of the bank account.
          minLength: 2
          maxLength: 2
          format: iso-3166-1 alpha-2
          example: 'NO'
        currency:
          type: string
          description: The three-character ISO-4217 currency of the bank account.
          minLength: 3
          maxLength: 3
          format: iso-4217
          example: NOK
        nickname:
          type: string
          example: DNB Norway - Klientkonto NOK
  responses:
    AccountConfig:
      description: Account config created
      content:
        application/json:
          schema:
            type: object
            additionalProperties: false
            required:
              - payout_interval_type
              - payout_minimum_hold_days
            properties:
              payout_interval_type:
                type: string
                enum:
                  - day
                  - week
                  - month
                  - manual
              payout_minimum_hold_days:
                type: integer
                minimum: 0
                exclusiveMinimum: false
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PayoutDestinations:
      description: Payout destinations
      content:
        application/json:
          schema:
            type: object
            required:
              - payout_destinations
            properties:
              payout_destinations:
                type: array
                items:
                  type: object
                  additionalProperties: false
                  required:
                    - payout_destination_id
                    - payout_interval_type
                  properties:
                    payout_destination_id:
                      type: string
                      example: '-'
                    payout_interval_type:
                      type: string
                      enum:
                        - day
                        - week
                        - month
                        - manual
                    payout_reference:
                      type: string
                      description: A static reference that will be included on bank payments made to this payout destination.
                      maxLength: 60
                    balances:
                      type: array
                      items:
                        $ref: '#/components/schemas/PayoutBalance'
                    bank_accounts:
                      type: array
                      items:
                        $ref: '#/components/schemas/BankAccount'
              starting_after:
                type: string
                description: |
                  Cursor for following request to obtain the next page.
    PayoutDestinationConfig:
      description: Payout destination config
      content:
        application/json:
          schema:
            type: object
            additionalProperties: false
            required:
              - payout_interval_type
            properties:
              payout_interval_type:
                type: string
                enum:
                  - day
                  - week
                  - month
                  - manual
              payout_reference:
                type: string
                description: A static reference that will be included on bank payments made to this payout destination.
                maxLength: 60
    NoContent:
      description: No Content
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    FundTransfer:
      description: Fund transfer initiated
      content:
        application/json:
          schema:
            type: object
            additionalProperties: false
            required:
              - fund_transfer_id
              - amount
              - currency
              - reference
              - source
              - destination
              - created_at
              - created_by
            properties:
              fund_transfer_id:
                type: string
                description: |
                  A string id that uniquely identifies the fund transfer. The `id` is used
                  for idempotent processing so you can safely retry the request with same
                  id if you don't receive a response (for example, in case of a timeout)
              amount:
                type: integer
                minimum: 1
                description: The amount of the fund transfer in the smallest unit of the currency
              currency:
                type: string
              reference:
                type: string
                maxLength: 60
                description: |
                  A static reference that will be included on settlements made to the sellers
              source:
                $ref: '#/components/schemas/FundTransferParticipant'
              destination:
                $ref: '#/components/schemas/FundTransferParticipant'
              created_at:
                type: string
                format: date-time
                description: The date-time when the resource was created
                readOnly: true
              created_by:
                type: string
                description: User id of the user who created the resource
                readOnly: true
    BankAccountCreated:
      description: Bank account created
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BankAccount'
    BankAccountUnlinked:
      description: Bank account unlinked
      content:
        application/json:
          schema:
            type: object
            required:
              - deleted_link
            properties:
              deleted_link:
                type: object
                required:
                  - payout_destination_id
                  - bank_account_id
                properties:
                  payout_destination_id:
                    type: string
                    example: '-'
                  bank_account_id:
                    type: string
                    format: uuid
    PayoutAccountOverrides:
      description: Payout account overrides
      content:
        application/json:
          schema:
            type: object
            additionalProperties: false
            required:
              - payout_account_overrides
            properties:
              payout_account_overrides:
                type: array
                items:
                  $ref: '#/components/schemas/PayoutAccountOverride'
    DinteroBankAccounts:
      description: Dintero bank accounts
      content:
        application/json:
          schema:
            type: object
            additionalProperties: false
            required:
              - dintero_bank_accounts
            properties:
              dintero_bank_accounts:
                type: array
                items:
                  $ref: '#/components/schemas/DinteroBankAccount'
x-tagGroups:
  - name: Ledger
    tags:
      - accounts
      - payout-destinations
      - bank-accounts
