For the complete documentation index, see llms.txt. This page is also available as Markdown.

Preview repayment and closure of a facility

Returns an optional, non-reserving preview of all facility and drawdown obligations required by repayDrawdownsAndClose. The preview is not required to create a closure and does not freeze the displayed amount. Qiro reads fresh obligations again when closure is created.

get
Required scopes
This endpoint requires the following scopes:
  • : Read facility closure dues and closure resources.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
facility_idstringRequired

Stable Qiro identifier for one approved LOC facility.

Example: fac_01J5T4K8D7X2Pattern: ^fac_[A-Za-z0-9]+$
Header parameters
X-Correlation-IDstring · min: 1 · max: 128Optional

Optional end-to-end request identifier. The SDK supplies one automatically; Qiro generates and echoes one when absent.

Example: cor_repayment_123
Responses
200

Current informational facility closure preview.

application/json
get/v1/facilities/{facility_id}/closure-dues
GET /v1/facilities/{facility_id}/closure-dues HTTP/1.1
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "facility_id": "text",
  "repayment_asset": "USDC",
  "loc_address": "text",
  "token_address": "text",
  "token_decimals": 1,
  "active_drawdown_ids": [
    "text"
  ],
  "outstanding_drawdown_count": 1,
  "designated_wallet": {
    "wallet_id": "text",
    "wallet_version": 1,
    "address": "text",
    "chain_id": 1
  },
  "facility": {
    "interest": {
      "amount": "text",
      "amount_base_units": "text"
    },
    "late_fees": {
      "amount": "text",
      "amount_base_units": "text"
    },
    "total": {
      "amount": "text",
      "amount_base_units": "text"
    }
  },
  "drawdowns": {
    "principal": {
      "amount": "text",
      "amount_base_units": "text"
    },
    "interest": {
      "amount": "text",
      "amount_base_units": "text"
    },
    "late_fees": {
      "amount": "text",
      "amount_base_units": "text"
    },
    "total": {
      "amount": "text",
      "amount_base_units": "text"
    }
  },
  "quoted_total": {
    "amount": "text",
    "amount_base_units": "text"
  },
  "maximum_closure": {
    "amount": "text",
    "amount_base_units": "text"
  },
  "calculated_at": "2026-01-01T00:00:00.000Z"
}

Last updated