API Reference
Time
Delete time-off record
post post /api/delete ee time off deletes an existing time off record for one staff, using the time off record id the time off record will be marked as deleted request body parameters body parameters ee time off id integer required integer required the unique marco identifier for the time off record customer id integer integer required required the staff's unique identifier in your company's system example 50 example requests curl x post 'https //api marcopayroll com/api\ benkock8/api/delete ee time off' \\ h 'content type application/json' \\ h 'authorization $auth token' \\ d '{ "ee time off id" "1111" "customer id" "99", }'import requests url = "https //api marcopayroll com/api\ benkock8/api/delete ee time off" payload={ "ee time off id" "1111" "customer id" "99", } headers = { "accept" "application/json", "authorization" "your auth token" } response = requests post(url, headers=headers, data=payload) print(response text){ "message" "delete successfully" } response message string string the endpoint response status valid values delete successfully, please confirm the ee time off id, permission denied