> ## 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.

# Accept deposit ZeroConf offer

> Record the Bitcoin deposit ZeroConf decision; conflicting or stale decisions return standing_zeroconf_offer_conflict. Requires a server key.

**/v1/standing-deposit-addresses/\{ref}/deposits/\{depositId}/zeroconf/accept**


## OpenAPI

````yaml https://orchestration.flashnet.xyz/openapi.json POST /v1/standing-deposit-addresses/{ref}/deposits/{depositId}/zeroconf/accept
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/standing-deposit-addresses/{ref}/deposits/{depositId}/zeroconf/accept:
    post:
      tags:
        - Standing Deposit Addresses
      summary: Accept deposit ZeroConf offer
      description: >-
        Record the Bitcoin deposit ZeroConf decision; conflicting or stale
        decisions return standing_zeroconf_offer_conflict. Requires a server
        key.
      operationId: acceptStandingDepositZeroconfOffer
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 128
          required: true
          name: ref
          in: path
        - schema:
            type: string
            minLength: 1
          required: true
          name: depositId
          in: path
        - schema:
            type: string
            minLength: 1
          required: true
          name: X-Idempotency-Key
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                offerId:
                  type: string
                  minLength: 1
                  maxLength: 128
              required:
                - offerId
              additionalProperties: false
      responses:
        '202':
          description: Decision persisted; execution is asynchronous
          content:
            application/json:
              schema:
                type: object
                properties:
                  deposit:
                    $ref: '#/components/schemas/StandingDeposit'
                required:
                  - deposit
        '400':
          description: Error with a stable error.code; foreign customers return not_found.
        '401':
          description: Error with a stable error.code; foreign customers return not_found.
        '403':
          description: Error with a stable error.code; foreign customers return not_found.
        '404':
          description: Error with a stable error.code; foreign customers return not_found.
        '409':
          description: Error with a stable error.code; foreign customers return not_found.
        '503':
          description: Error with a stable error.code; foreign customers return not_found.
      security:
        - bearerAuth: []
components:
  schemas:
    StandingDeposit:
      type: object
      properties:
        id:
          type: string
          description: Deposit ID
        chain:
          type: string
          description: Deposit source chain
        asset:
          type: string
          description: >-
            Deposit asset: a listed asset's name, or any other token's address
            (lowercase 0x hex on EVM chains, the base58 mint on Solana)
        amount:
          type: string
          description: Detected deposit amount in smallest units
        sourceTxId:
          type: string
          description: Source transaction ID
        sourceTxIndex:
          type:
            - string
            - 'null'
          description: Source output index, when applicable
        senderAddress:
          type:
            - string
            - 'null'
          description: Observed sender address
        observedAt:
          type: string
          description: Deposit observation timestamp
        status:
          type: string
          description: >-
            Open set of processing statuses. Linked order status takes
            precedence; otherwise batch states held, refund_requested and
            refunded take precedence over the transfer materialization status.
        code:
          type:
            - string
            - 'null'
          description: >-
            Extensible processing or error code. When an order is linked, its
            error_code is returned even when null. Otherwise the batch
            error_code takes precedence over the transfer
            materialization_error_code. Values are not an exhaustive enum.
        batchId:
          type:
            - string
            - 'null'
          description: Assigned batch ID
        orderId:
          type:
            - string
            - 'null'
          description: Linked order ID
        quoteId:
          type:
            - string
            - 'null'
          description: Linked quote ID
        batchState:
          type:
            - string
            - 'null'
          enum:
            - preparing
            - held
            - committed
            - refund_requested
            - refunded
            - null
          description: Assigned batch state
        refundTxId:
          type:
            - string
            - 'null'
          description: Refund transaction ID
        zeroconfOffer:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
            status:
              type: string
              enum:
                - pending
                - accepted
                - declined
                - expired
                - superseded
            expiresAt:
              type: string
            depositSats:
              type: string
            feeSats:
              type: string
            creditSats:
              type: string
          required:
            - id
            - status
            - expiresAt
            - depositSats
            - feeSats
            - creditSats
      required:
        - id
        - chain
        - asset
        - amount
        - sourceTxId
        - sourceTxIndex
        - senderAddress
        - observedAt
        - status
        - code
        - batchId
        - orderId
        - quoteId
        - batchState
        - refundTxId
        - zeroconfOffer
  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.