# DTO In Invoice Details, or payment details, Time Offs

**URL:** <https://stack.deel.com/t/dto-in-invoice-details-or-payment-details-time-offs/380>\
**Category:** Q&A\
**Tags:** eor, contractors, global-payroll, api\
**Created:** [February 25, 2025, 9:23pm UTC](https://stack.deel.com/t/dto-in-invoice-details-or-payment-details-time-offs/380 "2025-02-25T21:23:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IronRat](https://yyz1.discourse-cdn.com/flex003/user_avatar/stack.deel.com/ironrat/32/64_2.png) [@IronRat](https://stack.deel.com/u/IronRat)\
**Post date:** [February 25, 2025, 9:23pm UTC](https://stack.deel.com/t/dto-in-invoice-details-or-payment-details-time-offs/380/1 "2025-02-25T21:23:42Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![Gabriela\_Deel](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@Gabriela\_Deel](https://stack.deel.com/u/Gabriela_Deel)\
**Post date:** [May 23, 2025, 11:00am UTC](https://stack.deel.com/t/dto-in-invoice-details-or-payment-details-time-offs/380/2 "2025-05-23T11:00:58Z")

</div>

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**

- To **download the full invoice** (including the breakdown of line items), use:  
[**GET /billing/invoice/download-link**](https://developer.deel.com/reference/getbillinginvoicedownloadlink)
- If you need to **retrieve the invoice ID** , use:  
[**GET /invoices**](https://developer.deel.com/reference/getinvoicelist)
- For **invoice adjustments** , use:  
[**GET /invoice-adjustments/by-contract-id**](https://developer.deel.com/reference/getinvoiceadjustmentsbycontractid)
- For **time off details** , you can use:  
[**GET /time\_offs/profile/{hris\_profile\_id}/entitlements**](https://developer.deel.com/reference/getprofileentitlements)

> **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**](https://developer.deel.com/reference/getpeoplelist)

* * *

### 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**](https://developer.deel.com/reference/gettimesheetsbycontract)

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