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

# Request deposit refund

> Return held deposits to a partner-supplied refund address after asynchronous eligibility checks. Requires a server key.

**/v1/standing-deposit-addresses/\{ref}/resolve**


## OpenAPI

````yaml https://orchestration.flashnet.xyz/openapi.json POST /v1/standing-deposit-addresses/{ref}/resolve
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}/resolve:
    post:
      tags:
        - Standing Deposit Addresses
      summary: Request deposit refund
      description: >-
        Return held deposits to a partner-supplied refund address after
        asynchronous eligibility checks. Requires a server key.
      operationId: requestStandingDepositRefund
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 128
          required: true
          name: ref
          in: path
        - schema:
            type: string
            minLength: 1
          required: true
          name: X-Idempotency-Key
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - type: object
                  properties:
                    batchId:
                      type: string
                      minLength: 1
                    refundAddress:
                      type: string
                      minLength: 1
                  required:
                    - batchId
                    - refundAddress
                  additionalProperties: false
                - type: object
                  properties:
                    depositIds:
                      type: array
                      items:
                        type: string
                        minLength: 1
                      minItems: 1
                      maxItems: 200
                    refundAddress:
                      type: string
                      minLength: 1
                  required:
                    - depositIds
                    - refundAddress
                  additionalProperties: false
      responses:
        '202':
          description: Return target recorded
          content:
            application/json:
              schema:
                type: object
                properties:
                  batchId:
                    type: string
                  status:
                    type: string
                    enum:
                      - refund_requested
                required:
                  - batchId
                  - status
        '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:
  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.