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

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”,
“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
So please let me know how to get PaySlip for employee/Contract/etc

Hello @IronRat
Retrieve employee payslips only supports GP contracts. Whereas contractId you are trying to access is of type: Contractor.

could you please try using Retrieve invoices to see if it satisfies your requirement?

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