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

# Poll the latest Swapped order status for a smart account

> Returns the latest Swapped order recorded for the smart account (from notify webhooks), or `{ ok: false, reason: "no_order" }` when none exists yet.



## OpenAPI

````yaml https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /onramp/swapped/status/{smartAccount}
openapi: 3.1.0
info:
  title: Deposit Service API
  version: 1.0.0
  description: >-
    Cross-chain deposit processing service with automatic token bridging and gas
    sponsorship
servers:
  - url: https://v1.orchestrator.rhinestone.dev/deposit-processor
security: []
paths:
  /onramp/swapped/status/{smartAccount}:
    get:
      tags:
        - Onramp
      summary: Poll the latest Swapped order status for a smart account
      description: >-
        Returns the latest Swapped order recorded for the smart account (from
        notify webhooks), or `{ ok: false, reason: "no_order" }` when none
        exists yet.
      parameters:
        - schema:
            type: string
            pattern: ^0x[a-fA-F0-9]{40}$
            description: Ethereum address (0x followed by 40 hex characters)
            example: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
          required: true
          description: Ethereum address (0x followed by 40 hex characters)
          name: smartAccount
          in: path
        - schema:
            type: string
            description: API key for authentication (omit when sending Authorization)
            example: your-api-key
          required: false
          description: API key for authentication (omit when sending Authorization)
          name: x-api-key
          in: header
        - schema:
            type: string
            description: >-
              Bearer platform token (e.g. forwarded by user-service). Takes
              precedence over `x-api-key` when both are present.
            example: Bearer eyJhbGciOi...
          required: false
          description: >-
            Bearer platform token (e.g. forwarded by user-service). Takes
            precedence over `x-api-key` when both are present.
          name: authorization
          in: header
      responses:
        '200':
          description: Latest order status (or no_order)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SwappedStatusResponse'
        '400':
          description: Invalid smart account address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required or invalid credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: API key lacks required deposits scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Swapped on-ramp is not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SwappedStatusResponse:
      type: object
      properties:
        ok:
          type: boolean
        reason:
          type: string
        orderId:
          type: string
        status:
          type:
            - string
            - 'null'
        orderCrypto:
          type:
            - string
            - 'null'
        orderCryptoAmount:
          type:
            - string
            - 'null'
        transactionId:
          type:
            - string
            - 'null'
        receivedAt:
          type:
            - string
            - 'null'
        paidAmountUsd:
          type:
            - number
            - 'null'
        paidAmountEur:
          type:
            - number
            - 'null'
        onrampFeeUsd:
          type:
            - number
            - 'null'
        paymentMethod:
          type:
            - string
            - 'null'
      required:
        - ok
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
              code:
                type: string
            required:
              - message
      required:
        - error

````