Skip to main content
DELETE
/
api
/
v2
/
employees
/
{employeeId}
/
flex
/
access
cURL
curl --request DELETE \
  --url https://api.become1.de/api/v2/employees/{employeeId}/flex/access \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "endDate": "2023-11-07T05:31:56Z"
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

employeeId
string
required

Body

application/json
endDate
string<date-time>
required

Make sure the date is UTC+0.

To have the access terminated on the end of January 2023, the input would be: 2023-01-31T23:59:59.999Z



This can be set up for any date going back in time up to the past 2 months until the 7th of the current month.

Example:

Current Date 7th of March -> earliest validUntil = 2023-01-31T23:59:59.999Z

Current Date 8th of March -> earlierst validUntil = 2023-02-29T23:59:59.999Z



The 7th of march is a reference date that can vary depending on the date of payroll creation.

Response

200 - application/json
success
boolean
required