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

# Get Wallet ID

> Retrieve wallet ID by username or phone number. Phone numbers starting with 09, 9, 08, or 8 are automatically detected.

Retrieve wallet ID by username or phone number. Phone numbers starting with 09, 9, 08, or 8 are automatically detected as phone numbers.


## OpenAPI

````yaml GET /account/{identifier}
openapi: 3.1.0
info:
  title: Changu External Wallet Charging API
  description: >-
    API for developers to charge user wallets through encrypted wallet IDs.
    Requires developer authentication using Bearer token with secret key.
  version: 1.0.0
servers:
  - url: https://api.changu.app/api/v1
    description: Production
  - url: http://localhost:9287/api/v1
    description: Development
security:
  - bearerAuth: []
paths:
  /account/{identifier}:
    get:
      tags:
        - Wallet
      summary: Get Wallet ID
      description: >-
        Retrieve wallet ID by username or phone number. Phone numbers starting
        with 09, 9, 08, or 8 are automatically detected.
      operationId: getAccountInfo
      parameters:
        - name: identifier
          in: path
          required: true
          description: >-
            Username or phone number (e.g., 'john_doe' or '0988521023' or
            '988521023')
          schema:
            type: string
          examples:
            username:
              value: john_doe
              summary: Username example
            phone_09:
              value: '0988521023'
              summary: Phone number starting with 09
            phone_9:
              value: '988521023'
              summary: Phone number starting with 9
            phone_08:
              value: '0888521023'
              summary: Phone number starting with 08
            phone_8:
              value: '888521023'
              summary: Phone number starting with 8
      responses:
        '200':
          description: Encrypted wallet ID retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountInfo'
        '401':
          description: Unauthorized - Invalid secret key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: User or wallet not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AccountInfo:
      type: object
      required:
        - walletId
      properties:
        walletId:
          type: string
          description: Wallet ID for the user
          example: wallet_id_here
    Error:
      type: object
      required:
        - statusCode
        - message
      properties:
        statusCode:
          type: integer
          example: 400
        message:
          type: string
          example: Invalid encrypted wallet ID
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer token authentication using developer secret key. Format: Bearer
        sk_live_your_secret_key_here

````