> For the complete documentation index, see [llms.txt](https://docs.qiro.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qiro.fi/developer-section/openapi-spec/facility-closures/retrieve-facility-closure-status.md).

# Retrieve facility closure status

Retrieve current facility closure state and independently verified chain evidence.

```json
{"openapi":"3.1.0","info":{"title":"Qiro Partner Instant Settlement API","version":"1.0.0-draft"},"tags":[{"name":"Facility closures","description":"Preview, prepare, and track full repayment and closure of a facility."}],"servers":[{"url":"/","description":"Qiro API host supplied to the partner during onboarding."}],"security":[{"oauth2":["closures:read"]}],"components":{"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"facilities:read":"Read facilities owned by the authenticated partner.","drawdowns:read":"Read partner drawdown resources.","drawdowns:write":"Create and prepare partner drawdowns.","repayments:read":"Read dues quotes and repayment resources.","repayments:write":"Create and prepare repayments.","closures:read":"Read facility closure dues and closure resources.","closures:write":"Create and prepare facility closures."}}}}},"parameters":{"ClosureId":{"name":"closure_id","in":"path","required":true,"description":"Stable Qiro identifier for one facility closure workflow.","schema":{"type":"string","pattern":"^fcl_[A-Za-z0-9]+$"}},"OptionalCorrelationId":{"name":"X-Correlation-ID","in":"header","required":false,"description":"Optional end-to-end request identifier. The SDK supplies one automatically; Qiro generates and echoes one when absent.","schema":{"type":"string","minLength":1,"maxLength":128}}},"headers":{"CorrelationId":{"description":"Echo of the request correlation identifier.","schema":{"type":"string","minLength":1,"maxLength":128}}},"schemas":{"FacilityClosure":{"type":"object","additionalProperties":false,"required":["closure_id","facility_id","status","repayment_asset","loc_address","token_address","token_decimals","active_drawdown_ids","outstanding_drawdown_count","designated_wallet","latest_quoted_total","latest_maximum_closure","correlation_id","failure","verified_allocation","blockchain_evidence","created_at","updated_at","resource_version"],"properties":{"closure_id":{"type":"string","pattern":"^fcl_[A-Za-z0-9]+$"},"facility_id":{"type":"string","pattern":"^fac_[A-Za-z0-9]+$"},"status":{"$ref":"#/components/schemas/FacilityClosureStatus"},"repayment_asset":{"type":"string","enum":["USDC","USDT"]},"loc_address":{"$ref":"#/components/schemas/EvmAddress"},"token_address":{"$ref":"#/components/schemas/EvmAddress"},"token_decimals":{"type":"integer","minimum":0,"maximum":18},"active_drawdown_ids":{"type":"array","items":{"$ref":"#/components/schemas/UnsignedIntegerString"}},"outstanding_drawdown_count":{"type":"integer","minimum":0},"designated_wallet":{"$ref":"#/components/schemas/BoundWallet"},"latest_quoted_total":{"$ref":"#/components/schemas/RepaymentMoney"},"latest_maximum_closure":{"description":"Fixed operation maximum established when the closure was created. Later preparation calls refresh current dues but do not increase this cap.","$ref":"#/components/schemas/RepaymentMoney"},"verified_allocation":{"oneOf":[{"type":"object","additionalProperties":false,"required":["total_paid_base_units","principal_paid_base_units","interest_paid_base_units","late_fees_paid_base_units"],"properties":{"total_paid_base_units":{"$ref":"#/components/schemas/UnsignedIntegerString"},"principal_paid_base_units":{"$ref":"#/components/schemas/UnsignedIntegerString"},"interest_paid_base_units":{"$ref":"#/components/schemas/UnsignedIntegerString"},"late_fees_paid_base_units":{"$ref":"#/components/schemas/UnsignedIntegerString"}}},{"type":"null"}]},"correlation_id":{"type":"string"},"failure":{"oneOf":[{"$ref":"#/components/schemas/WorkflowReason"},{"type":"null"}]},"blockchain_evidence":{"type":"array","items":{"$ref":"#/components/schemas/OperationChainEvidence"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"resource_version":{"type":"integer","minimum":1}}},"FacilityClosureStatus":{"type":"string","enum":["READY_FOR_SUBMISSION","SUBMITTING","CONFIRMING","CLOSED","FAILED"]},"EvmAddress":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"UnsignedIntegerString":{"type":"string","pattern":"^(0|[1-9]\\d*)$"},"BoundWallet":{"type":"object","additionalProperties":false,"required":["wallet_id","wallet_version"],"properties":{"wallet_id":{"type":"string","pattern":"^wal_[A-Za-z0-9]+$"},"wallet_version":{"type":"integer","minimum":1}}},"RepaymentMoney":{"type":"object","additionalProperties":false,"required":["amount","amount_base_units"],"properties":{"amount":{"$ref":"#/components/schemas/MoneyString"},"amount_base_units":{"$ref":"#/components/schemas/UnsignedIntegerString"}}},"MoneyString":{"type":"string","pattern":"^(0|[1-9]\\d*)(\\.\\d+)?$","description":"Decimal display-unit amount. JSON numbers are not accepted."},"WorkflowReason":{"type":"object","additionalProperties":false,"required":["code"],"properties":{"code":{"type":"string","minLength":1}}},"OperationChainEvidence":{"type":"object","additionalProperties":false,"required":["event_name","chain_id","contract_address","transaction_hash","log_index","block_number","block_hash","observed_at"],"properties":{"event_name":{"type":"string","enum":["RepaymentMade","DrawdownRepaid","LOCClosed","RecoveryRecorded"]},"chain_id":{"type":"integer","minimum":1},"contract_address":{"$ref":"#/components/schemas/EvmAddress"},"transaction_hash":{"$ref":"#/components/schemas/TransactionHash"},"log_index":{"type":"integer","minimum":0},"block_number":{"$ref":"#/components/schemas/UnsignedIntegerString"},"block_hash":{"$ref":"#/components/schemas/TransactionHash"},"observed_at":{"type":"string","format":"date-time"},"total_amount_base_units":{"$ref":"#/components/schemas/UnsignedIntegerString"},"principal_paid_base_units":{"$ref":"#/components/schemas/UnsignedIntegerString"},"interest_paid_base_units":{"$ref":"#/components/schemas/UnsignedIntegerString"},"late_fees_paid_base_units":{"$ref":"#/components/schemas/UnsignedIntegerString"}}},"TransactionHash":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"ErrorResponse":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"object","additionalProperties":false,"required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code."},"message":{"type":"string","description":"Safe human-readable explanation."},"request_id":{"type":"string"},"correlation_id":{"type":"string"},"retryable":{"type":"boolean"},"details":{"type":"object","additionalProperties":true},"issues":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"BadRequest":{"description":"Invalid schema, field format, or correlation identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unauthorized":{"description":"The bearer token is missing, invalid, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"The authenticated partner does not own the resource or lacks the required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"ResourceNotFound":{"description":"The requested workflow resource was not found for the authenticated partner.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/v1/facility-closures/{closure_id}":{"get":{"tags":["Facility closures"],"operationId":"getFacilityClosure","summary":"Retrieve facility closure status","description":"Retrieve current facility closure state and independently verified chain evidence.","parameters":[{"$ref":"#/components/parameters/ClosureId"},{"$ref":"#/components/parameters/OptionalCorrelationId"}],"responses":{"200":{"description":"Current facility closure state and verified evidence.","headers":{"X-Correlation-ID":{"$ref":"#/components/headers/CorrelationId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityClosure"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}}}}
```
