# How to get the gp\_report\_id for an Invoice?

**URL:** https://stack.deel.com/t/how-to-get-the-gp-report-id-for-an-invoice/206
**Category:** Q&A
**Created:** [October 18, 2024, 10:52pm UTC](https://stack.deel.com/t/how-to-get-the-gp-report-id-for-an-invoice/206 "2024-10-18T22:52:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![olivertang](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@olivertang](https://stack.deel.com/u/olivertang)
#### Post date: [October 18, 2024, 10:52pm UTC](https://stack.deel.com/t/how-to-get-the-gp-report-id-for-an-invoice/206/1 "2024-10-18T22:52:05Z")

</div>

What’s the best way to fetch an invoice’s gross-to-net payment report ID? Specifically, I’m trying to call [this /gross\_to\_net endpoint](https://developer.deel.com/reference/getgrosstonetgpreports), which requires a gp\_report\_id field, but I’m not sure how/where to fetch this data via the Deel API.

---

<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 22, 2025, 11:33am UTC](https://stack.deel.com/t/how-to-get-the-gp-report-id-for-an-invoice/206/2 "2025-05-22T11:33:36Z")

</div>

Hello @olivertang

Please refer to [List payroll events by legal entity](https://developer.deel.com/reference/getgplegalentities) for retrieving the needed ID for the G2N report,  
and to [List of legal entities](https://developer.deel.com/reference/getlegalentitylist) for retrieving the Entity ID
