Economy: Retrieving Active and Deleted Paychecks and Managing Paycheck Export Logs

In this article, you can read about how to retrieve active and deleted paychecks via the API, and how to insert and delete paycheck export logs and deleted-paycheck export logs.

Get Paycheck

GET

https://api.recman.io/v2/get/?key={{api_key}}&
scope=paycheck&page=1

Retrieve paychecks through the GET method. page is required. If exported is not specified, all paychecks are returned. The paycheck list is sorted descending.

Note

If a paycheck has an attached object, it can be downloaded separately using the 
workAttachment scope.

URLhttps://api.recman.io/v2/get/
Scopepaycheck
PagePage number, 1000 paychecks per page
ParametersminPaycheckId, payCheckIds, paycheckId, exported, paycheckSystemId

Parameters explained

ParameterDescription
payCheckIdsEnter several paycheck IDs to list specific ones. Comma-separated, no spaces.
paycheckIdSelect only one paycheck to export.
exportedRequest only paychecks that have been exported or not.
"0" = Not exported, "1" = Exported.
paycheckSystemIdGives an ID based on what kind of export the paycheck has been exported to. exported must be set to "1" for this parameter to work.
minPaycheckIdLists all paychecks over a specified paycheck ID, and none below.

PARAMS

key{{api_key}}
scopepaycheck
page1

Get Paycheck — Deleted

GET

https://api.recman.io/v2/get/?key={{api_key}}&
scope=deletedPaycheck&page=1

Gives you a list of all paychecks that have been deleted. Same pagination and parameters as the standard paycheck scope apply.

URLhttps://api.recman.io/v2/get/
ScopedeletedPaycheck
PagePage number, 1000 paychecks per page
ParametersminPaycheckId, payCheckIds, paycheckId, exported, paycheckSystemId

PARAMS

key{{api_key}}
scopedeletedPaycheck
page1

Insert / Delete Paycheck Export Log

POST

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

The POST method is used for inserting and deleting paycheck export logs.

URL POSThttps://api.recman.io/v2/post/
ScopepaycheckExportLog
Operationinsert / delete

Fields

FieldDescription
paycheckId
integer
Paycheck ID. 
Required on operation: insert
userId
integer
User ID. 
Required on operation: insert
paycheckSystemId
integer
Paycheck system ID. 
Required on operation: insert
paycheckExportLogId
integer
Paycheck export log ID. 
Required on operation: delete

Request Body — Insert

key{{api_key}}
scopepaycheckExportLog
operationinsert
data.paycheckId423562
data.userId13236
data.paycheckSystemId755682

Request Body — Delete

key{{api_key}}
scopepaycheckExportLog
operationdelete
data.paycheckExportLogId321312

Insert / Delete Deleted-Paycheck Export Log

POST

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

The POST method is used for inserting and deleting export logs specifically for deleted paychecks. 
Fields and behavior are identical to the standard paycheck export log, but apply to the
deletedPaycheckExportLog scope.

URL POSThttps://api.recman.io/v2/post/
ScopedeletedPaycheckExportLog
Operationinsert / delete

Fields

FieldDescription
paycheckId
integer
Paycheck ID. 
Required on operation: insert
userId
integer
User ID. 
Required on operation: insert
paycheckSystemId
integer
Paycheck system ID. 
Required on operation: insert
paycheckExportLogId
integer
Paycheck export log ID. 
Required on operation: delete

Request Body — Insert

key{{api_key}}
scopedeletedPaycheckExportLog
operationinsert
data.paycheckId423562
data.userId13236
data.paycheckSystemId755682
Was this article helpful?
0 out of 0 found this helpful