# Https://api-sandbox.demo.deel.com/rest/v2/gp/workers/{id}/payslips does not return data

**URL:** <https://stack.deel.com/t/https-api-sandbox-demo-deel-com-rest-v2-gp-workers-id-payslips-does-not-return-data/371>\
**Category:** Q&A\
**Tags:** api\
**Created:** [February 5, 2025, 7:51pm UTC](https://stack.deel.com/t/https-api-sandbox-demo-deel-com-rest-v2-gp-workers-id-payslips-does-not-return-data/371 "2025-02-05T19:51:57Z")\
**Posts on this page:** 3\
**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 5, 2025, 7:51pm UTC](https://stack.deel.com/t/https-api-sandbox-demo-deel-com-rest-v2-gp-workers-id-payslips-does-not-return-data/371/1 "2025-02-05T19:51:57Z")

</div>

In demo I tried get payspip for Employee, so I tried to get ID for this Employee via  
h1ttps://api-sandbox.demo.deel.com/rest/v2/contracts endpoint and get ID of this employee :  
“worker”: {  
“id”: “eb8183b6-f720-4064-93b8-41baa8069162”,  
“full\_name”: “Ivah Kohler”,  
“email”: “[contractorA5-nhaePgIVmA8-iJq18Z@letsdeel.co](mailto:contractorA5-nhaePgIVmA8-iJq18Z@letsdeel.co)”,  
“alternate\_email”:   
},  
Then I try to get data via this endpoint h1ttps://api-sandbox.demo.deel.com/rest/v2/gp/workers/eb8183b6-f720-4064-93b8-41baa8069162/payslips and get issue with errors “errors”: [  
{  
“message”: “Contract not found”  
}. but in the demo I still see this record in Billing tab Payroll  
 ![image](https://canada1.discourse-cdn.com/flex003/uploads/deel_developer/optimized/1X/94f54377f713bcb8ab30d4552d71ecdeb9942a6b_2_690x38.png)  
So please let me know how to get PaySlip for employee/Contract/etc

---

<div class="post-metadata">

**Author:** ![Anees\_Deel](https://yyz1.discourse-cdn.com/flex003/user_avatar/stack.deel.com/anees_deel/32/36_2.png) [@Anees\_Deel](https://stack.deel.com/u/Anees_Deel)\
**Post date:** [February 10, 2025, 10:21am UTC](https://stack.deel.com/t/https-api-sandbox-demo-deel-com-rest-v2-gp-workers-id-payslips-does-not-return-data/371/2 "2025-02-10T10:21:06Z")

</div>

Hello @IronRat  
[Retrieve employee payslips](https://developer.deel.com/reference/getworkerpayslips) only supports GP contracts. Whereas contractId you are trying to access is of type: Contractor.

could you please try using [Retrieve invoices](https://developer.deel.com/reference/getinvoicelist) to see if it satisfies your requirement?

---

<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 10, 2025, 3:32pm UTC](https://stack.deel.com/t/https-api-sandbox-demo-deel-com-rest-v2-gp-workers-id-payslips-does-not-return-data/371/3 "2025-02-10T15:32:34Z")

</div>

Not exactly, I need some endpoint where I can feed ContractID and Date(will be really good) and get list of payments or invoices, or payslips for selected period
