Get primary rate type details
const url = 'https://api2.recruso.co.uk/v1/reference/primary-rate-types/1';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api2.recruso.co.uk/v1/reference/primary-rate-types/1 \ --header 'Authorization: <Authorization>'Returns one primary rate type by id. The bands a client’s rates are set up under, which decide what a worker’s hours are paid at. Weekday, Saturday, Sunday and bank holiday each have a basic and an overtime band, alongside Nightout, Pre Tax Expense, Post Tax Expense and Deduction.
Primary rate types are platform-wide, so an id means the same primary rate type for every agency.
An id that does not match a primary rate type returns 404.
Access. Requires an authenticated token. No further policy is applied.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The id path parameter
Responses
Section titled “Responses”OK
One primary rate type.
object
The primary rate type’s identifier. Stable and platform-wide — the same id means the same thing for every agency.
The primary rate type name, as it appears in Recruso. Up to 50 characters. Unique across all primary rate types.
Example
{ "id": 1, "name": "Hourly"}Unauthorized
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
