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

# Execute a wallet-to-wallet transfer

> Move funds between two custodial wallets you own, in the **same currency**. This is an
intra-ledger move: a single ledger entry, no external payout rail, no FX leg. The move settles
in-request and the response carries the terminal `status` directly.

Both wallets must:

- belong to the API key's integration,
- be of type `custodial` (forwarding wallets hold no balance),
- share the same `currency`,
- hold customers approved for on-ledger activity in that currency.

Different customers under the same integration are allowed — Alice's wallet can send to Bob's as
long as both belong to your merchant and are KYC-approved for the currency.

The currency must be explicitly enabled for wallet-to-wallet transfers (`can_wallet_transfer` on
`GET /v1/currencies`). The flag is independent of `can_transfer`, which gates outbound
beneficiary payouts via `POST /v1/transfers`.

### Body

| Field | Required | Description |
| --- | --- | --- |
| `from_wallet_id` | Yes | The source wallet (`wal_…`). Must be custodial, must belong to your integration, and must have enough available balance. |
| `to_wallet_id` | Yes | The destination wallet (`wal_…`). Must be custodial, same currency, same integration. |
| `amount` | Yes | Decimal string, strictly positive, with at most the currency's decimal places. |
| `reference` | Yes | Your id, unique per integration. A reused one returns `409 duplicate_resource`. |
| `metadata` | No | `Record<string, string>`. Echoed back verbatim on the response and the webhook. |

Send an `Idempotency-Key` header so retries are safe.

### Status model

The move is synchronous — there is no `processing` phase. A 200 response always carries
`status: "success"`: the ledger write committed, funds moved atomically. Bounded failures surface
as 4xx without persisting a row, so the merchant `reference` stays free for retry.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `invalid_input` | Validation (same wallet, forwarding wallet, mismatched currency, currency not enabled for wallet transfer, amount zero / too many decimals). |
| 400 | `invalid_amount_precision` | Amount exceeds the currency's decimal places. |
| 409 | `duplicate_resource` | `reference` already used by another wallet transfer for this integration. |
| 422 | `ledger_insufficient_funds` | The source wallet's available balance is below the amount. **No row is persisted and no webhook fires** — retry safely once the balance is topped up. |
| 422 | `ledger_overdraft_exceeded` | A race against a concurrent debit drained the balance between the pre-flight check and the ledger call. Same recovery as `ledger_insufficient_funds`: no row, retry when funds are available. |
| 500 | `configuration_error` | Either wallet is not fully provisioned, or the service hit internal drift (an orphaned ledger write under this reference whose shape disagrees with the retry). The merchant action is to contact support — the row either did not land or requires manual reconciliation. |
| 502 | `ledger_unavailable` / `external_service_unavailable` | The ledger is unreachable or returned an unparseable response. Retry safely with the same `reference`: the service pre-flights the reference and, if a prior attempt committed the move but failed to persist, recovers it on retry instead of moving funds twice. |

An unreachable ledger on the short-balance recovery path also surfaces as 502 rather than a 422.
The service consults the ledger to distinguish a genuine short balance from the drained residue
of a prior committed move; when that lookup cannot complete, the service refuses to classify
until it can, so the merchant retries safely.

### Webhook

Subscribe to the `wallet_transfer` category on `POST /v1/webhooks/endpoints` to receive
`wallet_transfer.success` deliveries. The payload mirrors this response plus the usual webhook
envelope. There is no `wallet_transfer.failed` topic — insufficient-funds attempts throw 422
without persisting a row, so no failure event is emitted.




## OpenAPI

