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

# Get wallet balance

> GetBalance returns the reseller's prepaid wallet balance, the same funds a
 live order is settled from. It reads only the caller's own wallet. A test key
 reads a fixed sandbox balance, never the real one, so a test integration can
 exercise the read without seeing production funds.



## OpenAPI

````yaml /api-reference/sodacards.yaml get /v1/balance
openapi: 3.1.0
info:
  title: SODACARDS Developer API
  description: Sell gift cards and game top-ups from your own systems.
  version: 1.0.0
servers:
  - url: https://api.sodacards.com
security:
  - ApiKeyAuth: []
tags:
  - name: PublicAPIService
    description: >-
      PublicAPIService is the public developer API a reseller calls with an API
      key.
       It is served as REST (via HTTP transcoding) so developers use GET /v1/... and
       curl, and its OpenAPI 3.1 spec is generated from this one file. Every method is
       authenticated by the API-key gateway that fronts it.
paths:
  /v1/balance:
    get:
      summary: Get wallet balance
      description: >-
        GetBalance returns the reseller's prepaid wallet balance, the same funds
        a
         live order is settled from. It reads only the caller's own wallet. A test key
         reads a fixed sandbox balance, never the real one, so a test integration can
         exercise the read without seeing production funds.
      operationId: getBalance
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sodacards.devpublic.v1.GetBalanceResponse'
components:
  schemas:
    sodacards.devpublic.v1.GetBalanceResponse:
      type: object
      properties:
        balance:
          $ref: '#/components/schemas/sodacards.devpublic.v1.Money'
          title: balance
          description: >-
            balance is the reseller's prepaid wallet balance. For a test key it
            is a
             fixed sandbox value, clearly not the production wallet.
      title: GetBalanceResponse
      additionalProperties: false
    sodacards.devpublic.v1.Money:
      type: object
      properties:
        amount:
          type:
            - integer
            - string
          title: amount
          format: int64
          description: amount is the value in the currency's minor units.
        currency:
          type: string
          title: currency
          description: currency is the ISO-4217 code, e.g. "XOF".
        minorUnitExponent:
          type: integer
          title: minor_unit_exponent
          format: int32
          description: >-
            minor_unit_exponent is the currency's number of decimal places (0
            for XOF,
             2 for USD): amount divided by 10^minor_unit_exponent is the major-unit value.
      title: Money
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Your API key, prefixed sc_live_ or sc_test_.
      name: X-API-Key
      in: header

````