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

# Create a Wallet

> Create a named wallet for one of your end users.

Provide a unique ``name`` (per user) and the currency. Pass
``make_primary=true`` to atomically promote this wallet to the user's
primary in that currency (the previous primary is demoted in the same
transaction). The user's first wallet in a currency is always primary
regardless of this flag.

Master wallets cannot be created here — they are auto-provisioned at
tenant bootstrap.



## OpenAPI

````yaml POST /v1/platform/wallets
openapi: 3.1.0
info:
  title: Finogate Platform API v1
  version: 0.1.0
servers:
  - url: https://api-sandbox.finogates.com
    description: Sandbox
  - url: https://api.finogates.com
    description: Production
security: []
tags:
  - name: auth
  - name: users
  - name: payees
  - name: verification
  - name: bank accounts
  - name: card processing
  - name: digital-assets
  - name: international
  - name: onboarding
  - name: pending-applications
  - name: wallets
  - name: payments
  - name: catalog
  - name: webhooks
  - name: phone-numbers
  - name: sms
  - name: calls
  - name: listings
  - name: embed-tokens
paths:
  /v1/platform/wallets:
    post:
      tags:
        - wallets
      summary: Create a Wallet
      description: |-
        Create a named wallet for one of your end users.

        Provide a unique ``name`` (per user) and the currency. Pass
        ``make_primary=true`` to atomically promote this wallet to the user's
        primary in that currency (the previous primary is demoted in the same
        transaction). The user's first wallet in a currency is always primary
        regardless of this flag.

        Master wallets cannot be created here — they are auto-provisioned at
        tenant bootstrap.
      operationId: create_wallet_v1_platform_wallets_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlatformWalletCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - _AuthenticatedBearer: []
components:
  schemas:
    PlatformWalletCreate:
      properties:
        user_id:
          type: string
          format: uuid
          title: User Id
          description: End-user UUID owning the wallet.
        name:
          type: string
          maxLength: 60
          minLength: 1
          title: Name
          description: Human-readable label, unique per (tenant, user).
        currency:
          type: string
          maxLength: 3
          minLength: 3
          title: Currency
          description: ISO 4217 currency code.
          default: USD
        make_primary:
          type: boolean
          title: Make Primary
          description: >-
            If true, atomically demotes the existing primary wallet in (user,
            currency) and promotes this new one. The user's first wallet in a
            currency is always primary regardless of this flag.
          default: false
        idempotency_key:
          anyOf:
            - type: string
              maxLength: 120
              minLength: 1
            - type: 'null'
          title: Idempotency Key
          description: Optional client-provided idempotency key.
      type: object
      required:
        - user_id
        - name
      title: PlatformWalletCreate
      description: |-
        Platform-realm (OAuth2 client) wallet creation payload.

        Integrators provision wallets for their end users via this surface.
        Unlike the tenant-realm payload, ``user_id`` is always required — the
        OAuth2 client acts on behalf of the platform itself, not a logged-in
        user.
    CommonResponse:
      properties:
        status_code:
          type: integer
          title: Status Code
          description: HTTP status code for the response.
        data:
          title: Data
          description: Payload or error details.
        query_generated_time:
          type: integer
          title: Query Generated Time
          description: >-
            UTC timestamp (milliseconds since epoch) when response was
            generated.
      type: object
      required:
        - status_code
        - data
        - query_generated_time
      title: CommonResponse
      description: |-
        Standard response wrapper for single-object responses and errors.

        Generic over the payload type. A route that declares
        ``CommonResponse[SomeModel]`` gets the real ``data`` schema rendered in
        OpenAPI/Swagger; a bare ``CommonResponse`` leaves ``data`` untyped.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    _AuthenticatedBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /v1/platform/auth/token

````