Work: Retrieving, Logging, Updating, and Deleting Work, Absences, Additions, and Work Files via the API

In this article, you can read about retrieving and deleting logged work, logging absences and additions, managing work file attachments, and retrieving work log history via the API.

Get Work

GET

Retrieves a list of logged work with its corresponding details. You can use one or more of the search parameters below, and combine them, to narrow your results.

https://api.recman.io/v2/get/index.php?key={{api_key}}&scope=work&page=1&candidateId=5874692
FieldTypeRequiredDescription
keystringRequiredYour API key
scopestringRequiredMust be set to work
pageintegerRequired (at least one search criterion)Page number. 1000 work records per page
workIdsstringRequired (at least one search criterion)A specific work ID, or comma-separated work IDs
minWorkIdintegerRequired (at least one search criterion)Lists work from a certain point onward
candidateIdintegerRequired (at least one search criterion)Retrieves work connected to a specific candidate
candidateIdsstringRequired (at least one search criterion)Retrieves work connected to multiple candidates, comma-separated
fieldsstringOptionalAdd the value globalTagIds to include global tag IDs in the response

Note

You can combine different search parameters to adjust your fetch requests more precisely.

Work fields

FieldTypeDescription
workIdintegerWork ID
candidateIdintegerID of the candidate this work belongs to
jobIdintegerID of the job this work is logged against
projectIdintegerProject ID
articleIdintegerID of the article used for this work entry
typestringArticle type. See valid values below
statusstringApproval status of the work entry
salaryPaidintegerWhether the salary for this work has been paid
datestringDate of the work entry
qtynumberQuantity logged
qtyExclBreaknumberQuantity excluding break
qtyInclBreaknumberQuantity including break
startTimestringStart time
endTimestringEnd time
breakTimestringBreak time
invoiceBreakintegerWhether the break is invoiced
paidBreakintegerWhether the break is paid
socialCostintegerWhether social cost applies
timeExclBreakstringTime excluding break
timeInclBreakstringTime including break
unitSalaryPricenumberUnit salary price
unitInvoicePricenumberUnit invoice price
sumSalarynumberTotal salary sum
sumInvoicenumberTotal invoice sum
vatPercentnumberVAT percentage
vatnumberVAT amount
internalNotesstringInternal notes
invoiceNotesstringInvoice notes
createdstringDate of creation
updatedstringDate of last update
childProjectIdintegerChild project ID, if applicable
globalTagIdsstringIncluded only when requested via the fields parameter

Valid values for type (article type):

  • 1 = hour
  • 2 = absence
  • 3 = addition
  • 4 = deduction
  • 5 = piecework
  • 6 = day
  • 7 = month
  • 8 = overtime
  • 9 = hourAddition
  • 10 = guaranteePay
  • 11 = guaranteeAddition
  • 12 = absence
  • 13 = selfManagedAbsence
  • 14 = receipt
  • default = N/A

Delete Work

POST

Deletes a work record. The operation must be set to delete and the scope to work. It is required to specify the workId field when deleting a work record.

https://api.recman.io/v2/post/
FieldTypeRequiredDescription
workIdintegerRequiredID of the work record to delete

Insert Absence

POST

Logs an absence for an employee. The operation must be set to insert and the scope to absence.

https://api.recman.io/v2/post/

Note

Only absence articles connected to the employee's collective agreement can be logged.

FieldTypeRequiredDescription
jobIdintegerRequiredID of the job this absence is logged against
articleIdintegerRequiredID of the absence article to use
startstringRequiredStart date and time of the absence. 
Format: YYYY-MM-DD HH:MM:SS
endstringRequiredEnd date and time of the absence. 
Format: YYYY-MM-DD HH:MM:SS
breakTimestringOptionalBreak time during the absence. Format: HH:MM:SS
notesstringOptionalNotes about the absence

Insert Addition

POST

Logs an addition for an employee. The operation must be set to insert and the scope to addition.

https://api.recman.io/v2/post/

Note

Only addition articles connected to the employee's collective agreement can be logged. The log salary and log invoice permissions must be enabled for an article in order to register the unitSalary and unitInvoice fields.

FieldTypeRequiredDescription
jobIdintegerRequiredID of the job this addition is logged against
datestringRequiredDate of the addition. Format: YYYY-MM-DD
articleIdintegerRequiredID of the addition article to use
qtynumberRequiredQuantity for the addition
unitSalarynumberOptionalUnit salary value. Requires the log salary permission to be enabled for the article
unitInvoicenumberOptionalUnit invoice value. Requires the log invoice permission to be enabled for the article
notesstringOptionalNotes about the addition

Insert Work File

POST

Uploads a file and attaches it to a candidate's work record. The operation must be set to insert and the scope to workFile. The response includes the workFileId of the added file.

https://api.recman.io/v2/post/

Note

To find a candidate's work IDs, use the Get Work request.

FieldTypeRequiredDescription
workIdintegerRequiredID of the work record to attach the file to
fileobjectRequiredBest practice example: "file": {"name": "image.jpeg", "extension": "jpeg", "base64": "..."}

Delete Work File

POST

Deletes a work file by its workFileId identifier. The operation must be set to delete and the scope to workFile.

https://api.recman.io/v2/post/
FieldTypeRequiredDescription
workFileIdintegerRequiredID of the work file to delete

Get Work Log

GET

Retrieves a list of work log items, recording actions taken on work records.

https://api.recman.io/v2/get/index.php?key={{api_key}}&scope=
workLog&limit=300&fromWorkLogId=1345&workId=5431
FieldTypeRequiredDescription
keystringRequiredYour API key
scopestringRequiredMust be set to workLog
limitintegerOptionalLimit of items per request. 
Default is 100, maximum is 1000
fromWorkLogIdintegerOptionalUsed for pagination. Use the last workLogId from the previous request to move further down the list
workIdintegerOptionalRetrieves work log items connected to a specific work record

Work log fields

FieldTypeDescription
workLogIdintegerWork log ID
workIdintegerID of the related work record
categoryIdintegerCategory of the logged action
userIdintegerID of the co-worker who performed the action, if applicable
contactPersonIdintegerID of the contact person who performed the action, if applicable
candidateIdintegerID of the candidate who performed the action, if applicable
createdstringDate and time the log entry was created
Was this article helpful?
0 out of 0 found this helpful