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

# Resolve bank provider

> Resolves a bank code, SWIFT code, or ACH routing number to the corresponding bank name and details. The behaviour depends on the `paymentMethod` parameter:
- **swift** — resolves an 8 or 11-character SWIFT/BIC code
- **ach** — resolves a 9-digit US ACH routing number
- **bank** — resolves against Cadana's internal bank provider list
  for the given currency



## OpenAPI

````yaml /openapi/embedded-payments.yaml get /v1/providers/resolve
openapi: 3.0.0
info:
  description: APIs for interacting with Cadana Global Payments
  version: 1.0.0
  title: Embedded Payments
  termsOfService: https://cadanapay.com/terms-and-conditions
  contact:
    email: api@cadanapay.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.cadanapay.com
    description: Prod Server
  - url: https://dev-api.cadanapay.com
    description: Dev Server
security:
  - Authorization: []
tags:
  - name: Beneficiaries
    description: APIs for managing beneficiaries
  - name: Payouts
    description: APIs for managing payouts
  - name: Balances
    description: APIs for managing account balances
  - name: FX
    description: APIs for managing foreign exchange rates
  - name: Resources
    description: Resource APIs to access and manage foundational data
  - name: Virtual Accounts
    description: APIs for managing virtual accounts
paths:
  /v1/providers/resolve:
    get:
      tags:
        - Resources
      summary: Resolve bank provider
      description: >-
        Resolves a bank code, SWIFT code, or ACH routing number to the
        corresponding bank name and details. The behaviour depends on the
        `paymentMethod` parameter:

        - **swift** — resolves an 8 or 11-character SWIFT/BIC code

        - **ach** — resolves a 9-digit US ACH routing number

        - **bank** — resolves against Cadana's internal bank provider list
          for the given currency
      parameters:
        - name: code
          in: query
          required: true
          description: The bank code, SWIFT code, or routing number to look up
          schema:
            type: string
          example: '341'
        - name: currency
          in: query
          required: true
          description: ISO 4217 currency code
          schema:
            type: string
          example: BRL
        - name: paymentMethod
          in: query
          required: true
          description: 'Payment method type: swift, ach, or bank'
          schema:
            type: string
            enum:
              - swift
              - ach
              - bank
          example: bank
        - $ref: '#/components/parameters/XMultiTenantKey'
      responses:
        '200':
          $ref: '#/components/responses/ResolveCodeResponse'
        '400':
          $ref: '#/components/responses/BadRequestError'
components:
  parameters:
    XMultiTenantKey:
      name: X-MultiTenantKey
      in: header
      required: false
      schema:
        type: string
      description: >-
        Required when using a Platform API token. The tenant key identifying
        which business to operate on.
  responses:
    ResolveCodeResponse:
      description: Resolved bank provider details
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResolvedProvider'
          examples:
            bankCodeLookup:
              summary: Bank code lookup (BRL)
              value:
                bankName: Itaú Unibanco
                countryCode: BR
                city: ''
                routingNumber: ''
                swiftCode: ITAUBRSP
            swiftCodeLookup:
              summary: SWIFT code lookup (MXN)
              value:
                bankName: Banco Nacional de Mexico S.A.
                countryCode: MX
                city: Mexico City
                routingNumber: ''
                swiftCode: BNMXMXMM
            achLookup:
              summary: ACH routing number lookup (USD)
              value:
                bankName: JPMorgan Chase
                countryCode: US
                city: Tampa
                routingNumber: '021000021'
                swiftCode: CHASUS33
    BadRequestError:
      description: Bad input provided by client
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BadRequestError'
  schemas:
    ResolvedProvider:
      type: object
      required:
        - bankName
        - countryCode
      properties:
        bankName:
          type: string
          description: The name of the resolved bank or financial institution
          example: Itaú Unibanco
        countryCode:
          type: string
          description: The country code in ISO 3166-1 alpha-2 format
          example: BR
        city:
          type: string
          description: City of the bank branch (populated for SWIFT and ACH lookups)
          example: ''
        routingNumber:
          type: string
          description: ACH routing number (populated for ACH lookups)
          example: ''
        swiftCode:
          type: string
          description: SWIFT/BIC code (populated when available)
          example: ITAUBRSP
    BadRequestError:
      description: Bad input provided by client
      allOf:
        - $ref: '#/components/schemas/Error'
        - type: object
          properties:
            params:
              description: A map for meta data around the error that occurred
              type: object
      example:
        code: invalid_request_body
        message: The request body provided is not valid
        params:
          field: Value is invalid.
    Error:
      type: object
      properties:
        code:
          description: A machine parsable error code
          type: string
          enum:
            - invalid_request_body
            - resource_not_found
            - forbidden
            - internal_error
        message:
          description: A human readable message describing the error
          type: string
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      bearerFormat: API_SECRET_KEY

````