Skip to main content
POST
/
payroll-groups
Create Payroll Group
curl --request POST \
  --url https://api.roostedhr.com/api/1_12/payroll-groups \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "name": "<string>",
  "group_rows": [
    [
      "<string>"
    ]
  ],
  "locations": [
    "<string>"
  ],
  "payroll_item_id": "<string>",
  "default_wage": 123,
  "invoice_cost": "<string>",
  "wage_rules_id": "<string>"
}
'
{ "id": "<string>", "name": "<string>", "payroll_item_id": "<string>", "default_wage": 123, "insert_date": "<string>", "invoice_cost": 123, "wage_rules_id": "<string>", "group_rows": [ "<string>" ], "locations": [ "<string>" ] }
Only name is required. All other fields are optional and will use system defaults if omitted.
Set locationAll to true to apply this payroll group to all locations. When false, specify individual locations in the locations array.

Authorizations

X-API-KEY
string
header
required

Body

application/json

Payroll group data

Request body for creating a new payroll group.

name
string
required

Payroll group name

group_rows
string[][]
required

Array of skillset groups. Each group is an array of skillset IDs.

locations
string[]
required

Location IDs to associate with this payroll group

payroll_item_id
string

External payroll item identifier

default_wage
number<float> | null

Default wage rate

invoice_cost
string

Invoice cost (accepts string for flexibility)

wage_rules_id
string

Associated wage rule identifier

Response

Created

A payroll group used to categorize shifts for payroll and invoicing purposes.

id
string

Payroll group identifier

name
string

Payroll group name

payroll_item_id
string | null

External payroll item identifier

default_wage
number<float> | null

Default wage rate

insert_date
string | null

Creation date

invoice_cost
number<float> | null

Invoice cost rate

wage_rules_id
string | null

Associated wage rule identifier

group_rows
string[]

Skillset combination row IDs

locations
string[]

Associated location IDs