Corgi BankDocumentation
OpenAPI

Immediately preserve a customer's records or propose independent hold release or record disposition

POST/customers/{id}/record-controls

Fresh customers:records:write staff authority required. hold immediately preserves the named record, or all current and future archive records for the customer when record_id is empty. release_hold, dispose and retention_event remain pending independent approval. Evidence and matter references required. An event names its original nonfuture occurrence and cannot rewrite an already captured trigger. Holds never release automatically.

Path parameters

idstringRequired

Headers

Idempotency-KeystringRequired

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

event_atstring · date-time or nullOptional

Independently evidenced trigger, e.g. relationship closure

evidence_refstringRequired
evidence_sha256stringRequired
hold_idstringOptional

Release_hold only

Example hold_2tVh8nqLxq4GbDe0K1F6S9zRcWm

kindstringRequired

Hold, release_hold, dispose, retention_event

matter_refstringRequired
reasonstringRequired
record_idstringOptional

Empty hold covers all current/future customer records

Returns

200 OK

customer_idstringRequired

Example cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm

decided_atstring · date-time or nullOptional
decided_bystringOptional
idstringRequired
proposed_atstring · date-timeRequired
proposed_bystringRequired
requestobjectRequired
8 child attributes
event_atstring · date-time or nullOptional

Independently evidenced trigger, e.g. relationship closure

evidence_refstringRequired
evidence_sha256stringRequired
hold_idstringOptional

Release_hold only

Example hold_2tVh8nqLxq4GbDe0K1F6S9zRcWm

kindstringRequired

Hold, release_hold, dispose, retention_event

matter_refstringRequired
reasonstringRequired
record_idstringOptional

Empty hold covers all current/future customer records

statusstringRequired

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close