Adding a new timesheet by day
Hi, I am attempting to add a new timesheet via the API (using Postman)
https://api.reckon.com/r1/{{book}}/timesheets
But I am getting a 401 unauthorized. the scope that I am getting when connecting is
openid read write offline_access
Is there anything else I should be requesting to be able to CRUD the timesheet entries?
Just in case the API is behaving weirdly, this is what I am passing as the json body. I would assume if this was a problem the API would throw a bad data/request error of some sort.
{
"EmployeeId": "employeeid_guid",
"Date": "2020-09-21",
"Entries": [
{
"Date": "2020-09-21T00:00:00",
"CustomerId": "customerid_guid",
"ItemId": "itemid_guid",
"Notes": "Mon 21/09/2020",
"Time": "09:00",
"Billable": true,
"Status": 2,
"EmployeeId": "employeeid_guid",
"CashbookId": "bookid",
"PayrollPayItemId": "payrollpayitem_guid"
}
]
}
Thanks again for your help.
Comments
-
I created the POST request in Postman (it wasn't in the collection of requests that Reckon supply us).
and after a few attempts I realized that I was missing the header for Ocp-Apim-Subscription-Key
this was the key. it is now working
0 -
Thanks for confirming that it's working for you.
1
Categories
- All Categories
- 6.8K Accounts Hosted
- 17 📢 Reckon Accounts Hosted - Announcements
- 6K Reckon Accounts (Desktop)
- 8 📢 Reckon Accounts Desktop - Announcements
- 1.5K Reckon Payroll
- 39 📢 Reckon Payroll - Announcements
- 15 Reckon Payroll Help Videos 🎥
- 30 Reckon Mate App
- 2.7K Reckon One
- 16 📢 Reckon One - Announcements
- 14 Reckon Invoices App
- 24 Reckon Insights
- 101 Reckon API
- 310 Point of Sale
- 1.9K Personal Plus and Home & Business
- 70 About Reckon Community