DTO In Invoice Details, or payment details, Time Offs

Hi there, how can I get details for invoice, for example, We have some worker who will paid from 1st of January to 31 of January, he have regular calendar mon-fri 9-6am with 1h unpaid break, and he got the 1 unpaid DTO, and two Paid for specific dates, how can see this information via endpoints?

I have found a way where we can get information employment_details in contract data, with days and etc (“employment_details”: {
“type”: “ongoing_time_based”,
“days_per_week”: 0,
“hours_per_day”: 0,
“probation_period”: 0,
“paid_vacation_days”: 0
}), and we can calculate appruved TimeOff (/api-sandbox.demo.deel.com/rest/v2/time_offs) so basicly I can get this solution, but still will ask you, maybe there is any easiest way.
2. What is hris_profile_id and how I can get it. (rest/v2/time_offs/profile/{hris_profile_id}/entitlements)
3. Is there any ways to get ussual worker callendar? smth like data (Mon: 9 AM - 6PM, 1H break, Tue: 10:7Pm 2h break) etc, and how I can get those values (if that exist).

Hi @IronRat,

Here’s a breakdown of how you can retrieve the info you’re looking for:


1. How to see what’s included in a worker’s invoice

Note: A new endpoint that returns invoice data in JSON format is in development and expected to be live by the end of the month.


2. What is hris_profile_id and how to get it?

  • The hris_profile_id is essentially the worker’s profile ID.
  • You can retrieve it using:
    GET /people

3. How to get a worker’s usual calendar/schedule

  • If the worker is a contractor on a time-based contract, you can retrieve timesheet info (which reflects their worked hours) via:
    GET /timesheets/by-contract

Let me know if the worker type is different — we can adjust the recommendation accordingly.