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

Prepare the next facility closure transaction

Refreshes current obligations and returns the next unsigned transaction. Call this endpoint after a TOKEN_APPROVAL transaction confirms, or to retry an expired preparation. The FACILITY_CLOSURE action uses the fixed creation-time maximum while refreshing current obligations. The partner signs and broadcasts using the designated wallet.

post
Required scopes
This endpoint requires the following scopes:
  • : Create and prepare facility closures.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
closure_idstringRequired

Stable Qiro identifier for one facility closure workflow.

Example: fcl_01J5TD1C8Q4NPattern: ^fcl_[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

Next unsigned transaction in the facility closure flow.

application/json
post/v1/facility-closures/{closure_id}/prepare
POST /v1/facility-closures/{closure_id}/prepare HTTP/1.1
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "closure_id": "text",
  "status": "READY_FOR_SUBMISSION",
  "action": "TOKEN_APPROVAL",
  "sequence": 1,
  "amount_base_units": "text",
  "maximum_closure_base_units": "text",
  "expires_at": "2026-01-01T00:00:00.000Z",
  "transaction": {
    "chain_id": 1,
    "to": "text",
    "data": "text",
    "value": "text"
  }
}

Last updated