How to accrue leave balances using the API

jmulquin
jmulquin Member Posts: 6 Novice Member Novice Member

I was wondering if it's possible to accrue leave balances via the API. I can see that we can create earnings items that deducts from these leave balances however I'm having a hard time finding out if it's possible to add to these balances using the API. We provide a flexible TIL system for our employees and being able to dynamically accrue this leave would be incredible.

We have a GET endpoint for leavebalances, is it on the roadmap to add POST/PUT endpoints on this as well?

Thanks,
Jacob

Comments

  • jmulquin
    jmulquin Member Posts: 6 Novice Member Novice Member

    I forgot to mention, Reckon One API

  • jmulquin
    jmulquin Member Posts: 6 Novice Member Novice Member
    edited October 20

    Support has responded to me, recommendation was to do a PUT request on the V1 employees endpoint, updating the "AnnualEntitlement" field to the new value of Time in Lieu hours for each employee.

    Employees API v1 - Reckon Help and Support Centre

    Thankyou!

  • Reeta
    Reeta Reckon Staff Posts: 371 Reckon Staff Reckon Staff

    Hi @jmulquin ,

    How did you go with that suggestion?

    Were you able to do the PUT request and get the outcome you were hoping for?

    Let me know if you ran into any issue .

    Regards,

    Reeta

  • jmulquin
    jmulquin Member Posts: 6 Novice Member Novice Member

    Hi Reeta,

    I'm still working on implementing it, will post back here with the results :)

    -Jacob

  • Reeta
    Reeta Reckon Staff Posts: 371 Reckon Staff Reckon Staff

    Hi @jmulquin ,

    Perfect. Thanks Jacob😊