Skip to navigation

Leave Record - UPSERT

View as Markdown

This API is use to Create Leave data and Cancel existing Leave data in BIPO.

FieldTypeRequiredDescription
EmployeeCodeStringYesUnique employee identifier
LeaveCodeStringYesLeave Code
DateStartDate (yyyy-mm-dd)YesStart date of the leave record
DateEndDate (yyyy-mm-dd)YesEnd date of the leave record
HalfStartStringConditionalRequired if Leave UnitType = D (Day). Indicates first half of the day (“AM” or “PM”)
HalfEndStringConditionalRequired if Leave UnitType = D (Day). Indicates second half of the day (“AM” or “PM”)
TimeStartString (HH:mm)ConditionalLeave start time
Required if Leave UnitType = H (Hour).
TimeEndString (HH:mm)ConditionalLeave end time
Required if Leave UnitType = H (Hour).
ApprovalStatusStringConditionalMust be set to "C" to indicate cancellation.
System will auto Approve “A” when Create Leave.
RemarksStringNoAdditional remarks

Note: Leave Cancellation is only available to use starting from version 2616.

Authentication

AuthorizationBearer

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

Request

This endpoint expects a string.

Response headers

PragmastringOptional
ExpiresstringOptional
Cache-ControlstringOptional
Referrer-PolicystringOptional
X-Frame-OptionsstringOptional
X-ASPNET-VERSIONstringOptional
X-XSS-ProtectionstringOptional
X-Content-Type-OptionsstringOptional
Content-Security-PolicystringOptional
Strict-Transport-SecuritystringOptional
Access-Control-Allow-OriginstringOptional
Access-Control-Allow-HeadersstringOptional
Access-Control-Allow-MethodsstringOptional
Cross-Origin-Resource-PolicystringOptional
X-Permitted-Cross-Domain-PoliciesstringOptional

Response

OK
okboolean
msgstring