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.
- : Create and prepare facility closures.
Stable Qiro identifier for one facility closure workflow.
fcl_01J5TD1C8Q4NPattern: ^fcl_[A-Za-z0-9]+$Optional end-to-end request identifier. The SDK supplies one automatically; Qiro generates and echoes one when absent.
cor_repayment_123Next unsigned transaction in the facility closure flow.
Invalid schema, field format, or correlation identifier.
The bearer token is missing, invalid, or expired.
The authenticated partner does not own the resource or lacks the required scope.
The requested workflow resource was not found for the authenticated partner.
Idempotency, workflow state, or verified facility identity conflicts with the request.
The request is valid but rejected by facility, policy, liquidity, or contract rules.
Contract, RPC, subgraph, or reconciliation infrastructure is temporarily unavailable.
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