I am using the Xero python SDK (version 1.18.0) and when I execute the create_pay_item() function, I don't get the same response as I do when running it in the API explorer at https://api-explorer.xero.com/payrollau/payitems/createpayitem. I only get the pay_items and any exceptions are not returned.
Specifically, when I try to delete an EarningsRate the API explorer has additional info which is missing from the python response such as:
"Id":"07c1efd6-62e7-4daf-9d9b-c3e3f5d147df","Status":"OK","ProviderName":"API Explorer","DateTimeUTC":"\/Date(1669925910475)\/","ErrorNumber":0,"Type":"ValidationException","Message":"Earnings rate 0643b140-3f13-47ba-82e3-968ca31b2bbf is being referenced and can't be deleted"............
I haven't tried the latest python SDK but has anyone else run into cases where the responses do not match what we see in the API Explorer?
Thanks, Jayaram