Approve lock request
Approves a pending lock request and performs the final period close. Must be invoked by a user other than the requester (four-eyes principle). For tenants with only one user, self-approval is permitted.
POST
/v1/periods/:period/lock/:requestId/approve Authorization
Authorization string header required API key in the format
ll_.... Pass as a Bearer token. Responses
200
Success
400
INVALID_INPUT Parameters are invalid.
404
NOT_FOUND Lock request not found.
409
REQUEST_NOT_PENDING The lock request is no longer pending.
409
REQUEST_EXPIRED The lock request has expired (48h).
403
SELF_APPROVAL_DENIED Lock requests must be approved by a different user.
POST
cURL /v1/periods/:period/lock/:requestId/approve -cmd">curl --request -method">POST -punct">\
--url 'https://api.ledgerlou.de/v1/periods/:period/lock/:requestId/approve' -punct">\
--header 'Authorization: Bearer ll_your_key' 200 Response
JSON {
"period": "<string>",
"period_number": 1,
"status": "<string>",
"locked_by": "<string>",
"locked_at": "<string>",
"closing_hash": "<string>",
"request_id": "<string>",
"approved_by": "<string>"
}