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

# Get card details

> Returns the current status and details of card orders. If `card_id` is provided, returns a single card (either U.S. non-reloadable or international non-reloadable — the endpoint looks up the card across both). If omitted, returns all cards of the given `card_type` for the authenticated user; `card_type` defaults to `Non-Reloadable U.S.` when omitted, so existing callers see unchanged behavior. Pass `card_type=Non-Reloadable International` to list international cards.

For U.S. non-reloadable cards, details take ~7-10 seconds to become available after ordering; poll every 2-3 seconds until `status` is `"ready"`, then read `card_details`. For international non-reloadable cards, the order is `queued` until an admin fulfills it (typically within 24 hours), after which `card_details` is populated.

For international cards, the `card_id` returned by `/order-intl-card` is a queue id. After admin fulfillment, the issuer's transaction id becomes the new `card_id` and the original queue id is preserved on the card as `queued_order_card_id`. You can keep polling `/get-card-data?card_id=<original-queue-id>` and it will resolve to the fulfilled card.

Requires a Bearer token from `/auth` or `/get-card`.



## OpenAPI

````yaml /api-reference/openapi.json get /get-card-data
openapi: 3.1.0
info:
  title: Laso Finance x402 API
  version: 1.0.0
  description: >-
    Payment-gated API for Laso Finance. All paywalled routes use the x402
    protocol — the caller includes a USDC payment header on Base (eip155:8453)
    or Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) and the server verifies
    payment before processing. Free routes require no payment header.


    ## Getting started


    To set up a wallet for making x402 payments, choose a provider:


    - **Locus** (default): https://paywithlocus.com/SKILL.md

    - **Sponge**: https://wallet.paysponge.com/skill.md — automatic x402 service
    discovery

    - **Ampersend**: https://www.ampersend.ai/getting-started.md — self-custody
    on Base with dual-approval spending limits. Laso Finance is a default skill,
    so no manual endpoint registration is needed.


    ## How x402 works


    1. Call a paywalled endpoint without a payment header → receive a `402
    Payment Required` response containing payment details (price, recipient
    address, network).

    2. Construct an x402 payment header using the details from the 402 response.

    3. Replay the request with the payment header → the server verifies payment
    and processes the request.


    ## Authentication flow


    `GET /auth` is free: callers prove wallet ownership by sending a
    `SIGN-IN-WITH-X` header (CAIP-122 wallet signature). Paywalled routes
    (`/get-card`, `/order-gift-card`, `/get-push-to-card`, `/order-intl-card`)
    also return fresh auth credentials in their responses, so a payment is never
    required just to obtain a token.


    Most routes return auth credentials (`id_token`, `refresh_token`,
    `expires_in`). Use the `id_token` as a Bearer token to call authenticated
    Laso Finance endpoints like `/get-card-data`. When the `id_token` expires,
    use `POST /auth` with `grant_type: refresh_token` to get a new one.


    ## Important notes


    The `/get-card` USA prepaid card endpoint is U.S. only — issued in USD,
    usable at U.S.-based merchants only, and physical goods must ship to a U.S.
    address. For non-U.S. merchants or non-USD currencies, use `GET
    /order-intl-card` instead (international prepaid card, admin-fulfilled
    within 24 hours). All cards are intended for the caller's own use.


    For step-by-step instructions, read https://laso.finance/SKILL.md
servers:
  - url: https://laso.finance
    description: Production
