> ## 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 quote and order

> Quote, optional order, and retained provider funding outcomes. An absent order does not imply an absent deposit. quote may be null after cleanup when a funding report survives. Server key.

**/v1/orchestration/order**


## OpenAPI

````yaml https://orchestration.flashnet.xyz/openapi.json GET /v1/orchestration/order
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/order:
    get:
      tags:
        - Orchestration
      summary: Get quote and order
      description: >-
        Quote, optional order, and retained provider funding outcomes. An absent
        order does not imply an absent deposit. quote may be null after cleanup
        when a funding report survives. Server key.
      operationId: getV1OrchestrationOrder
      parameters:
        - schema:
            type: string
            minLength: 1
          required: true
          name: quoteId
          in: query
      responses:
        '200':
          description: Quote plus associated order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrchestrationOrderResponse'
              examples:
                success:
                  summary: Quote and completed order
                  value:
                    quote:
                      id: q_7e450ab4-935b-4f8d-a6c4-4987a3cd2831
                      kind: sell
                      sourceChain: bitcoin
                      sourceAsset: BTC
                      destinationChain: solana
                      destinationAsset: USDC
                      amountIn: '100000'
                      estimatedOut: '99000000'
                      feeBps: 50
                      feeAmount: '500000'
                      feeAsset: USDC
                      roundingFeeAmount: '0'
                      depositAddress: bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh
                      recipientAddress: 7EcDhSYGxXyscszYEp35KHN8vvw3svAuLKTzXwCFLtV
                      slippageBps: 100
                      expiresAt: '2026-09-12T12:02:00.000Z'
                      expired: true
                      createdAt: '2026-09-12T12:00:00.000Z'
                    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'
        '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:
    OrchestrationOrderResponse:
      type: object
      properties:
        quote:
          allOf:
            - $ref: '#/components/schemas/QuoteSummary'
            - type:
                - object
                - 'null'
              description: >-
                Null when only a retained provider outcome survives quote
                cleanup.
        order:
          allOf:
            - $ref: '#/components/schemas/OperationRecord'
            - type:
                - object
                - 'null'
        stages:
          type: array
          items:
            $ref: '#/components/schemas/OperationStage'
        funding:
          type: array
          items:
            $ref: '#/components/schemas/QuoteFundingOutcome'
      required:
        - quote
        - order
        - stages
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      additionalProperties: false
    QuoteSummary:
      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.
        kind:
          type: string
        sourceChain:
          $ref: '#/components/schemas/Chain'
        sourceAsset:
          type: string
        destinationChain:
          $ref: '#/components/schemas/Chain'
        destinationAsset:
          type: string
        amountIn:
          type: string
        estimatedOut:
          type: string
        feeBps:
          type: integer
        feeAmount:
          type: string
        feeAsset:
          type: string
        feeAssetDetails:
          $ref: '#/components/schemas/PublicAssetDetails'
        feeAmountUsd:
          type: string
        roundingFeeAmount:
          type: string
        depositAddress:
          type:
            - string
            - 'null'
        recipientAddress:
          type: string
        slippageBps:
          type: integer
        expiresAt:
          type: string
        expired:
          type: boolean
        createdAt:
          type: string
      required:
        - id
        - kind
        - sourceChain
        - sourceAsset
        - destinationChain
        - destinationAsset
        - amountIn
        - estimatedOut
        - feeBps
        - feeAmount
        - roundingFeeAmount
        - depositAddress
        - recipientAddress
        - slippageBps
        - expiresAt
        - expired
        - createdAt
      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
    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
    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
    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
    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
  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.