Skip to navigation

Leave Record - LIST

View as Markdown

This API is used to extract leave requests from BIPO. It covers normal leave and leave-with-expiry requests.

FieldTypeRequiredDescription
InterfaceCodeStringYesMust be BIPO-LVR
EmployeeCodesArray of StringNoOnly return requests of these employees
DateFromDate (yyyy-mm-dd)NoOnly return requests from this leave date
DateToDate (yyyy-mm-dd)NoOnly return requests up to this leave date
ApprovalDateFromDate (yyyy-mm-dd)NoOnly return requests approved from this date
ApprovalDateToDate (yyyy-mm-dd)NoOnly return requests approved up to this date
FieldsArray of StringNoColumns to return. Leave out to return all columns

Note: Always send a filter (EmployeeCodes or a date range) so the response stays small.

Note: ApprovalStatus in the response shows where the request stands, for example A = Approved, PA = Pending Approval, C = Cancelled.

Note: RecordID in the response is the value to use for amend, approve, cancel and delete in Leave Record - UPSERT and Leave Record - DELETE.

Note: ExternalRequestID in the response is the reference your own system sent when the request was created. It is not unique, so match on RecordID when you need exactly one request.

Authentication

AuthorizationBearer

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

Request

This endpoint expects a string.

Response

OK
DateEnddatetime
RecordIDstringformat: "uuid"
DateStartdatetime
LeaveCodestring
EmployeeCodestring
ApprovalStatusstring
ExternalRequestIDanyOptional