security: []
paths:
  /get-card-data:
    get:
      summary: Get card details
      description: >-
        Returns the current status and details of card orders. If `card_id` is
        provided, returns a single card (either U.S. non-reloadable or
        international non-reloadable — the endpoint looks up the card across
        both). If omitted, returns all cards of the given `card_type` for the
        authenticated user; `card_type` defaults to `Non-Reloadable U.S.` when
        omitted, so existing callers see unchanged behavior. Pass
        `card_type=Non-Reloadable International` to list international cards.


        For U.S. non-reloadable cards, details take ~7-10 seconds to become
        available after ordering; poll every 2-3 seconds until `status` is
        `"ready"`, then read `card_details`. For international non-reloadable
        cards, the order is `queued` until an admin fulfills it (typically
        within 24 hours), after which `card_details` is populated.


        For international cards, the `card_id` returned by `/order-intl-card` is
        a queue id. After admin fulfillment, the issuer's transaction id becomes
        the new `card_id` and the original queue id is preserved on the card as
        `queued_order_card_id`. You can keep polling
        `/get-card-data?card_id=<original-queue-id>` and it will resolve to the
        fulfilled card.


        Requires a Bearer token from `/auth` or `/get-card`.
      operationId: getCardData
      parameters:
        - name: card_id
          in: query
          required: false
          description: >-
            The card ID returned from `/get-card` or `/order-intl-card`. If
            omitted, returns all cards for the user.
          schema:
            type: string
        - name: card_type
          in: query
          required: false
          description: >-
            When listing all cards (no `card_id`), filters by card type.
            Defaults to `Non-Reloadable U.S.` if omitted (preserves existing
            client behavior). Pass `Non-Reloadable International` to list
            international cards.
          schema:
            type: string
            enum:
              - Non-Reloadable U.S.
              - Non-Reloadable International
            default: Non-Reloadable U.S.
      responses:
        '200':
          description: >-
            Card status and details. Returns a single `CardData` object when
            `card_id` is provided, or `{ "cards": CardData[] }` when omitted.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/CardData'
                  - type: object
                    properties:
                      cards:
                        type: array
                        items:
                          $ref: '#/components/schemas/CardData'
        '400':
          description: >-
            Invalid card_type. Must be "Non-Reloadable" or "Non-Reloadable
            International" when provided.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: >-
                  card_type must be "Non-Reloadable" or "Non-Reloadable
                  International" when provided. Received: foo
        '401':
          description: Missing or invalid Bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Missing or invalid Authorization header
        '403':
          description: >-
            Not authorized to view this card, or the account is frozen (frozen
            responses include a `frozen_message` field).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Not authorized to view this card
        '404':
          description: Card not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Card not found
      security:
        - BearerAuth: []
components:
  schemas:
    CardData:
      type: object
      description: >-
        Response from `/get-card-data`. When `status` is `ready`, `card_details`
        contains the card number, CVV, and expiry. International cards include
        extra fields (`label`, `charged_usd_amount`, `fees_paid`, `state`,
        `balance_update_requested_timestamp`, `queued_order_card_id`).
      properties:
        card_id:
          type: string
        card_type:
          type: string
          enum:
            - Non-Reloadable U.S.
            - Non-Reloadable International
        usd_amount:
          type: number
        country:
          type: string
          description: U.S. cards only.
          example: US
        label:
          type: string
          description: International cards only. User-supplied label, may be empty.
          nullable: true
        charged_usd_amount:
          type: number
          description: >-
            International cards only. Amount the user was charged including
            fees.
        fees_paid:
          type: number
          description: International cards only. Fees paid for this card.
        state:
          type: string
          description: International cards only. Raw card state.
          enum:
            - queued
            - redeemable
            - complete
            - refund-requested
            - refund-requested-approved-for-queue
            - archived
            - refunded
        balance_update_requested_timestamp:
          type: number
          nullable: true
          description: >-
            International cards only. Unix timestamp (ms) of an outstanding
            admin balance update request, or null if none is pending.
        queued_order_card_id:
          type: string
          nullable: true
          description: >-
            International cards only. The original `card_id` returned by
            `/order-intl-card`. After admin fulfillment the card is reissued
            with a new `card_id` (the issuer's transaction id); querying
            `/get-card-data?card_id=<original>` continues to resolve to the
            fulfilled card via this field.
        timestamp:
          type: number
        timestamp_readable:
          type: string
        last_updated_timestamp:
          type: number
          description: >-
            U.S. cards only. Unix timestamp (ms) of the last time card data was
            refreshed.
        status:
          type: string
          enum:
            - pending
            - ready
            - queued
            - complete
            - refund-requested
            - refunded
            - archived
        card_details:
          type: object
          description: >-
            Only present when status is `ready` (U.S.) or `complete`
            (international).
          properties:
            card_number:
              type: string
            exp_month:
              type: string
            exp_year:
              type: string
            cvv:
              type: string
            available_balance:
              type: number
        transactions:
          type: array
          description: >-
            Card transaction history. U.S. and international cards use slightly
            different shapes — see `CardTransaction` and `IntlCardTransaction`.
          items:
            oneOf:
              - $ref: '#/components/schemas/CardTransaction'
              - $ref: '#/components/schemas/IntlCardTransaction'
    Error:
      type: object
      properties:
        error:
          type: string
    CardTransaction:
      type: object
      description: U.S. prepaid card transaction.
      properties:
        amount:
          type: number
        date:
          type: string
        description:
          type: string
        is_credit:
          type: boolean
    IntlCardTransaction:
      type: object
      description: International prepaid card transaction.
      properties:
        amount:
          type: number
          description: Transaction amount in USD.
        date:
          type: number
          nullable: true
          description: Unix timestamp (ms) of the transaction.
        merchant:
          type: string
        status:
          type: string
          nullable: true
          description: Optional status, e.g. `pending`.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: ID token from `/auth` or `/get-card`

````