Add Leave Record

Allow customer to add leave record for the user.

  • This API endpoint can add new leave type for the staff. Before you use this endpoint, you can get leave type name form the endpoint Get leave type by country.

  • unique_identifier: Choose either email/staff_id to be unique_identifier.

post

Authentication: required

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
customer_idstringRequired
unique_identifierstringRequired
emailstring | nullableOptional
staff_idstring | nullableOptional
leave_typestringRequired
countrystringRequired
langstringOptionalDefault: EN
entitlement_daysstringRequired
effective_datestring · date | nullableRequired
carried_daysstring | nullableOptional
carried_expiry_datestring · date | nullableOptional
notesstring | nullableOptional
Responses
chevron-right
200

Success!

application/json
post
/add-ee-leave-details

Last updated