Internal server error?

Hi,
I need some help with running some python code to interact with the API, the code below seems to work but returns a 500 “Internal Server error”. Is there something wrong with the sample code below or is there a problem with the server?

import requests
EndPoint = 'https://api.yourpayroll.com.au/api/v2/ess/{employeeid}/dashboard'
Key = 'Basic {APIKey}'
headers={'Authorization':Key}
r=requests.get(url=EndPoint,headers=headers)
print(r)
1 Like

Hi Sam,

There’s most likely a problem with the call to the API. Can you contact Support at support@yourpayroll.com.au with the particulars of your call, and we can dig deeper as to what the problem is.

Hi @Sam_Matthews, I am agree with :point_right:@ken_Nguyen.

This is a error related to backend server.

You can try this: How to Fix a 500 Internal Server Error