General - Run change account balance

API Url

Used to Run change account balance for more employees at the same time.

POST
http://localhost:16010/ProMarkREST/rest/General/account-balances

Permissions: user

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject
    balanceAdjustmentObject

Balance adjustment object

      accountObject

Account object

        descriptionString

Account description

        formatString

Account format (1: HH:MM, 4: HH.CC, 7: HH).

        idString

Account id

        unitNumber

Account unit (1: Hours, 2: Days, 3: Pieces).

      adjustmentTypeNumber

1: Set account to given value 2: Adjust account by given value 3: Move given account value to another account

      holidayObject

Holiday object. Only when adjustmentType = 1 or 2

        statusString

Holiday status (MANUAL: accrued, MANUALFA: transferred, MANUALTA: from last year)

        typeObject

Holiday type object

          descriptionString

Holiday type description

          idString

Holiday type id

        yearNumber

Holiday year

      linkPostingBoolean

TRUE if the posting is linked

      toAccountObject

To account object. Only when adjustmentType = 3

        descriptionString

Account description

        formatString

Account format (1: HH:MM, 4: HH.CC, 7: HH)

        idString

Account id

        unitNumber

Account unit (1: Hours, 2: Days, 3: Pieces).

      valueNumber

Value that is posted

    categoryIdsString[]

Array of categories to make the change for. Only when scope = 1

    runTimeDatetime

Date and time of the job

    scopeNumber

0: change balance for all employees categories 1: change balance for categories Default is 0

    sendNotificationBoolean

TRUE if a notification should be sent after the job is done

    suppressRedundantChangesBoolean

TRUE if we want to prevent a registration from being made for those employees where the account balance is already equal to the requested value Used only with accounts.adjustmentType = 1. Default is FALSE

Request example:

{
"request": {
"data": {
"suppressRedundantChanges": false,
"scope": 0,
"balanceAdjustment": {
"adjustmentType": 1,
"account": {
"id": "0",
"description": "0konto 123",
"unit": 1,
"format": "HH:MM"
},
"linkPosting": false,
"value": 3600,
"holiday": {
"year": 2020,
"status": "MANUAL",
"type": {
"id": "TELI",
"description": "test"
}
}
}
}
}
}

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"