````yaml /api-reference/openapi.json post /v1/wallet_transfers
openapi: 3.0.0
info:
  title: GlobalStack API
  version: 1.0.0
  description: >
    # Introduction


    GlobalStack API for cross-border payments powered by stablecoin rails.


    Getting started: authenticate with a Bearer token, make your first call to

    `GET /v1/currencies`, and explore.


    **Key operations:**


    - **Virtual account** — a fiat wallet plus a bank credential: a named local
    bank
      account that credits the wallet. See the
      [virtual accounts guide](https://docs.globalstack.io/guides/virtual-accounts).
    - **Onramp** — convert external fiat into crypto credited to a wallet.

    - **Offramp** — convert crypto from a wallet into fiat delivered to a
    beneficiary.

    - **Conversion** — move value between two wallets belonging to the same
    customer.

    - **Transfer** — pay out from a wallet to a beneficiary in the same
    currency: a
      bank account, mobile money wallet or PayShap proxy for fiat, or an on-chain
      address for crypto.
    - **Deposit** — receive funds into a wallet: a bank transfer into a
    credential,
      or crypto sent to a deposit address.

    See the sections below for authentication, response shape, idempotency,

    references, metadata, and webhooks.


    ## Authentication


    All API requests require a Bearer token in the `Authorization` header:


    ```

    Authorization: Bearer gsa_sk_live_your_api_key

    ```


    API keys use the `gsa_sk_live_` prefix.


    API keys are scoped to a single merchant account. All resources created with

    a key belong to that merchant. Keep your keys secret — do not expose them in

    client-side code or public repositories.


    To rotate a key, generate a new one from your dashboard and update your

    integration before revoking the old key.


    ## API Response Shape


    Every response — success or failure — follows the same envelope:


    ```json

    {
      "status": true,
      "message": "Onramp created successfully",
      "code": "ok",
      "data": { },
      "meta": {
        "request_id": "req_01ABC...",
        "timestamp": "2026-04-22T02:00:00Z",
        "version": "1"
      }
    }

    ```


    **Fields:**


    - `status` (boolean) — whether the HTTP call succeeded. This is not the
      business status of the underlying resource.
    - `message` (string) — human-readable explanation for developers and logs.
      Do not show to end users.
    - `code` (string) — stable machine-readable result. `ok` on success, or an
      error code like `bad_request`.
    - `data` — the resource payload on success (object, array, or scalar).
    `null`
      on failure.
    - `meta` — request-scoped metadata, always present. Includes `request_id`
      (quote this in support tickets), `timestamp`, and `version`. On list
      endpoints, also includes `page`, `per_page`, `total`, `has_more`. On
      validation errors, includes `errors` array and `next_steps`.

    Error responses include `next_steps` in `meta` with an `action` string and a

    `docs_url` link:


    ```json

    {
      "status": false,
      "message": "Your request has validation errors.",
      "code": "bad_request",
      "data": null,
      "meta": {
        "request_id": "req_01ABC...",
        "timestamp": "2026-04-22T02:00:00Z",
        "version": "1",
        "errors": [
          { "field": "amount", "code": "required", "message": "Amount is required." }
        ],
        "next_steps": {
          "action": "Review the request and retry with corrected parameters.",
          "docs_url": "https://docs.globalstack.io/errors#bad_request"
        }
      }
    }

    ```


    ## Idempotency


    Pass an `Idempotency-Key` header on any create endpoint to make the request

    safely retryable:


    ```

    Idempotency-Key: your-unique-key-here

    ```


    **Rules:**


    - Same key + same body = returns the original response (no side effects).

    - Same key + different body = returns `idempotency_conflict` (409).

    - Keys are scoped to your merchant account.

    - Keys expire after 24 hours.


    Use idempotency keys for any operation that creates a resource or moves

    money. This protects against network retries, duplicate webhooks, and

    client-side retry loops.


    ## Rate Limits


    Requests over the rate limit are rejected with HTTP `429` and the error code

    `rate_limited`:


    ```json

    {
      "status": false,
      "message": "Too many requests. Slow down and retry shortly.",
      "code": "rate_limited"
    }

    ```


    **Money-movement writes** (creating transfers, offramps, conversions, or

    wallet operations) are limited **per merchant account** — the budget is

    shared across all of your API keys and dashboard sessions. Reads are not

    limited.


    On a `429`, back off and retry with jitter; for money movement, reuse the

    same `Idempotency-Key` so the retry stays safe.


    ## Reference


    Every money movement operation (onramp, offramp, conversion, transfer)

    carries a `reference` field — a merchant-supplied identifier that is unique

    per merchant account. It is required on offramps, conversions and transfers.

    On onramps it is optional, and the API generates one (prefixed `ref_`) when
    you

    omit it.


    ```json

    {
      "reference": "INV-2026-001",
      "wallet_id": "wal_..."
    }

    ```


    References are unique per merchant and never expire. Reusing one is rejected

    with `409 duplicate_resource` — it does **not** return the existing
    operation.

    To retry a request safely, resend it with the same `Idempotency-Key`
    instead.


    Use `reference` to correlate GlobalStack operations with your own system

    records (invoices, orders, payouts).


    ## Metadata


    Most create endpoints accept an optional `metadata` object — a flat set of

    string key/value pairs stored on the resource:


    ```json

    {
      "metadata": {
        "order_id": "ord_12345",
        "customer_email": "alice@example.com"
      }
    }

    ```


    Metadata is returned on every GET response and in webhook payloads. It is

    not used by GlobalStack for processing — it exists for your own

    record-keeping.


    Resources that accept metadata: customers, wallets, senders, beneficiaries,

    wallet credentials, deposit addresses, onramps, offramps, conversions, and

    transfers.


    ## Webhook Signatures


    Every webhook delivery is signed so you can verify it came from GlobalStack
    and

    was not tampered with in transit. Signatures follow the

    [Svix](https://docs.svix.com/receiving/verifying-payloads/how) standard, so
    you

    can verify them with any Svix library — or manually with the construction
    below.


    Each delivery carries three headers:


    ```

    svix-id: msg_2gT8sV...          # unique message id (the body's event_id,
    prefixed msg_)

    svix-timestamp: 1718960400      # unix seconds when the delivery was signed

    svix-signature: v1,g0hM9SsE...  # space-separated list of
    v1,<base64-signature>

    ```


    Your signing secret (prefixed `whsec_`) is returned in plaintext **exactly

    once** — when you create a webhook endpoint or rotate its secret. Store it

    securely; you cannot retrieve it again.


    **Verify with a Svix library (recommended):**


    ```python

    from svix.webhooks import Webhook


    wh = Webhook(signing_secret)                            # the whsec_...
    value

    payload = wh.verify(raw_request_body, request_headers)  # raises on a bad
    signature

    ```


    **Verify manually:**


    1. Build the signed content by joining the id, timestamp, and the **raw**
       request body with dots:

       ```
       signed_content = svix_id + "." + svix_timestamp + "." + raw_body
       ```

    2. Take your signing secret, drop the `whsec_` prefix, and base64-decode the
       remainder — those bytes are your HMAC key.

    3. Compute `base64(HMAC-SHA256(key, signed_content))`.


    4. The `svix-signature` header is a space-separated list of `v1,<signature>`
       entries (an endpoint can have more than one valid secret during a rotation).
       Compare your computed value against each entry's signature — the part after
       `v1,` — using a constant-time comparison, and accept if any matches.

    5. Reject deliveries whose `svix-timestamp` differs from your current time
    by
       more than a few minutes, to guard against replay.

    The body's `event_id` equals the `svix-id` without its `msg_` prefix, so you
    can

    use either to deduplicate redelivered events.


    ## Request IDs


    Every response carries an `X-Request-Id` header (also surfaced in

    `meta.request_id`). Include the value when reporting issues — it scopes

    backend logs to your specific request.


    You may also send your own `X-Request-Id` header. Values matching

    `^[A-Za-z0-9_-]{1,128}$` are honored verbatim; anything else is replaced
    with

    a generated id.


    ## Versioning


    Public endpoints are versioned under `/v1/`. Breaking changes ship under a
    new

    major version; additive changes (new fields, new endpoints) ship under the

    existing version.
  contact:
    name: Paystack Cross-Border
    url: https://globalstack.io
servers:
  - url: https://api.globalstack.io
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Supported Countries
  - name: Supported Currencies
  - name: Customers
  - name: Wallets
  - name: Beneficiaries
  - name: Quotes
  - name: Onramps
  - name: Offramps
  - name: Conversions
  - name: Transfers
  - name: Wallet Transfers
  - name: Splits
  - name: Transactions
  - name: Notification Webhooks
  - name: Me
paths:
  /v1/wallet_transfers:
    post:
      tags:
        - Wallet Transfers
      summary: Execute a wallet-to-wallet transfer
      description: >
        Move funds between two custodial wallets you own, in the **same
        currency**. This is an

        intra-ledger move: a single ledger entry, no external payout rail, no FX
        leg. The move settles

        in-request and the response carries the terminal `status` directly.


        Both wallets must:


        - belong to the API key's integration,

        - be of type `custodial` (forwarding wallets hold no balance),

        - share the same `currency`,

        - hold customers approved for on-ledger activity in that currency.


        Different customers under the same integration are allowed — Alice's
        wallet can send to Bob's as

        long as both belong to your merchant and are KYC-approved for the
        currency.


        The currency must be explicitly enabled for wallet-to-wallet transfers
        (`can_wallet_transfer` on

        `GET /v1/currencies`). The flag is independent of `can_transfer`, which
        gates outbound

        beneficiary payouts via `POST /v1/transfers`.


        ### Body


        | Field | Required | Description |

        | --- | --- | --- |

        | `from_wallet_id` | Yes | The source wallet (`wal_…`). Must be
        custodial, must belong to your integration, and must have enough
        available balance. |

        | `to_wallet_id` | Yes | The destination wallet (`wal_…`). Must be
        custodial, same currency, same integration. |

        | `amount` | Yes | Decimal string, strictly positive, with at most the
        currency's decimal places. |

        | `reference` | Yes | Your id, unique per integration. A reused one
        returns `409 duplicate_resource`. |

        | `metadata` | No | `Record<string, string>`. Echoed back verbatim on
        the response and the webhook. |


        Send an `Idempotency-Key` header so retries are safe.


        ### Status model


        The move is synchronous — there is no `processing` phase. A 200 response
        always carries

        `status: "success"`: the ledger write committed, funds moved atomically.
        Bounded failures surface

        as 4xx without persisting a row, so the merchant `reference` stays free
        for retry.


        ### Errors


        | Status | Code | When |

        | --- | --- | --- |

        | 400 | `invalid_input` | Validation (same wallet, forwarding wallet,
        mismatched currency, currency not enabled for wallet transfer, amount
        zero / too many decimals). |

        | 400 | `invalid_amount_precision` | Amount exceeds the currency's
        decimal places. |

        | 409 | `duplicate_resource` | `reference` already used by another
        wallet transfer for this integration. |

        | 422 | `ledger_insufficient_funds` | The source wallet's available
        balance is below the amount. **No row is persisted and no webhook
        fires** — retry safely once the balance is topped up. |

        | 422 | `ledger_overdraft_exceeded` | A race against a concurrent debit
        drained the balance between the pre-flight check and the ledger call.
        Same recovery as `ledger_insufficient_funds`: no row, retry when funds
        are available. |

        | 500 | `configuration_error` | Either wallet is not fully provisioned,
        or the service hit internal drift (an orphaned ledger write under this
        reference whose shape disagrees with the retry). The merchant action is
        to contact support — the row either did not land or requires manual
        reconciliation. |

        | 502 | `ledger_unavailable` / `external_service_unavailable` | The
        ledger is unreachable or returned an unparseable response. Retry safely
        with the same `reference`: the service pre-flights the reference and, if
        a prior attempt committed the move but failed to persist, recovers it on
        retry instead of moving funds twice. |


        An unreachable ledger on the short-balance recovery path also surfaces
        as 502 rather than a 422.

        The service consults the ledger to distinguish a genuine short balance
        from the drained residue

        of a prior committed move; when that lookup cannot complete, the service
        refuses to classify

        until it can, so the merchant retries safely.


        ### Webhook


        Subscribe to the `wallet_transfer` category on `POST
        /v1/webhooks/endpoints` to receive

        `wallet_transfer.success` deliveries. The payload mirrors this response
        plus the usual webhook

        envelope. There is no `wallet_transfer.failed` topic —
        insufficient-funds attempts throw 422

        without persisting a row, so no failure event is emitted.
      operationId: WalletTransferController.create
      parameters:
        - in: header
          name: Idempotency-Key
          required: false
          schema:
            type: string
            pattern: ^[A-Za-z0-9_\-]{8,255}$
          description: >-
            Optional client-supplied key. Identical key + identical body within
            24h replays the original response. Identical key + different body
            returns 409 idempotency_conflict. The hash is over raw bytes —
            clients retrying must send the byte-identical body; a re-serialised
            JSON payload will produce a different hash and a 409. Strongly
            recommended for retry-safe clients.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWalletTransferDto'
        description: CreateWalletTransferDto
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiSuccessEnvelope'
                  - type: object
                    required:
                      - data
                      - meta
                    properties:
                      message:
                        type: string
                        example: Wallet transfer completed
                      data:
                        $ref: '#/components/schemas/WalletTransferResponse'
                      meta:
                        $ref: '#/components/schemas/ApiResponseMetaSchema'
          description: Wallet transfer completed
        '400':
          description: >-
            Request body failed validation, from_wallet_id/to_wallet_id is not a
            valid wal_… id, the two wallets are the same, either side is a
            forwarding wallet, the two wallets hold different currencies, the
            currency is not enabled for wallet-to-wallet transfers, the amount
            is zero or has more decimal places than the currency settles, the
            Idempotency-Key header is malformed, or the ledger refused the
            request outright (`ledger_validation`).
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - invalid_input
                          - invalid_amount_precision
                          - ledger_validation
        '401':
          description: Unauthorized — invalid or missing API key
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - authentication_failed
        '403':
          description: >-
            The sending or receiving customer is not approved for on-ledger
            activity in this currency. Drive the customer through KYC via POST
            /v1/customers/:id/verifications before retrying.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - invalid_status
        '404':
          description: >-
            from_wallet_id or to_wallet_id was not found, or it belongs to a
            different integration
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - not_found
        '409':
          description: >-
            Conflict — possible codes: `duplicate_resource` (the `reference` is
            already used by another wallet transfer for this integration),
            `idempotency_conflict` (Idempotency-Key reused with a different
            request body), `idempotency_in_progress` (a request with the same
            Idempotency-Key is still in flight). Branch on the `code` field of
            the response envelope.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - duplicate_resource
                          - idempotency_conflict
                          - idempotency_in_progress
        '422':
          description: >-
            The source wallet does not hold enough funds to cover the transfer
            amount. No row is persisted and no webhook fires — the `reference`
            stays free for retry once the balance is topped up.
            `ledger_overdraft_exceeded` is the same case detected by the ledger
            instead of the pre-flight (concurrent debit race).
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - ledger_insufficient_funds
                          - ledger_overdraft_exceeded
        '500':
          description: >-
            Either wallet is not fully provisioned, or the service is
            misconfigured (`configuration_error`). The merchant action is to
            contact support — the row either did not land or requires manual
            reconciliation.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - configuration_error
        '502':
          description: >-
            The ledger is unreachable (`ledger_unavailable`), or the ledger
            accepted the request but returned an unparseable response
            (`external_service_unavailable`). In BOTH cases the merchant can
            safely retry with the same `reference`: the service pre-flights the
            reference and, if a prior attempt did commit, recovers the orphaned
            move on the retry rather than moving funds twice.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - ledger_unavailable
                          - external_service_unavailable
components:
  schemas:
    CreateWalletTransferDto:
      properties:
        from_wallet_id:
          maxLength: 64
          type: string
        to_wallet_id:
          maxLength: 64
          type: string
        amount:
          pattern: ^\d+(\.\d+)?$
          type: string
        reference:
          maxLength: 128
          type: string
          minLength: 1
        metadata:
          type: object
      type: object
      required:
        - from_wallet_id
        - to_wallet_id
        - amount
        - reference
    ApiSuccessEnvelope:
      properties:
        status:
          type: boolean
          enum:
            - true
          example: true
        message:
          type: string
          description: Human-readable summary
          example: Resource fetched successfully
        code:
          type: string
          enum:
            - ok
          example: ok
      type: object
      required:
        - status
        - message
        - code
    WalletTransferResponse:
      properties:
        id:
          type: string
          description: Wallet transfer external id (prefixed wtr_).
          example: wtr_01HXYZABC1234567890ABCDEFG
        reference:
          type: string
          description: Merchant-supplied reference; unique per integration.
          example: INV-2026-001
        status:
          type: string
          description: >-
            Terminal status of the move. Wallet-to-wallet transfers settle
            in-request via a single atomic ledger write, so there is no
            `processing` phase. New attempts land at `success` —
            insufficient-funds attempts throw `422 ledger_insufficient_funds`
            without persisting a row. The `failed` value is reserved for
            backfill and historical rows and should not be branched on for new
            integrations.
          enum:
            - success
            - failed
          example: success
        amount:
          type: string
          description: Transfer amount, formatted to the currency precision.
          example: '10.000000'
        currency:
          type: string
          description: Uppercase currency code
          example: USDC
        from_wallet:
          $ref: '#/components/schemas/WalletTransferWalletResponse'
          description: Projection of the source wallet (with its customer).
        to_wallet:
          $ref: '#/components/schemas/WalletTransferWalletResponse'
          description: Projection of the destination wallet (with its customer).
        failure_reason:
          type: string
          nullable: true
          description: >-
            Stable machine-readable failure code; null on all `success` rows.
            Reserved for historical `failed` rows — no new attempts persist with
            a non-null `failure_reason`.
          example: null
        failure_reason_message:
          type: string
          nullable: true
          description: >-
            Human-readable failure explanation; null on all `success` rows.
            Reserved for historical `failed` rows.
          example: null
        created_at:
          type: string
          format: date-time
          example: '2026-10-31T07:00:00.000Z'
        terminal_at:
          type: string
          description: When the move reached its terminal status.
          format: date-time
          example: '2026-10-31T07:00:00.000Z'
        metadata:
          type: object
          description: >-
            Merchant-supplied metadata, echoed back verbatim. Empty object if
            omitted.
          example: {}
      type: object
      required:
        - id
        - reference
        - status
        - amount
        - currency
        - from_wallet
        - to_wallet
        - created_at
        - terminal_at
        - metadata
    ApiResponseMetaSchema:
      properties:
        request_id:
          type: string
          description: ULID-prefixed identifier for this request
          example: req_01HXYZ4K5ABCDEFGHJKLMNPQRS
        timestamp:
          type: string
          format: date-time
          example: '2026-05-14T15:43:55.732Z'
        version:
          type: string
          description: Major API version parsed from /vN/
          example: '1'
      type: object
      required:
        - request_id
        - timestamp
        - version
    ApiErrorEnvelope:
      properties:
        status:
          type: boolean
          enum:
            - false
          example: false
        message:
          type: string
          description: Human-readable failure summary
          example: Resource not found
        code:
          type: string
          description: Stable error code for branching logic
          example: not_found
        data:
          type: object
          nullable: true
          example: null
        meta:
          $ref: '#/components/schemas/ApiErrorMetaSchema'
      type: object
      required:
        - status
        - message
        - code
        - data
        - meta
    WalletTransferWalletResponse:
      properties:
        id:
          type: string
          example: wal_01HXYZ
          description: Wallet external id.
        currency:
          type: string
          description: Uppercase currency code.
          example: USDC
        label:
          type: string
          nullable: true
          example: USDC Wallet
        customer:
          $ref: '#/components/schemas/WalletTransferCustomerResponse'
          description: The customer that owns this wallet.
      type: object
      required:
        - id
        - currency
        - customer
    ApiErrorMetaSchema:
      properties:
        next_steps:
          $ref: '#/components/schemas/NextStepsSchema'
        request_id:
          type: string
          description: ULID-prefixed identifier for this request
          example: req_01HXYZ4K5ABCDEFGHJKLMNPQRS
        timestamp:
          type: string
          format: date-time
          example: '2026-05-14T15:43:55.732Z'
        version:
          type: string
          description: Major API version parsed from /vN/
          example: '1'
      type: object
      required:
        - next_steps
        - request_id
        - timestamp
        - version
    WalletTransferCustomerResponse:
      properties:
        id:
          type: string
          example: cust_01HXYZ
          description: Customer external id.
        type:
          type: string
          enum:
            - individual
            - business
          example: individual
        name:
          type: string
          example: Alice Johnson
        email:
          format: email
          type: string
          example: alice@example.com
        tier:
          type: string
          enum:
            - tier_0
            - tier_1
            - tier_2
          example: tier_2
        created_at:
          type: string
          format: date-time
          example: '2026-10-31T07:00:00.000Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-10-31T07:00:00.000Z'
      type: object
      required:
        - id
        - type
        - name
        - email
        - tier
        - created_at
        - updated_at
    NextStepsSchema:
      properties:
        action:
          type: string
          description: Suggested action for the caller
          example: Verify the resource identifier and retry.
        docs_url:
          type: string
          format: uri
          example: https://docs.globalstack.io/errors#not_found
      type: object
      required:
        - action
        - docs_url
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key issued during merchant onboarding.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.