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

# Get Account

> Fetches a specific account object. Provide the account `_id` and the corresponding object will be returned.



## OpenAPI

````yaml openapi.json get /accounts/{id}
openapi: 3.1.0
info:
  title: Sudo Sandbox API
  version: '1.0'
servers:
  - url: https://api.sandbox.sudo.cards
security:
  - sec0: []
paths:
  /accounts/{id}:
    get:
      summary: Get Account
      description: >-
        Fetches a specific account object. Provide the account `_id` and the
        corresponding object will be returned.
      operationId: get-account
      parameters:
        - name: id
          in: path
          description: The `_id` of the account you wish to fetch.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Account fetched successfully.
          headers:
            X-Powered-By:
              schema:
                type: string
              example: Express
            Access-Control-Allow-Origin:
              schema:
                type: string
              example: '*'
            X-RateLimit-Limit:
              schema:
                type: integer
              example: '250000'
            X-RateLimit-Remaining:
              schema:
                type: integer
              example: '249999'
            X-RateLimit-Reset:
              schema:
                type: integer
              example: '0'
            Content-Type:
              schema:
                type: string
              example: application/json; charset=utf-8
            ETag:
              schema:
                type: string
              example: W/"2dd-sfRBgLV2BqnKnzwqFCi2UGdBgUQ"
            Connection:
              schema:
                type: string
              example: keep-alive
            Keep-Alive:
              schema:
                type: string
              example: timeout=5
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: >-
                      Status code of the response. `200` indicates a successful
                      request.
                  message:
                    type: string
                    description: Human-readable description of the result.
                  data:
                    type: object
                    description: Response payload.
                    properties:
                      _id:
                        type: string
                        description: Unique identifier of the object.
                      business:
                        type: string
                        description: Identifier of the business that owns this object.
                      customer:
                        type: string
                        description: >-
                          Associated customer — an id, or a summary object on
                          nested resources.
                      type:
                        type: string
                        description: Type of the object.
                      currency:
                        type: string
                        description: ISO 4217 currency code (e.g. `NGN`).
                      accountName:
                        type: string
                        description: Name on the account.
                      bankCode:
                        type: string
                        description: Bank / institution code.
                      accountType:
                        type: string
                        description: Account product type (`Savings` or `Current`).
                      accountNumber:
                        type: string
                        description: Account number (NUBAN).
                      currentBalance:
                        type: integer
                        description: Current ledger balance, in the minor currency unit.
                      availableBalance:
                        type: integer
                        description: >-
                          Balance available for spending, in the minor currency
                          unit.
                      provider:
                        type: string
                        description: Underlying provider backing the object.
                      providerReference:
                        type: string
                      referenceCode:
                        type: string
                      reloadable:
                        type: boolean
                      isDefault:
                        type: boolean
                      isDeleted:
                        type: boolean
                        description: Whether the object has been soft-deleted.
                      createdAt:
                        type: string
                        format: date-time
                        description: ISO 8601 timestamp of when the object was created.
                      updatedAt:
                        type: string
                        format: date-time
                        description: >-
                          ISO 8601 timestamp of when the object was last
                          updated.
                      charges:
                        type: array
                        items: {}
                      __v:
                        type: integer
                        description: Internal document version (Mongo).
              example:
                statusCode: 200
                message: Account fetched successfully.
                data:
                  _id: 6a26b1a448fe5e287ce408d0
                  business: 696edb9889c90df3bcdbe067
                  customer: 6a26b14a48fe5e287ce40899
                  type: wallet
                  currency: USD
                  accountName: John Doemain
                  bankCode: SudoHUSMC
                  accountType: Current
                  accountNumber: b9803bdc-5f40-47e2-b3f9-a447a4260cfe
                  currentBalance: 0
                  availableBalance: 0
                  provider: SudoHUSMC
                  providerReference: b9803bdc-5f40-47e2-b3f9-a447a4260cfe
                  referenceCode: b9803bdc-5f40-47e2-b3f9-a447a4260cfe
                  reloadable: true
                  isDefault: false
                  isDeleted: false
                  createdAt: '2026-06-08T12:12:20.345Z'
                  updatedAt: '2026-06-08T12:12:20.345Z'
                  charges: []
                  __v: 0
        '400':
          description: Validation error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: >-
                      Status code of the response. `200` indicates a successful
                      request.
                  message:
                    type: string
                    description: Human-readable description of the result.
                  data:
                    nullable: true
                    description: Always `null` for error responses.
              example:
                statusCode: 400
                message: Invalid account id.
                data: null
        '401':
          description: Authentication failed — missing or invalid API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: >-
                      Status code of the response. `200` indicates a successful
                      request.
                  message:
                    type: string
                    description: Human-readable description of the result.
                  data:
                    nullable: true
                    description: Response payload.
              example:
                statusCode: 401
                message: >-
                  Unauthorized. Provide a valid API key in the Authorization
                  header.
                data: null
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: >-
                      Status code of the response. `200` indicates a successful
                      request.
                  message:
                    type: string
                    description: Human-readable description of the result.
                  data:
                    nullable: true
                    description: Always `null` for error responses.
              example:
                statusCode: 404
                message: Account not found.
                data: null
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: Authorization
      x-bearer-format: bearer
      x-default: '{{APIKey}}'

````