> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dolfinai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get bank-detail field profile for a country

> Returns per-field requirements, labels, patterns and payment-rail capabilities for the given ISO 3166-1 alpha-2 country code.



## OpenAPI

````yaml /api-reference/openapi.json get /bank-details/countries/{code}/profile
openapi: 3.1.1
info:
  title: Dolfin API
  description: >-
    Dolfin API for AR & AP. Authenticate using the `x-dolfin-api-key` header
    with the API key distributed to your organisation.
  version: v1
servers:
  - url: https://api.dolfinai.co
    description: Production
security:
  - {}
tags:
  - name: Webhooks
  - name: Users
  - name: TaxRates
  - name: Suppliers
  - name: Supplier Credit Notes
  - name: Bills
  - name: SpendCategories
  - name: Payables
  - name: RecurringInvoices
  - name: Receivables
  - name: Purchase Orders
  - name: Products
  - name: Payments
  - name: Invoices
  - name: Organisations
  - name: Members
  - name: MCP
  - name: Matching
  - name: Invoice Reminders
  - name: Industries
  - name: Gmail
  - name: Delivery Notes
  - name: Customers
  - name: Currencies
  - name: Credit Notes
  - name: Clients
  - name: ClientInvites
  - name: BankPayments
  - name: Bank details
  - name: Auth
  - name: ApprovalPolicies
  - name: ApiKeys
  - name: Agent
paths:
  /bank-details/countries/{code}/profile:
    get:
      tags:
        - Bank details
      summary: Get bank-detail field profile for a country
      description: >-
        Returns per-field requirements, labels, patterns and payment-rail
        capabilities for the given ISO 3166-1 alpha-2 country code.
      parameters:
        - name: code
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CountryBankProfile'
        '404':
          description: >-
            CountryProfile.NotFound — no bank-detail profile exists for this
            country code
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    CountryBankProfile:
      required:
        - countryCode
        - countryName
        - defaultCurrencies
        - accountHolderName
        - rails
      type: object
      properties:
        countryCode:
          type: string
          description: ISO 3166-1 alpha-2 country code (e.g. GB, US, DE)
        countryName:
          type: string
        defaultCurrencies:
          type: array
          items:
            type: string
          description: ISO 4217 currency codes (e.g. GBP, USD, EUR)
        accountHolderName:
          $ref: '#/components/schemas/BankFieldSpec'
        accountNumber:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BankFieldSpec'
        sortCode:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BankFieldSpec'
        routingNumber:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BankFieldSpec'
        iban:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BankFieldSpec'
        bicSwift:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BankFieldSpec'
        rails:
          $ref: '#/components/schemas/PaymentRailSupport'
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    BankFieldSpec:
      required:
        - requirement
      type: object
      properties:
        requirement:
          $ref: '#/components/schemas/FieldRequirement'
        label:
          type:
            - 'null'
            - string
        placeholder:
          type:
            - 'null'
            - string
        helpText:
          type:
            - 'null'
            - string
        minLength:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        maxLength:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        pattern:
          type:
            - 'null'
            - string
        example:
          type:
            - 'null'
            - string
        displayOrder:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
    PaymentRailSupport:
      type: object
      properties:
        sepa:
          type: boolean
        sepaInstant:
          type: boolean
        fasterPayments:
          type: boolean
        bacs:
          type: boolean
        chaps:
          type: boolean
        ach:
          type: boolean
        fedWire:
          type: boolean
        swift:
          type: boolean
        localRailName:
          type:
            - 'null'
            - string
    FieldRequirement:
      enum:
        - Hidden
        - Optional
        - Required

````