Close a facility
The last call in the lifecycle: zero the balance, release the lien, hand the account back unrestricted.
With a zero balance, close the facility; CLC releases the lien and the withdrawal floor and the account is unrestricted again.
Scope facility:close
Prerequisites: Facility outstanding balance is zero
1. Close the facility
Emits facility.closed.
curl -X POST https://api.clc.solutions/v1/facilities/fac_7a1b/close \
-H "X-CLC-Key-Id: $CLC_KEY_ID" \
-H "X-CLC-Timestamp: $CLC_TIMESTAMP" \
-H "X-CLC-Signature: $CLC_SIGNATURE" \
-H "Idempotency-Key: {uuid}"{
"id": "fac_7a1b",
"state": "CLOSING"
}Updated about 2 months ago
Did this page help you?