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

# Get order status

> Authenticated order state by exactly one of id, quoteId, or txHash; client keys require id or quoteId with a matching read token.

**/v1/orchestration/status**


## OpenAPI

````yaml https://orchestration.flashnet.xyz/openapi.json GET /v1/orchestration/status
openapi: 3.1.0
info:
  title: Flashnet Orchestrator API
  version: 0.1.0
  description: >-
    Partner API for quotes, orders, standing deposits, webhooks, and affiliates.
    Operations marked x-excluded are omitted from the documentation navigation;
    internal, pay-link, SSE, and provider-integration routes are outside this
    registry.
servers:
  - url: https://orchestration.flashnet.xyz
security: []
tags:
  - name: Orchestration
    description: >-
      Routes, limits, estimates, quotes, orders, onramp, and ZeroConf decisions
      for one-off swaps.
  - name: Standing Deposit Addresses
    description: >-
      Permanent per-customer deposit addresses bound to one immutable conversion
      instruction.
  - name: Webhooks
    description: >-
      Registration of HTTPS endpoints for order status events and recovery
      events.
  - name: Affiliates
    description: Registered fee recipients, their accrued balances, and claims.
  - name: Accumulation Addresses
    description: >-
      Legacy reusable addresses that convert one source asset into Spark BTC or
      USDB.
  - name: Liquidations
    description: >-
      Legacy Bitcoin L1 deposit addresses that convert each output to a
      configured destination.
  - name: System
  - name: Explorer
  - name: Dashboard
  - name: Affiliate Dashboard
