...
Delete personal data from person requests: person_data, authentication_method_current,mpi_id,printout_form, documents, tax_id, first_name, last_name, birth_date, person_documents.
Update status for all records to EXPIRED:
status = 'EXPIRED'
updated_at = now()
updated_by = SYSTEM_USER
On get api/person_requests/{{person_request_id}} if person_requst.statsu - expired
, then error - not_found
Autocleaning person request
...
Delete personal data from person requests: person_data, authentication_method_current, mpi_id, printout_form, documents, tax_id, first_name, last_name, birth_date, person_documents.
update declarationperson_requests
updated_by = SYSTEM_USER
updated_at = timestamp
...