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

# Resolve an account name

> Name enquiry against the destination institution. Use the returned name as `destination_account_name` on the payout — it is the institution-confirmed name, not a merchant guess. Results are cached briefly per account.



## OpenAPI

````yaml /openapi.json post /v1/banks/resolve
openapi: 3.0.0
info:
  title: Spendin Merchant API
  description: Cross-border remittance and financial services API
  version: '1.0'
  contact: {}
servers:
  - url: https://api.spendin.app
    description: Production
security:
  - api-key: []
tags: []
paths:
  /v1/banks/resolve:
    post:
      tags:
        - banks
      summary: Resolve an account name
      description: >-
        Name enquiry against the destination institution. Use the returned name
        as `destination_account_name` on the payout — it is the
        institution-confirmed name, not a merchant guess. Results are cached
        briefly per account.
      operationId: IdentityController_resolveAccount
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          description: >-
            Unique idempotency token per logical write (UUID v4). Re-send the
            same value on safe retries.
          schema:
            type: string
            format: uuid
            example: a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveAccountDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolveAccountResponseDto'
        '400':
          description: Crypto destinations cannot be resolved
        '422':
          description: No account found with those details
        '503':
          description: Upstream enquiry unavailable
      security:
        - api-key: []
components:
  schemas:
    ResolveAccountDto:
      type: object
      properties:
        destination_type:
          type: string
          enum:
            - BANK_ACCOUNT
            - MOBILE_MONEY
          example: BANK_ACCOUNT
        destination_currency:
          type: string
          example: NGN
          description: ISO 4217 currency code of the destination
        destination_account_unique:
          type: string
          example: '0123456789'
          description: Bank account number or mobile number
        destination_provider_code:
          type: string
          example: '044'
          description: Bank code or mobile money code — from GET /v1/banks
      required:
        - destination_type
        - destination_currency
        - destination_account_unique
        - destination_provider_code
    ResolveAccountResponseDto:
      type: object
      properties:
        destination_account_name:
          type: string
          example: KWAME MENSAH
          description: >-
            The name the institution holds for this account. Use this as
            `destination_account_name` on the payout — never the merchant-typed
            guess.
        destination_account_unique:
          type: string
          example: '0123456789'
        destination_provider_code:
          type: string
          example: '044'
        destination_type:
          type: string
          enum:
            - MOBILE_MONEY
            - BANK_ACCOUNT
            - CRYPTO_WALLET
      required:
        - destination_account_name
        - destination_account_unique
        - destination_provider_code
        - destination_type
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key

````