PUT
/
api
/
transactions-locking
/
lock
{
  "isEnabled": true,
  "isPartialUnlock": false,
  "lockToDate": "2024-12-31",
  "unlockFromDate": "2025-01-01",
  "unlockToDate": "2025-01-31",
  "lockReason": "Year-end closing",
  "unlockReason": "New fiscal year",
  "partialUnlockReason": "Special adjustment period"
}

Headers

Authorization
string
required

Value must be 'Bearer <token>' where <token> is an API key prefixed with 'bc_' or a JWT token.

Example:

"Bearer bc_1234567890abcdef"

organization-id
string
required

Required if Authorization is a JWT token. The organization ID to operate within.

Body

application/json · object

Response

200 - application/json

The transactions have been successfully locked.

The response is of type object.