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

# Force-move temp VA funds to main Smart Wallet

> When StRails auto-sweep stalls after a temporary VA onramp, withdraws
remaining cNGN from the generated temporary wallet into the customer's
linked permanent Smart Wallet. Requires `transfers:write`.

Success is not inferred from a mined StRails hash alone: RemitFlex
re-reads the temporary wallet balance and prefers on-chain Transfer
verification. Response `message` and `onramp.sweep.consolidate.status`
may be `completed`, `incomplete` (retryable), `submitted`, or `failed`.




## OpenAPI

````yaml /openapi.yaml post /rails/onramps/{id}/consolidate
openapi: 3.1.0
info:
  title: Remitflex API
  version: 1.0.0
  description: >
    Programmatic access to Remitflex payment routes, fiat rates, customers, and
    transactions.


    **Dashboard:** Create API keys at https://dashboard.remitflex.io


    **Authentication:** Send your API key as `Authorization: Bearer
    rmf_live_...` or `rmf_test_...`.


    **Idempotency:** Mutating requests (`POST`, `PUT`, `PATCH`, `DELETE`)
    require an `Idempotency-Key` header when authenticated with an API key.
servers:
  - url: http://localhost:4000/v1
    description: Local development
  - url: https://api.remitflex.io/v1
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /rails/onramps/{id}/consolidate:
    post:
      tags:
        - NGN rails
      summary: Force-move temp VA funds to main Smart Wallet
      description: |
        When StRails auto-sweep stalls after a temporary VA onramp, withdraws
        remaining cNGN from the generated temporary wallet into the customer's
        linked permanent Smart Wallet. Requires `transfers:write`.

        Success is not inferred from a mined StRails hash alone: RemitFlex
        re-reads the temporary wallet balance and prefers on-chain Transfer
        verification. Response `message` and `onramp.sweep.consolidate.status`
        may be `completed`, `incomplete` (retryable), `submitted`, or `failed`.
      operationId: consolidateRailsOnramp
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Consolidate withdrawal submitted
        '404':
          description: Not found
        '422':
          description: Nothing to move or wallets not ready
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >
        API key created in the Remitflex Dashboard at dashboard.remitflex.io
        (`rmf_live_...` or `rmf_test_...`).

        Key management endpoints require a dashboard JWT and are not part of
        this reference.

````