Modify batch of payrolls payments
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Body Required
payrollPayments
-
bankCharges string
-
id integer
-
isFromLockedAccountingPeriod boolean
-
paidAmount string
-
payableByAccountId integer
-
payableToBankId integer
-
payrollEntityId integer
-
plannedDate string
-
requestedAmount string
-
requestedDate string
-
sentDate string
-
valueDate string
POST
/api-v1/payroll/batch/payments
curl \
-X POST http://wyzio.app/api-v1/payroll/batch/payments \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '[{"bankCharges":"string","id":42,"isFromLockedAccountingPeriod":true,"paidAmount":"string","payableByAccountId":42,"payableToBankId":42,"payrollEntityId":42,"plannedDate":"string","requestedAmount":"string","requestedDate":"string","sentDate":"string","valueDate":"string"}]'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
[
{
"bankCharges": "string",
"id": 42,
"isFromLockedAccountingPeriod": true,
"paidAmount": "string",
"payableByAccountId": 42,
"payableToBankId": 42,
"payrollEntityId": 42,
"plannedDate": "string",
"requestedAmount": "string",
"requestedDate": "string",
"sentDate": "string",
"valueDate": "string"
}
]
Response examples (200)
{
"items": [
{
"error": true,
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"data": "string",
"errorCode": "string",
"fieldName": "string",
"isSevere": true
}
]
},
"freshData": {},
"freshRow": {},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"severeError": true
}
]
}