Shared accounting services
Attachment downloads, data lifecycle (exports, retention, holds, offboarding) and encryption key rotation used by every Accounting app. Every operation below is generated from the published OpenAPI contract. Paths are company-scoped; read the Accounting API guide for scopes, step-up and permissions, and the Shared accounting services guide for the workflow.
- GET
/rest/v1.0/companies/{company_id}/accounting/attachments/{id}Download an attachment - GET
/rest/v1.0/companies/{company_id}/accounting/lifecycle/exportsLatest 50 full export requests; accounting:read and unrestricted owner plus step-up - POST
/rest/v1.0/companies/{company_id}/accounting/lifecycle/exportsQueue full extract; accounting:write and unrestricted owner plus step-up - GET
/rest/v1.0/companies/{company_id}/accounting/lifecycle/exports/{id}Export status, checksummed manifest and user-bound 15-minute download link - GET
/rest/v1.0/companies/{company_id}/accounting/lifecycle/exports/{id}/downloadStream signed ZIP64 archive; rechecks current owner access, MFA/step-up and authenticated recipient - POST
/rest/v1.0/companies/{company_id}/accounting/lifecycle/holdsRecord an outstanding filing or legal hold for employee/vendor - DELETE
/rest/v1.0/companies/{company_id}/accounting/lifecycle/holds/{id}Release an explicit retention hold with owner step-up - GET
/rest/v1.0/companies/{company_id}/accounting/lifecycle/offboardingSuper-admin retrieves retained offboarding certificate - POST
/rest/v1.0/companies/{company_id}/accounting/lifecycle/offboardingSuper-admin irreversibly deletes tenant accounting after durable/fresh export verification - GET
/rest/v1.0/companies/{company_id}/accounting/lifecycle/retentionExplicit policy or disabled defaults - PUT
/rest/v1.0/companies/{company_id}/accounting/lifecycle/retentionSet the company legal hold flag; request subject retention periods through the register - POST
/rest/v1.0/companies/{company_id}/accounting/pii_rotationRotate vendor and bank PII encryption - GET
/rest/v1.0/companies/{company_id}/accounting/privacy/holdsList legal holds - POST
/rest/v1.0/companies/{company_id}/accounting/privacy/holdsPlace a legal hold - POST
/rest/v1.0/companies/{company_id}/accounting/privacy/holds/{id}/releaseRelease a legal hold - GET
/rest/v1.0/companies/{company_id}/accounting/privacy/pii_inventoryPII inventory - GET
/rest/v1.0/companies/{company_id}/accounting/privacy/requestsList data subject requests - POST
/rest/v1.0/companies/{company_id}/accounting/privacy/requestsLog a data subject request - GET
/rest/v1.0/companies/{company_id}/accounting/privacy/requests/{id}Data subject request - POST
/rest/v1.0/companies/{company_id}/accounting/privacy/requests/{id}/decisionComplete or reject a data subject request - GET
/rest/v1.0/companies/{company_id}/accounting/privacy/retention_registerRetention register - POST
/rest/v1.0/companies/{company_id}/accounting/privacy/retention_register/changesRequest a retention period change (maker) - POST
/rest/v1.0/companies/{company_id}/accounting/privacy/retention_register/changes/{id}/decisionApprove or reject a retention change (checker) - GET
/rest/v1.0/companies/{company_id}/accounting/privacy/retention_runsList retention runs - POST
/rest/v1.0/companies/{company_id}/accounting/privacy/retention_runsPreview retention (dry run) - GET
/rest/v1.0/companies/{company_id}/accounting/privacy/retention_runs/{id}Retention run with its evidence report - POST
/rest/v1.0/companies/{company_id}/accounting/privacy/retention_runs/{id}/executeExecute a retention preview - POST
/rest/v1.0/companies/{company_id}/accounting/privacy/subject_exportsExport the personal data held about a subject
Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/attachments/{id}Download an attachment
Returns the stored bytes as application/octet-stream with Content-Disposition: attachment (never rendered inline). Access is re-checked against the parent record. Requires the accounting:read scope.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- idintegerpathrequired
Response · 200 · string (binary)
No documented fields.
Errors
401Missing or invalid bearer token403No accounting access, missing permission, outside the parent record's entity scope, wrong company, or read-only workspace404Not found in this company
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/attachments/1" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/lifecycle/exportsLatest 50 full export requests; accounting:read and unrestricted owner plus step-up
List is capped to the latest 50 requests; extract contents have no row cap.
Parameters
- company_idintegerpathrequired
Response · 200 · object[]
- idstring (uuid)required
- job_idintegerrequired
- statusanyrequiredOne of: queued, processing, complete, failed.
- sha256string | nullrequired
- created_atstring (date-time)required
- completed_atstring | null (date-time)required
Errors
401Authentication/MFA/step-up required403Wrong tenant, insufficient token scope or unrestricted owner/super-admin access required404Not found409Proof stale/incomplete, retention hold, offboarded company, or unsupported schema422Invalid request or explicit confirmation
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/exports" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/lifecycle/exportsQueue full extract; accounting:write and unrestricted owner plus step-up
Supports Idempotency-Key; retries with the same key replay the original result.
Parameters
- company_idintegerpathrequired
- Idempotency-KeystringheaderClient retry key (a UUID is recommended); see the idempotency guide. The first successful response is stored and replayed (same status and body, header Idempotent-Replayed: true) for a repeat with the same key, body and caller; the same key with a different body or caller, or while the first request is still running, is 409. The key is marked committed in the same database transaction as the change, so a retry after a crash or timeout between commit and response replays instead of answering 409. A failed request frees the key. Keys are kept 30 days. On routes that take a body request_key (AR invoices, receipts, cash applications, reversals and deposits; payroll remittances) the header stands in for a missing request_key (a non-UUID key is mapped to a stable UUID) and a request_key that differs from it is 422. Strongly recommended: without it a retried POST can create a second document.
Response · 202 · object
- idstring (uuid)required
- job_idintegerrequired
- statusanyrequiredOne of: queued, processing, complete, failed.
- sha256string | nullrequired
- created_atstring (date-time)required
- completed_atstring | null (date-time)required
Errors
401Authentication/MFA/step-up required403Wrong tenant, insufficient token scope or unrestricted owner/super-admin access required404Not found409Proof stale/incomplete, retention hold, offboarded company, or unsupported schema422Invalid request or explicit confirmation
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/exports" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/lifecycle/exports/{id}Export status, checksummed manifest and user-bound 15-minute download link
Requires accounting:read token scope.
Parameters
- company_idintegerpathrequired
- idstring (uuid)pathrequired
Response · 200 · object
- idstring (uuid)required
- job_idintegerrequired
- statusanyrequiredOne of: queued, processing, complete, failed.
- sha256string | nullrequired
- created_atstring (date-time)required
- completed_atstring | null (date-time)required
- manifestobject | nullrequired
- manifest.versionanyrequired
- manifest.company_idintegerrequired
- manifest.export_idstring (uuid)required
- manifest.snapshotstringrequired
- manifest.created_atstring (date-time)required
- manifest.encodingstringrequired
- manifest.attachmentsstringrequired
- manifest.tablesobject[]required
- download_urlstring | nullrequired
Errors
401Authentication/MFA/step-up required403Wrong tenant, insufficient token scope or unrestricted owner/super-admin access required404Not found409Proof stale/incomplete, retention hold, offboarded company, or unsupported schema422Invalid request or explicit confirmation
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/exports/1" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/lifecycle/exports/{id}/downloadStream signed ZIP64 archive; rechecks current owner access, MFA/step-up and authenticated recipient
Requires accounting:read token scope.
Parameters
- company_idintegerpathrequired
- idstring (uuid)pathrequired
- expiresintegerqueryrequired
- signaturestringqueryrequired
Response · 200 · string (binary)
No documented fields.
Errors
401Authentication or step-up required403Expired, altered or wrong-user signature/access revoked404Artifact missing
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/exports/1/download" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/lifecycle/holdsRecord an outstanding filing or legal hold for employee/vendor
Requires accounting:write token scope. Supports Idempotency-Key; retries with the same key replay the original result.
Parameters
- company_idintegerpathrequired
- Idempotency-KeystringheaderClient retry key (a UUID is recommended); see the idempotency guide. The first successful response is stored and replayed (same status and body, header Idempotent-Replayed: true) for a repeat with the same key, body and caller; the same key with a different body or caller, or while the first request is still running, is 409. The key is marked committed in the same database transaction as the change, so a retry after a crash or timeout between commit and response replays instead of answering 409. A failed request frees the key. Keys are kept 30 days. On routes that take a body request_key (AR invoices, receipts, cash applications, reversals and deposits; payroll remittances) the header stands in for a missing request_key (a non-UUID key is mapped to a stable UUID) and a request_key that differs from it is 422. Strongly recommended: without it a retried POST can create a second document.
Request body
- retention_holdobjectrequired
- retention_hold.subject_typeanyrequiredOne of: employee, vendor.
- retention_hold.subject_idintegerrequired
- retention_hold.reasonstringrequired
Response · 201 · object
- idintegerrequired
Errors
401Authentication/MFA/step-up required403Wrong tenant, insufficient token scope or unrestricted owner/super-admin access required404Not found409Proof stale/incomplete, retention hold, offboarded company, or unsupported schema422Invalid request or explicit confirmation
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/holds" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"retention_hold": {
"subject_type": "employee",
"subject_id": 1,
"reason": "string"
}
}'Accounting / Shared accounting services
DELETE/rest/v1.0/companies/{company_id}/accounting/lifecycle/holds/{id}Release an explicit retention hold with owner step-up
Requires accounting:write token scope.
Parameters
- company_idintegerpathrequired
- idintegerpathrequired
Response · 200 · object
- idintegerrequired
Errors
401Authentication/MFA/step-up required403Wrong tenant, insufficient token scope or unrestricted owner/super-admin access required404Not found409Proof stale/incomplete, retention hold, offboarded company, or unsupported schema422Invalid request or explicit confirmation
Example request
curl -X DELETE "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/holds/1" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/lifecycle/offboardingSuper-admin retrieves retained offboarding certificate
Requires accounting:read token scope.
Parameters
- company_idintegerpathrequired
Response · 200 · object
- certificateobject | nullrequired
- certificate.versionanyrequired
- certificate.company_idintegerrequired
- certificate.export_idstring (uuid)required
- certificate.export_sha256stringrequired
- certificate.export_completed_atstring (date-time)required
- certificate.actor_idintegerrequired
- certificate.destroyed_atstring (date-time)required
- certificate.countsobjectrequired
- certificate.scopestringrequired
- certificate.guards_restoredanyrequired
- certificate.certificate_sha256stringrequired
Errors
401Authentication/MFA/step-up required403Wrong tenant, insufficient token scope or unrestricted owner/super-admin access required404Not found409Proof stale/incomplete, retention hold, offboarded company, or unsupported schema422Invalid request or explicit confirmation
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/offboarding" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/lifecycle/offboardingSuper-admin irreversibly deletes tenant accounting after durable/fresh export verification
Requires accounting:write token scope.
Parameters
- company_idintegerpathrequired
Request body
- offboardingobjectrequired
- offboarding.export_idstring (uuid)required
- offboarding.confirmstringrequired
- offboarding.acknowledge_irreversibleanyrequired
Response · 200 · object
- certificateobjectrequired
- certificate.versionanyrequired
- certificate.company_idintegerrequired
- certificate.export_idstring (uuid)required
- certificate.export_sha256stringrequired
- certificate.export_completed_atstring (date-time)required
- certificate.actor_idintegerrequired
- certificate.destroyed_atstring (date-time)required
- certificate.countsobjectrequired
- certificate.scopestringrequired
- certificate.guards_restoredanyrequired
- certificate.certificate_sha256stringrequired
Errors
401Authentication/MFA/step-up required403Wrong tenant, insufficient token scope or unrestricted owner/super-admin access required404Not found409Proof stale/incomplete, retention hold, offboarded company, or unsupported schema422Invalid request or explicit confirmation
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/offboarding" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"offboarding": {
"export_id": "00000000-0000-4000-8000-000000000000",
"confirm": "string",
"acknowledge_irreversible": null
}
}'Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/lifecycle/retentionExplicit policy or disabled defaults
The approved employee SSN (employee_days) and vendor TIN (vendor_days) retention periods from the retention register (null when none is approved) and the company legal hold flag. Requires accounting:read.
Parameters
- company_idintegerpathrequired
Response · 200 · object
- employee_daysinteger | nullrequired
- vendor_daysinteger | nullrequired
- legal_holdbooleanrequired
- reasonstring | nullrequired
Errors
401Authentication/MFA/step-up required403Wrong tenant, insufficient token scope or unrestricted owner/super-admin access required404Not found409Proof stale/incomplete, retention hold, offboarded company, or unsupported schema422Invalid request or explicit confirmation
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/retention" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
PUT/rest/v1.0/companies/{company_id}/accounting/lifecycle/retentionSet the company legal hold flag; request subject retention periods through the register
legal_hold applies at once (a company-wide hold blocks every retention purge). A non-null employee_days or vendor_days different from the approved period files maker-checker change requests in the retention register (employee_ssn and employee_bank, or vendor_tin and vendor_bank) that another unrestricted owner must approve; a period below a class's hard floor (1461 days for SSN/TIN, 730 for bank details) is 422. Unrestricted owner, view_payroll_pii and step-up. Requires accounting:write.
Parameters
- company_idintegerpathrequired
Request body
- retention_policyobjectrequired
- retention_policy.employee_daysinteger | nullrequired
- retention_policy.vendor_daysinteger | nullrequired
- retention_policy.legal_holdbooleanrequired
- retention_policy.reasonstringrequired
Response · 200 · object
- employee_daysinteger | nullrequired
- vendor_daysinteger | nullrequired
- legal_holdbooleanrequired
- reasonstringrequired
- pending_change_idsinteger[]required
Errors
401Authentication/MFA/step-up required403Wrong tenant, insufficient token scope or unrestricted owner/super-admin access required404Not found409Proof stale/incomplete, retention hold, offboarded company, or unsupported schema422Invalid request or explicit confirmation
Example request
curl -X PUT "https://app.os.construction/rest/v1.0/companies/1/accounting/lifecycle/retention" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"retention_policy": {
"employee_days": 1,
"vendor_days": 1,
"legal_hold": true,
"reason": "string"
}
}'Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/pii_rotationRotate vendor and bank PII encryption
Data migration and key rotation: re-encrypts vendor/customer TIN and bank numbers (live and pending) and company bank account and routing numbers still in the legacy format, under an older key, or written before row binding (empty AAD), with the current key and bound to their row (company, row, field), so a value copied to another row no longer decrypts. A rewritten pending change gets a new change_hash. Returns counts only. Needs manage_vendor_banking; audited. Requires the accounting:write scope. Also rewrites AP payment release snapshots and vendor ACH prenote records (profile binding), vendor and unmatched NOC corrections, ERP connection OAuth tokens and webhook signing secrets. remaining counts the company's rows, payroll included, still holding a value under an older key id or the legacy format: drop an old key id only once it is 0.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
Response · 200 · object
- rotatedintegerrequired
- remainingintegerrequiredRows still under an older key id or the legacy format, company-wide.
Errors
401Missing or invalid bearer token403No accounting access, missing manage_vendor_banking, wrong company, or read-only workspace
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/pii_rotation" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/privacy/holdsList legal holds
Every hold, newest first (500), active and released. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:read.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
Response · 200 · object[]
- idintegerrequired
- subject_typeanyrequiredOne of: company, entity, project, vendor, employee.
- subject_idintegerrequired
- matterstring | nullrequired
- reasonstringrequired
- placed_by_idinteger | nullrequired
- created_atstring (date-time)required
- activebooleanrequired
- released_atstring | null (date-time)required
- released_by_idinteger | nullrequired
- release_reasonstring | nullrequired
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/holds" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/privacy/holdsPlace a legal hold
Places a hold on the company, an entity, a project, a vendor or an employee. Effective at once: retention skips every record it covers (an employee: their pay group's or a check's employer entity, projects they logged time on; a vendor: entities of its bills, payments and 1099 filings, projects on its bill lines). Any active hold also suspends outbox and job-error redaction. Audited. Honors Idempotency-Key. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:write.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- Idempotency-KeystringheaderClient retry key (a UUID is recommended); see the idempotency guide. The first successful response is stored and replayed (same status and body, header Idempotent-Replayed: true) for a repeat with the same key, body and caller; the same key with a different body or caller, or while the first request is still running, is 409. The key is marked committed in the same database transaction as the change, so a retry after a crash or timeout between commit and response replays instead of answering 409. A failed request frees the key. Keys are kept 30 days. On routes that take a body request_key (AR invoices, receipts, cash applications, reversals and deposits; payroll remittances) the header stands in for a missing request_key (a non-UUID key is mapped to a stable UUID) and a request_key that differs from it is 422. Strongly recommended: without it a retried POST can create a second document.
Request body
- holdobjectrequired
- hold.subject_typeanyrequiredOne of: company, entity, project, vendor, employee.
- hold.subject_idintegerRequired except for a company hold
- hold.matterstringMatter or case reference (no personal data)
- hold.reasonstringrequired
Response · 201 · object
- idintegerrequired
- subject_typeanyrequiredOne of: company, entity, project, vendor, employee.
- subject_idintegerrequired
- matterstring | nullrequired
- reasonstringrequired
- placed_by_idinteger | nullrequired
- created_atstring (date-time)required
- activebooleanrequired
- released_atstring | null (date-time)required
- released_by_idinteger | nullrequired
- release_reasonstring | nullrequired
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused404Subject not found in this company422Invalid body or a period below the class's hard floor
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/holds" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"hold": {
"subject_type": "company",
"reason": "string"
}
}'Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/privacy/holds/{id}/releaseRelease a legal hold
Releases an active hold with a reason; audited. 409 when already released. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:write.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- idintegerpathrequired
Request body
- releaseobjectrequired
- release.reasonstringrequired
Response · 200 · object
- idintegerrequired
- subject_typeanyrequiredOne of: company, entity, project, vendor, employee.
- subject_idintegerrequired
- matterstring | nullrequired
- reasonstringrequired
- placed_by_idinteger | nullrequired
- created_atstring (date-time)required
- activebooleanrequired
- released_atstring | null (date-time)required
- released_by_idinteger | nullrequired
- release_reasonstring | nullrequired
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused404No such hold409Already released422Invalid body or a period below the class's hard floor
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/holds/1/release" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"release": {
"reason": "string"
}
}'Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/privacy/pii_inventoryPII inventory
Every accounting column holding personal or sensitive identifying data: category, subject, protection (sealed, masked, plain, hashed) and governing retention class, plus pattern-matching columns classified as not personal data with the reason. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:read.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
Response · 200 · object
- columnsobject[]required
- columns[].tablestringrequired
- columns[].columnstringrequired
- columns[].categorystringrequired
- columns[].subjectstringrequired
- columns[].protectionanyrequiredOne of: sealed, masked, plain, hashed.
- columns[].record_classstring | nullrequired
- columns[].notestringrequired
- not_piiobject[]required
- not_pii[].columnstringrequired
- not_pii[].reasonstringrequired
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/pii_inventory" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/privacy/requestsList data subject requests
Newest first (500). Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:read.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
Response · 200 · object[]
- idintegerrequired
- subject_typeanyrequiredOne of: employee, vendor.
- subject_idintegerrequired
- kindanyrequiredOne of: access, rectification, erasure.
- statusanyrequiredOne of: open, completed, rejected.
- received_onstring (date)required
- due_onstring (date)required
- descriptionstringrequired
- requested_by_idintegerrequired
- requested_atstring (date-time)required
- decided_by_idinteger | nullrequired
- decided_atstring | null (date-time)required
- decision_notestring | nullrequired
- outcomeanyrequiredDecision record: for an erasure, what was erased and what was retained and why
- assessmentarray | nullDetail only, while open
- assessment[].datastringrequired
- assessment[].dispositionanyrequiredOne of: erasable, retained, already_minimized, erased.
- assessment[].reasonstringrequired
- assessment[].record_classstring | nullrequired
- assessment[].retain_untilstring | null
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/requests" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/privacy/requestsLog a data subject request
Access, rectification or erasure about an employee or vendor contact; due 45 days after receipt (a proposal for counsel). Audited. Honors Idempotency-Key. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:write.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- Idempotency-KeystringheaderClient retry key (a UUID is recommended); see the idempotency guide. The first successful response is stored and replayed (same status and body, header Idempotent-Replayed: true) for a repeat with the same key, body and caller; the same key with a different body or caller, or while the first request is still running, is 409. The key is marked committed in the same database transaction as the change, so a retry after a crash or timeout between commit and response replays instead of answering 409. A failed request frees the key. Keys are kept 30 days. On routes that take a body request_key (AR invoices, receipts, cash applications, reversals and deposits; payroll remittances) the header stands in for a missing request_key (a non-UUID key is mapped to a stable UUID) and a request_key that differs from it is 422. Strongly recommended: without it a retried POST can create a second document.
Request body
- privacy_requestobjectrequired
- privacy_request.subject_typeanyrequiredOne of: employee, vendor.
- privacy_request.subject_idintegerrequired
- privacy_request.kindanyrequiredOne of: access, rectification, erasure.
- privacy_request.received_onstring (date)required
- privacy_request.descriptionstringrequiredWhat was asked, without identifiers
Response · 201 · object
- idintegerrequired
- subject_typeanyrequiredOne of: employee, vendor.
- subject_idintegerrequired
- kindanyrequiredOne of: access, rectification, erasure.
- statusanyrequiredOne of: open, completed, rejected.
- received_onstring (date)required
- due_onstring (date)required
- descriptionstringrequired
- requested_by_idintegerrequired
- requested_atstring (date-time)required
- decided_by_idinteger | nullrequired
- decided_atstring | null (date-time)required
- decision_notestring | nullrequired
- outcomeanyrequiredDecision record: for an erasure, what was erased and what was retained and why
- assessmentarray | nullDetail only, while open
- assessment[].datastringrequired
- assessment[].dispositionanyrequiredOne of: erasable, retained, already_minimized, erased.
- assessment[].reasonstringrequired
- assessment[].record_classstring | nullrequired
- assessment[].retain_untilstring | null
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused404No such subject422Invalid body or a period below the class's hard floor
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/requests" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"privacy_request": {
"subject_type": "employee",
"subject_id": 1,
"kind": "access",
"received_on": "2026-11-01",
"description": "string"
}
}'Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/privacy/requests/{id}Data subject request
With, while open, the live assessment of each data item: erasable, retained (with the reason: retention period, ledger integrity, legal hold, open item) or already minimized. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:read.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- idintegerpathrequired
Response · 200 · object
- idintegerrequired
- subject_typeanyrequiredOne of: employee, vendor.
- subject_idintegerrequired
- kindanyrequiredOne of: access, rectification, erasure.
- statusanyrequiredOne of: open, completed, rejected.
- received_onstring (date)required
- due_onstring (date)required
- descriptionstringrequired
- requested_by_idintegerrequired
- requested_atstring (date-time)required
- decided_by_idinteger | nullrequired
- decided_atstring | null (date-time)required
- decision_notestring | nullrequired
- outcomeanyrequiredDecision record: for an erasure, what was erased and what was retained and why
- assessmentarray | nullDetail only, while open
- assessment[].datastringrequired
- assessment[].dispositionanyrequiredOne of: erasable, retained, already_minimized, erased.
- assessment[].reasonstringrequired
- assessment[].record_classstring | nullrequired
- assessment[].retain_untilstring | null
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused404No such request
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/requests/1" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/privacy/requests/{id}/decisionComplete or reject a data subject request
A different owner than the one who logged it. Access completes only after a subject export since the request was logged (409). Erasure clears exactly what the assessment marks erasable (sealed values past their approved period, optional vendor contact fields) and records what was retained and why; financial records, payroll records and the audit trail are never erased. Audited. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:write.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- idintegerpathrequired
Request body
- decisionobjectrequired
- decision.decisionanyrequiredOne of: complete, reject.
- decision.notestringrequired
Response · 200 · object
- idintegerrequired
- subject_typeanyrequiredOne of: employee, vendor.
- subject_idintegerrequired
- kindanyrequiredOne of: access, rectification, erasure.
- statusanyrequiredOne of: open, completed, rejected.
- received_onstring (date)required
- due_onstring (date)required
- descriptionstringrequired
- requested_by_idintegerrequired
- requested_atstring (date-time)required
- decided_by_idinteger | nullrequired
- decided_atstring | null (date-time)required
- decision_notestring | nullrequired
- outcomeanyrequiredDecision record: for an erasure, what was erased and what was retained and why
- assessmentarray | nullDetail only, while open
- assessment[].datastringrequired
- assessment[].dispositionanyrequiredOne of: erasable, retained, already_minimized, erased.
- assessment[].reasonstringrequired
- assessment[].record_classstring | nullrequired
- assessment[].retain_untilstring | null
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused404No such request409Already decided or export missing422Invalid body or a period below the class's hard floor
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/requests/1/decision" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"decision": {
"decision": "complete",
"note": "string"
}
}'Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/privacy/retention_registerRetention register
Every record class with its hard floor, proposed period and basis (proposals, not in force), the approved rule in force and any pending change, plus the latest 200 change requests. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:read.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
Response · 200 · object
- disclaimerstringrequired
- classesobject[]required
- classes[].record_classstringrequiredOne of: ledger, ap_ar_documents, payroll_records, employee_ssn, employee_bank, vendor_tin, vendor_bank, attachments, audit_logs, outbox_payloads, job_errors, portal_sessions.
- classes[].labelstringrequired
- classes[].actionanyrequiredOne of: retain, minimize, redact, delete.
- classes[].automatedbooleanrequired
- classes[].floor_daysintegerrequired
- classes[].proposed_daysintegerrequired
- classes[].fromstringrequired
- classes[].proposed_jurisdictionstringrequired
- classes[].proposed_basisstringrequired
- classes[].coversstring[]required
- classes[].in_forcenull | objectrequired
- classes[].pending_changenull | objectrequired
- changesobject[]required
- changes[].idintegerrequired
- changes[].record_classstringrequiredOne of: ledger, ap_ar_documents, payroll_records, employee_ssn, employee_bank, vendor_tin, vendor_bank, attachments, audit_logs, outbox_payloads, job_errors, portal_sessions.
- changes[].retention_daysintegerrequired
- changes[].jurisdictionstringrequired
- changes[].basisstringrequired
- changes[].reasonstringrequired
- changes[].statusanyrequiredOne of: pending, approved, rejected.
- changes[].previous_daysinteger | nullrequired
- changes[].requested_by_idintegerrequired
- changes[].requested_atstring (date-time)required
- changes[].decided_by_idinteger | nullrequired
- changes[].decided_atstring | null (date-time)required
- changes[].decision_notestring | nullrequired
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/retention_register" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/privacy/retention_register/changesRequest a retention period change (maker)
Requests a period for a record class. Refused below the class's hard floor (422; the database also refuses it) and while another change for the class is pending (409). Not in force until a different owner approves it. Audited. Honors Idempotency-Key. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:write.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- Idempotency-KeystringheaderClient retry key (a UUID is recommended); see the idempotency guide. The first successful response is stored and replayed (same status and body, header Idempotent-Replayed: true) for a repeat with the same key, body and caller; the same key with a different body or caller, or while the first request is still running, is 409. The key is marked committed in the same database transaction as the change, so a retry after a crash or timeout between commit and response replays instead of answering 409. A failed request frees the key. Keys are kept 30 days. On routes that take a body request_key (AR invoices, receipts, cash applications, reversals and deposits; payroll remittances) the header stands in for a missing request_key (a non-UUID key is mapped to a stable UUID) and a request_key that differs from it is 422. Strongly recommended: without it a retried POST can create a second document.
Request body
- changeobjectrequired
- change.record_classstringrequiredOne of: ledger, ap_ar_documents, payroll_records, employee_ssn, employee_bank, vendor_tin, vendor_bank, attachments, audit_logs, outbox_payloads, job_errors, portal_sessions.
- change.retention_daysintegerrequiredAt least the class's floor_days (422 otherwise)
- change.jurisdictionstringrequired
- change.basisstringrequired
- change.reasonstringrequired
Response · 201 · object
- idintegerrequired
- record_classstringrequiredOne of: ledger, ap_ar_documents, payroll_records, employee_ssn, employee_bank, vendor_tin, vendor_bank, attachments, audit_logs, outbox_payloads, job_errors, portal_sessions.
- retention_daysintegerrequired
- jurisdictionstringrequired
- basisstringrequired
- reasonstringrequired
- statusanyrequiredOne of: pending, approved, rejected.
- previous_daysinteger | nullrequired
- requested_by_idintegerrequired
- requested_atstring (date-time)required
- decided_by_idinteger | nullrequired
- decided_atstring | null (date-time)required
- decision_notestring | nullrequired
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused409A change for this class is pending422Invalid body or a period below the class's hard floor
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/retention_register/changes" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"change": {
"record_class": "ledger",
"retention_days": 1,
"jurisdiction": "string",
"basis": "string",
"reason": "string"
}
}'Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/privacy/retention_register/changes/{id}/decisionApprove or reject a retention change (checker)
A different unrestricted owner than the requester approves (the rule takes effect, version + 1) or rejects a pending change; 403 for your own request, 409 once decided. Audited with before and after. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:write.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- idintegerpathrequired
Request body
- decisionobjectrequired
- decision.decisionanyrequiredOne of: approve, reject.
- decision.notestring
Response · 200 · object
- idintegerrequired
- record_classstringrequiredOne of: ledger, ap_ar_documents, payroll_records, employee_ssn, employee_bank, vendor_tin, vendor_bank, attachments, audit_logs, outbox_payloads, job_errors, portal_sessions.
- retention_daysintegerrequired
- jurisdictionstringrequired
- basisstringrequired
- reasonstringrequired
- statusanyrequiredOne of: pending, approved, rejected.
- previous_daysinteger | nullrequired
- requested_by_idintegerrequired
- requested_atstring (date-time)required
- decided_by_idinteger | nullrequired
- decided_atstring | null (date-time)required
- decision_notestring | nullrequired
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused404No such change409Already decided422Invalid body or a period below the class's hard floor
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/retention_register/changes/1/decision" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"decision": {
"decision": "approve"
}
}'Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/privacy/retention_runsList retention runs
Latest 50 previews and executions with per-class summaries. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:read.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
Response · 200 · object[]
- idintegerrequired
- modeanyrequiredOne of: preview, execute.
- triggeranyrequiredOne of: manual, scheduled.
- as_ofstring (date-time)required
- preview_idinteger | nullrequired
- plan_hashstringrequired
- summaryobjectrequiredPer record class: status (not_in_force, retained, planned), past_period, held, to_apply and, for an execution, applied
- evidence_sha256stringrequired
- requested_by_idintegerrequired
- created_atstring (date-time)required
- executedboolean | nullList only: whether a preview was executed
- evidenceobjectDetail only. Preview: register, active holds and the per-class plan. Execution: the plan, applied ids per class and whether they match the preview, ledger fingerprint, integrity checks and audit-event count before and after.
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/retention_runs" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/privacy/retention_runsPreview retention (dry run)
Computes and records what retention would change now (or at the end of as_of, not in the future): per class, records past the approved period, those kept by holds and those that would change, with a plan hash. Nothing is changed. Honors Idempotency-Key. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:write.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- Idempotency-KeystringheaderClient retry key (a UUID is recommended); see the idempotency guide. The first successful response is stored and replayed (same status and body, header Idempotent-Replayed: true) for a repeat with the same key, body and caller; the same key with a different body or caller, or while the first request is still running, is 409. The key is marked committed in the same database transaction as the change, so a retry after a crash or timeout between commit and response replays instead of answering 409. A failed request frees the key. Keys are kept 30 days. On routes that take a body request_key (AR invoices, receipts, cash applications, reversals and deposits; payroll remittances) the header stands in for a missing request_key (a non-UUID key is mapped to a stable UUID) and a request_key that differs from it is 422. Strongly recommended: without it a retried POST can create a second document.
Request body
- previewobjectrequired
- preview.as_ofstring (date)
Response · 201 · object
- idintegerrequired
- modeanyrequiredOne of: preview, execute.
- triggeranyrequiredOne of: manual, scheduled.
- as_ofstring (date-time)required
- preview_idinteger | nullrequired
- plan_hashstringrequired
- summaryobjectrequiredPer record class: status (not_in_force, retained, planned), past_period, held, to_apply and, for an execution, applied
- evidence_sha256stringrequired
- requested_by_idintegerrequired
- created_atstring (date-time)required
- executedboolean | nullList only: whether a preview was executed
- evidenceobjectDetail only. Preview: register, active holds and the per-class plan. Execution: the plan, applied ids per class and whether they match the preview, ledger fingerprint, integrity checks and audit-event count before and after.
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused422Invalid body or a period below the class's hard floor
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/retention_runs" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"preview": {}
}'Accounting / Shared accounting services
GET/rest/v1.0/companies/{company_id}/accounting/privacy/retention_runs/{id}Retention run with its evidence report
Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:read.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- idintegerpathrequired
Response · 200 · object
- idintegerrequired
- modeanyrequiredOne of: preview, execute.
- triggeranyrequiredOne of: manual, scheduled.
- as_ofstring (date-time)required
- preview_idinteger | nullrequired
- plan_hashstringrequired
- summaryobjectrequiredPer record class: status (not_in_force, retained, planned), past_period, held, to_apply and, for an execution, applied
- evidence_sha256stringrequired
- requested_by_idintegerrequired
- created_atstring (date-time)required
- executedboolean | nullList only: whether a preview was executed
- evidenceobjectDetail only. Preview: register, active holds and the per-class plan. Execution: the plan, applied ids per class and whether they match the preview, ledger fingerprint, integrity checks and audit-event count before and after.
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused404No such run
Example request
curl -X GET "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/retention_runs/1" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/privacy/retention_runs/{id}/executeExecute a retention preview
Recomputes the plan at the preview's date; it must hash to the preview (409 otherwise: preview again). Then applies it in batches that re-check eligibility and holds under row locks, and records the execution evidence (applied ids against the plan, ledger fingerprint, integrity checks and audit count before and after). A preview executes once and within 24 hours (409). Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:write.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
- idintegerpathrequired
Response · 201 · object
- idintegerrequired
- modeanyrequiredOne of: preview, execute.
- triggeranyrequiredOne of: manual, scheduled.
- as_ofstring (date-time)required
- preview_idinteger | nullrequired
- plan_hashstringrequired
- summaryobjectrequiredPer record class: status (not_in_force, retained, planned), past_period, held, to_apply and, for an execution, applied
- evidence_sha256stringrequired
- requested_by_idintegerrequired
- created_atstring (date-time)required
- executedboolean | nullList only: whether a preview was executed
- evidenceobjectDetail only. Preview: register, active holds and the per-class plan. Execution: the plan, applied ids per class and whether they match the preview, ledger fingerprint, integrity checks and audit-event count before and after.
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused404No such preview409Plan changed, preview stale or already executed422Invalid body or a period below the class's hard floor
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/retention_runs/1/execute" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"Accounting / Shared accounting services
POST/rest/v1.0/companies/{company_id}/accounting/privacy/subject_exportsExport the personal data held about a subject
Employee or vendor contact: identity, contact, bank (masked), payroll or AP history, portal users, the audit trail about them (actions only), active holds covering them and the retention disposition of each data item. reveal=true decrypts sealed SSN/TIN/bank values for this response only (rate limited). Every export is audited with the sections and the reveal flag, never the values. Creates no record. Needs an unrestricted company owner (company-wide access, every flag including view_payroll_pii and manage_grants) and step-up: a token needs accounting:step_up. Requires accounting:write.
Parameters
- company_idintegerpathrequiredCompany id; must be the token's company
Request body
- subject_exportobjectrequired
- subject_export.subject_typeanyrequiredOne of: employee, vendor.
- subject_export.subject_idintegerrequired
- subject_export.revealboolean
- subject_export.request_idinteger
Response · 200 · object
- subjectobjectrequired
- generated_atstring (date-time)required
- revealedbooleanrequired
- identityobject
- bankobject
- deductionsany[]
- rate_changesany[]
- pay_checksany[]
- year_to_date_importsany[]
- ach_accountsany[]
- vendorobject
- profileobject | null
- form_1099_filingsany[]
- billsany[]
- paymentsany[]
- portal_usersany[]
- audit_trailany[]required
- legal_holdsinteger[]required
- retentionobject[]required
- retention[].datastringrequired
- retention[].dispositionanyrequiredOne of: erasable, retained, already_minimized, erased.
- retention[].reasonstringrequired
- retention[].record_classstring | nullrequired
- retention[].retain_untilstring | null
Errors
401Missing or invalid bearer token, or step-up required for a session403No owner access, wrong company, token without the required scope, step-up or MFA missing, or maker-checker refused404No such subject or request422Invalid body or a period below the class's hard floor429Export rate limit
Example request
curl -X POST "https://app.os.construction/rest/v1.0/companies/1/accounting/privacy/subject_exports" \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"subject_export": {
"subject_type": "employee",
"subject_id": 1
}
}'