paths:
  /v1/orchestration/status:
    get:
      tags:
        - Orchestration
      summary: Get order status
      description: >-
        Authenticated order state by exactly one of id, quoteId, or txHash;
        client keys require id or quoteId with a matching read token.
      operationId: getV1OrchestrationStatus
      parameters:
        - schema:
            type: string
          required: false
          name: id
          in: query
        - schema:
            type: string
          required: false
          name: quoteId
          in: query
        - schema:
            type: string
            enum:
              - 'true'
            description: >-
              Independent opt-in with id or quoteId. Includes private-account
              aggregate funding progress, including order:null before
              materialization. Does not change includeFunding provider outcomes.
          required: false
          description: >-
            Independent opt-in with id or quoteId. Includes private-account
            aggregate funding progress, including order:null before
            materialization. Does not change includeFunding provider outcomes.
          name: includeShieldedFunding
          in: query
        - schema:
            type: string
            enum:
              - 'true'
            description: >-
              Quote selector only. Include retained provider outcomes and allow
              order:null when a report exists before order creation.
              Unfunded/unknown quotes still return 404.
          required: false
          description: >-
            Quote selector only. Include retained provider outcomes and allow
            order:null when a report exists before order creation.
            Unfunded/unknown quotes still return 404.
          name: includeFunding
          in: query
        - schema:
            type: string
          required: false
          name: txHash
          in: query
        - schema:
            $ref: '#/components/schemas/Chain'
          required: false
          name: sourceChain
          in: query
        - schema:
            type: string
            description: Matching read token for client-key lookups by `id` or `quoteId`.
          required: false
          description: Matching read token for client-key lookups by `id` or `quoteId`.
          name: readToken
          in: query
      responses:
        '200':
          description: Order status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrchestrationStatusResponse'
              examples:
                success:
                  summary: Completed order
                  value:
                    order:
                      id: ord_b91bbf90-42dc-4fe3-9b15-1d2c7e19cce6
                      type: order
                      quoteId: q_7e450ab4-935b-4f8d-a6c4-4987a3cd2831
                      status: completed
                      sourceChain: bitcoin
                      sourceAsset: BTC
                      destinationChain: solana
                      destinationAsset: USDC
                      depositAddress: bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh
                      recipientAddress: 7EcDhSYGxXyscszYEp35KHN8vvw3svAuLKTzXwCFLtV
                      amountIn: '100000'
                      amountOut: '99000000'
                      feeAmount: '500000'
                      feeAsset: USDC
                      feeBps: 50
                      slippageBps: 100
                      createdAt: '2026-09-12T12:00:00.000Z'
                      updatedAt: '2026-09-12T12:04:00.000Z'
                      completedAt: '2026-09-12T12:04:00.000Z'
                    stages:
                      - name: completed
                        status: completed
                        completedAt: '2026-09-12T12:04:00.000Z'
        '400':
          description: Invalid query
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: >-
            Rate limited (`rate_limited`); see the [rate-limits
            guide](/api/rate-limits). Retry after Retry-After seconds when
            present (per-key limiter only), otherwise at X-RateLimit-Reset, an
            absolute epoch timestamp in milliseconds; both limiters also return
            X-RateLimit-Limit and X-RateLimit-Remaining.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    Chain:
      type: string
      enum:
        - arbitrum
        - arc
        - avalanche
        - base
        - bitcoin
        - bsc
        - ethereum
        - hedera
        - hypercore
        - hyperevm
        - lightning
        - litecoin
        - monad
        - monero
        - optimism
        - plasma
        - polygon
        - robinhood
        - sei
        - solana
        - spark
        - tempo
        - ton
        - tron
        - xrp
        - zcash
    OrchestrationStatusResponse:
      type: object
      properties:
        order:
          allOf:
            - $ref: '#/components/schemas/OperationRecord'
            - type:
                - object
                - 'null'
              description: >-
                Null when explicit includeFunding or includeShieldedFunding
                resolves pre-operation funding.
        stages:
          type: array
          items:
            $ref: '#/components/schemas/OperationStage'
        funding:
          type: array
          items:
            $ref: '#/components/schemas/QuoteFundingOutcome'
        fundingStatus:
          allOf:
            - $ref: '#/components/schemas/ShieldedFundingStatus'
            - description: Only with includeShieldedFunding=true.
        fundingDetails:
          allOf:
            - $ref: '#/components/schemas/ShieldedFundingDetails'
            - description: >-
                Aggregate zatoshi amounts only; no private receipt or
                transaction identities.
      required:
        - order
        - stages
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      additionalProperties: false
    OperationRecord:
      type: object
      properties:
        id:
          type: string
        reviewedAssets:
          type: array
          items:
            $ref: '#/components/schemas/ReviewedAssetIdentity'
          minItems: 1
          maxItems: 32
          description: >-
            Exact immutable reviewed token identities frozen by the native
            quote. Omitted for legacy or invalid snapshots; caller metadata
            cannot set these pins.
        frozenAssets:
          type: array
          items:
            $ref: '#/components/schemas/FrozenAssetDisplayMetadata'
          minItems: 1
          maxItems: 32
          description: >-
            Additive display metadata derived from the validated order-frozen
            plan. Amounts remain integer smallest units; scaled-ui and other
            non-raw models require an explicit semantic label.
        type:
          type: string
          enum:
            - order
        quoteId:
          type:
            - string
            - 'null'
        tag:
          type:
            - string
            - 'null'
          description: >-
            Partner tag from the quote that funded this order; null when
            untagged.
        status:
          type: string
          description: >-
            Partner-visible order status. Internal paused orders are reported as
            processing. fallback_delivered is terminal: an unlisted-token order
            whose swap could not meet minAmountOut delivered the quoted fallback
            hub instead (fallbackAsset, fallbackAmount, fallbackTxHash), and
            amountOut is null.
        sourceChain:
          allOf:
            - $ref: '#/components/schemas/Chain'
            - type:
                - string
                - 'null'
        sourceAsset:
          type:
            - string
            - 'null'
        sourceAddress:
          type:
            - string
            - 'null'
        sourceTxHash:
          type:
            - string
            - 'null'
        sourceTxVout:
          type:
            - integer
            - 'null'
        sourceTxKey:
          type:
            - string
            - 'null'
        sweepTxHash:
          type:
            - string
            - 'null'
        destinationChain:
          allOf:
            - $ref: '#/components/schemas/Chain'
            - type:
                - string
                - 'null'
        destinationAsset:
          type:
            - string
            - 'null'
        destinationAddress:
          type:
            - string
            - 'null'
        destinationTxHash:
          type:
            - string
            - 'null'
        depositAddress:
          type:
            - string
            - 'null'
        recipientAddress:
          type:
            - string
            - 'null'
        supersededByOperationId:
          type:
            - string
            - 'null'
          description: >-
            Successor order ID for a recovered deposit; follow it for the
            delivered result.
        recoveredFromOperationId:
          type:
            - string
            - 'null'
          description: Original order ID whose replaced deposit this order recovered.
        amountIn:
          type:
            - string
            - 'null'
        amountOut:
          type:
            - string
            - 'null'
          description: >-
            Delivered destination amount in smallest units, after delivery fees;
            null until completion.
        amountInUsd:
          type: string
          description: Decimal USD value of amountIn on completed orders when derivable.
        amountOutUsd:
          type: string
          description: Decimal USD value of amountOut on completed orders when derivable.
        amountFiatUsd:
          type: string
          description: Requested USD amount, present when the order used amountFiatUsd.
        amountFiatCurrency:
          type: string
          description: Currency for amountFiatUsd. Always "USD" today.
        spotUsdPerBtc:
          type: string
          description: >-
            BTC/USD spot used to convert amountFiatUsd to sats at order
            creation.
        feeBps:
          type:
            - integer
            - 'null'
        feeAmount:
          type:
            - string
            - 'null'
        feeAsset:
          type:
            - string
            - 'null'
        feeAssetDetails:
          $ref: '#/components/schemas/PublicAssetDetails'
        feeAmountUsd:
          type: string
        totalFeeAmountUsd:
          type: string
        roundingFeeAmount:
          type:
            - string
            - 'null'
        slippageBps:
          type:
            - integer
            - 'null'
        flashnetRequestId:
          type:
            - string
            - 'null'
        sparkTxHash:
          type:
            - string
            - 'null'
        refundAsset:
          type:
            - string
            - 'null'
        refundAmount:
          type:
            - string
            - 'null'
        refundTxHash:
          type:
            - string
            - 'null'
        fallbackAsset:
          type:
            - string
            - 'null'
          description: >-
            fallback_delivered orders only: the hub asset delivered on
            destinationChain instead of the token.
        fallbackAmount:
          type:
            - string
            - 'null'
          description: >-
            fallback_delivered orders only: delivered fallbackAsset amount in
            smallest units.
        fallbackTxHash:
          type:
            - string
            - 'null'
          description: >-
            fallback_delivered orders only: transaction that delivered
            fallbackAsset, a 0x hash on EVM or a base58 signature on Solana.
        errorCode:
          type:
            - string
            - 'null'
          description: Partner-safe error code.
        errorMessage:
          type:
            - string
            - 'null'
          description: Partner-safe error message.
        swap:
          type: object
          properties: {}
        ingressSwap:
          type: object
          properties: {}
        egressSwap:
          type: object
          properties: {}
        feePlan:
          type: object
          properties: {}
        feePayouts:
          type: object
          properties: {}
        priceLock:
          type: object
          properties: {}
        reprice:
          type: object
          properties: {}
        paymentIntent:
          type: object
          properties: {}
        zeroconfOffer:
          type: object
          properties: {}
          description: >-
            Bitcoin ZeroConf outcome; denied outcomes require a valid readToken
            or X-Read-Token.
        totalFeeBps:
          type: integer
        totalFeeAmount:
          type: string
        createdAt:
          type: string
        updatedAt:
          type: string
        completedAt:
          type:
            - string
            - 'null'
      required:
        - id
        - type
        - status
        - createdAt
        - updatedAt
    OperationStage:
      type: object
      properties:
        name:
          type: string
        status:
          type: string
          enum:
            - completed
        completedAt:
          type: string
      required:
        - name
        - status
        - completedAt
      additionalProperties: false
    QuoteFundingOutcome:
      type: object
      properties:
        id:
          type: string
        quoteId:
          type: string
        state:
          type: string
          enum:
            - refund_reported
            - needs_review
        provider:
          type: string
          enum:
            - near
            - relay
        providerStatus:
          type: string
        reason:
          type: string
          enum:
            - fee_estimation_failed
            - provider_refund
            - provider_failure
        source:
          type: object
          properties:
            chain:
              type: string
            asset:
              type: string
          required:
            - chain
            - asset
        destination:
          type: object
          properties:
            chain:
              type: string
            asset:
              type: string
          required:
            - chain
            - asset
        quotedAmountIn:
          type:
            - string
            - 'null'
          pattern: ^\d{1,78}$
        quotedEstimatedOut:
          type:
            - string
            - 'null'
          pattern: ^\d{1,78}$
        providerReported:
          type: object
          properties:
            depositedAmount:
              type:
                - string
                - 'null'
              pattern: ^\d{1,78}$
            refundedAmount:
              type:
                - string
                - 'null'
              pattern: ^\d{1,78}$
          required:
            - depositedAmount
            - refundedAmount
        providerOriginTxHashes:
          type: array
          items:
            type: string
          maxItems: 16
        refundDestination:
          type: string
          enum:
            - customer_provided
            - internal_recovery
            - unknown
        customerRefundVerified:
          type: boolean
          enum:
            - false
        observedAt:
          type: string
          format: date-time
      required:
        - id
        - quoteId
        - state
        - provider
        - providerStatus
        - reason
        - source
        - destination
        - quotedAmountIn
        - quotedEstimatedOut
        - providerReported
        - providerOriginTxHashes
        - refundDestination
        - customerRefundVerified
        - observedAt
    ShieldedFundingStatus:
      type: string
      enum:
        - awaiting_payment
        - detected
        - confirming
        - ready
        - provider_funding
        - provider_processing
        - settling
        - delivering
        - completed
        - recovery_required
        - refunding
        - refunded
    ShieldedFundingDetails:
      type: object
      properties:
        version:
          type: number
          enum:
            - 1
        sourcePaymentMode:
          type: string
          enum:
            - shielded
        senderVisibility:
          type: string
          enum:
            - shielded
          description: >-
            Receipt proof does not identify the sender or originating wallet
            software.
        sourceHistoryScreening:
          type: string
          enum:
            - unavailable
          description: >-
            Hidden source history is unavailable. Screening of visible
            counterparties is separate from receipt verification.
        amountExpected:
          type: string
          pattern: ^(0|[1-9][0-9]*)$
        amountReceived:
          type: string
          pattern: ^(0|[1-9][0-9]*)$
        amountConfirmed:
          type: string
          pattern: ^(0|[1-9][0-9]*)$
        amountAllocated:
          type: string
          pattern: ^(0|[1-9][0-9]*)$
        confirmations:
          type: integer
          minimum: 0
        requiredConfirmations:
          type: integer
          exclusiveMinimum: 0
        payBy:
          type: string
          format: date-time
        selectedProvider:
          type:
            - string
            - 'null'
          enum:
            - near-intents
            - hyperunit
          description: >-
            Provider committed in the immutable execution attempt; null before
            commitment.
        providerLocked:
          type: boolean
          description: Whether an execution attempt has committed a provider.
        recoveryReason:
          type: object
          properties:
            code:
              type: string
              enum:
                - allocation_reorg
                - excess_payment
                - late_payment
                - funding_expired
                - too_many_notes
                - mixed_pools
                - provider_failed
                - provider_released
                - reconciliation_required
          required:
            - code
          additionalProperties: false
          description: >-
            Safe recovery category; never raw provider errors or private receipt
            evidence.
        refundLastVerifiedAt:
          type: string
          format: date-time
          description: >-
            For refunded: oldest latest owned-node canonical check across all
            customer refund obligations. Status is as of these checks, not a
            guarantee of continuous canonicality; failed rechecks invalidate it.
      required:
        - version
        - sourcePaymentMode
        - senderVisibility
        - sourceHistoryScreening
        - amountExpected
        - amountReceived
        - amountConfirmed
        - amountAllocated
        - confirmations
        - requiredConfirmations
        - payBy
      additionalProperties: false
    ErrorDetail:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      additionalProperties: false
    ReviewedAssetIdentity:
      type: object
      properties:
        version:
          type: number
          enum:
            - 1
        catalogVersion:
          type: string
          pattern: ^sha256:[0-9a-f]{64}$
        chain:
          type: string
          enum:
            - solana
            - ethereum
            - bsc
            - arbitrum
        asset:
          type: string
          minLength: 1
          maxLength: 32
        address:
          type: string
          minLength: 32
          maxLength: 44
        decimals:
          type: integer
          minimum: 0
          maximum: 255
        tokenProgram:
          type: string
          enum:
            - erc20
            - spl
            - token-2022
        mechanic:
          type: string
          enum:
            - standard
            - scaled-ui
            - rebasing
            - accumulating
        mechanicHash:
          type: string
          pattern: ^sha256:[0-9a-f]{64}$
      required:
        - version
        - catalogVersion
        - chain
        - asset
        - address
        - decimals
        - tokenProgram
        - mechanic
        - mechanicHash
      additionalProperties: false
    FrozenAssetDisplayMetadata:
      type: object
      properties:
        version:
          type: number
          enum:
            - 1
        chain:
          type: string
          pattern: ^[a-z][a-z0-9-]{0,63}$
        asset:
          type: string
          pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$
        address:
          type:
            - string
            - 'null'
        decimals:
          type: integer
          minimum: 0
          maximum: 255
        tokenProgram:
          type: string
          enum:
            - native
            - erc20
            - spl
            - token-2022
            - external
        amountModel:
          type: string
          enum:
            - raw
            - scaled-ui
            - rebasing
            - accumulating
            - unknown
      required:
        - version
        - chain
        - asset
        - address
        - decimals
        - tokenProgram
        - amountModel
      additionalProperties: false
    PublicAssetDetails:
      type: object
      properties:
        chain:
          $ref: '#/components/schemas/Chain'
        asset:
          type: string
        assetDisplayName:
          type: string
        assetDisplaySymbol:
          type: string
        contractAddress:
          type:
            - string
            - 'null'
        decimals:
          type: integer
        tokenProgram:
          type: string
          enum:
            - erc20
            - spl
            - token-2022
        reviewedIdentity:
          $ref: '#/components/schemas/ReviewedAssetIdentity'
        chainId:
          type:
            - string
            - 'null'
        chainDisplayName:
          type: string
        chainIcon:
          type:
            - string
            - 'null'
        assetIcon:
          type: string
          format: uri
          description: >-
            Absolute https logo URL served from the asset registry. Absent when
            the asset has no registry logo; clients keep their bundled artwork.
        listing:
          type: string
          enum:
            - listed
            - unlisted
          description: >-
            unlisted for a source or destination named by a token address the
            asset registry does not list; absent means listed. Unlisted details
            come from the token contract or mint and are display data only;
            asset and contractAddress are the canonical address, and a Solana
            mint carries tokenProgram.
      required:
        - chain
        - asset
        - assetDisplayName
        - assetDisplaySymbol
        - contractAddress
        - decimals
        - chainId
        - chainDisplayName
        - chainIcon
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Partner API key in the form `Authorization: Bearer fn_...`.'

````

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