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

# Get beneficiary

> Fetch one saved beneficiary.



## OpenAPI

````yaml GET /api/b2b/external-accounts/{externalAccountId}
openapi: 3.1.0
info:
  title: Tanda API
  version: 1.0.0
  description: >-
    Collect and send KES payments in Kenya through M-PESA, Airtel Money and bank
    transfer.
servers:
  - url: https://api.tandapay.io
    description: Sandbox and production (your keys decide which)
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Account
  - name: Checkout
  - name: Collections
  - name: Payouts
  - name: Beneficiaries
  - name: Transactions
  - name: Reference data
  - name: Webhooks
paths:
  /api/b2b/external-accounts/{externalAccountId}:
    get:
      tags:
        - Beneficiaries
      summary: Get beneficiary
      description: Returns one saved beneficiary.
      operationId: get-external-account
      parameters:
        - name: externalAccountId
          in: path
          required: true
          description: The beneficiary's ID.
          schema:
            type: string
          example: ea_9Xk2LmPq
      responses:
        '200':
          description: Beneficiary.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/ExternalAccount'
              example:
                success: true
                data:
                  externalAccountId: ea_9Xk2LmPq
                  country: KE
                  currency: KES
                  destination: MoMo
                  createdAt: 1761638400
                  payoutMethod:
                    accountName: Grace Achieng
                    accountNumber: '254712345678'
                    code: mpesa
        '401':
          description: Missing, invalid or expired bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Unauthorized
components:
  schemas:
    ExternalAccount:
      type: object
      properties:
        externalAccountId:
          type: string
        country:
          type: string
        currency:
          type: string
        destination:
          type: string
        createdAt:
          type: integer
          description: Unix timestamp.
        payoutMethod:
          type: object
          properties:
            accountName:
              type: string
            accountNumber:
              type: string
            code:
              type: string
            branchCode:
              type: string
            businessNumber:
              type: string
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
          description: Human-readable; may change.
        errorCode:
          type: string
          description: Stable code to branch on.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token from Generate bearer token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.