Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
operation
enum<string>
required

Adjustment operation. The validator only checks it is a non-blank string; an unknown value is rejected with 422 invalid_adjustment_operation.

Available options:
add,
subtract
employeeId
string<uuid>
required

Employee whose balance is adjusted. Must belong to the company of the token.

from
string<date>
required

First day of the period (Y-m-d). Must not be after to.

Example:

"2026-01-01"

to
string<date>
required

Last day of the period (Y-m-d), inclusive. It can be equal to from.

Example:

"2026-01-31"

balanceBeforeSeconds
integer
required

Balance the client read before adjusting, in seconds. Required unless operation is reset (then optional and not checked). See the concurrency note above.

Example:

7200

amountSeconds
integer

Seconds to add or subtract. Optional in the validator, but when omitted (or not greater than zero) on add/subtract nothing is applied. Ignored on reset.

Example:

3600

source
enum<string>

Balance the adjustment applies to. Optional: when omitted it defaults to total_balance, except when the policy of the employee is hybrid with separated positive/negative balances, where it is mandatory (422 hybrid_independent_policy_required). Ignored on reset. Any value outside the enum is rejected with 422 invalid_movement_source.

Available options:
total_balance,
positive_balance,
negative_balance,
multiplier_rule,
typifying_rule
note
string | null

Free text stored with the adjustment and shown in its history

Response

Adjustment processed. The status is 200 (not 201) because the controller answers through fromRawData; meta is the default single-object meta.

data
object
required
meta
object
required