Prod API link - https://connect.squareup.com/v2/team-members/<candidate_id>/wage-setting
Header - Square-Version:2024-01-18
Authorization:Bearer <Access_token>
Content-Type:application/json
sandbox API link - https://connect.squareupsandbox.com/v2/team-members/<candidate_id>/wage-setting
Header - Square-Version:2024-01-18
Authorization:Bearer <Access_token>
Content-Type:application/json
API body - {
“wage_setting”: {
“is_overtime_exempt”: true,
“team_member_id”: “<candidate_id>”,
“job_assignments”: [
{
“job_title”: “Manager”,
“pay_type”: “SALARY”,
“annual_rate”: {
“amount”: 2500000,
“currency”: “USD”
},
“weekly_hours”: 40
},
{
“job_title”: “Cashier”,
“pay_type”: “HOURLY”,
“hourly_rate”: {
“amount”: 1200,
“currency”: “USD”
}
}
]
}
}
This looks to be an invalid entity.
- Invalid JobAssignment An object describing a job that a team member is assigned to.Object objects are included in
job_assignments
. Common invalid job assignments include:
- pay_type The current pay type for the job assignment used to calculate the pay amount in a pay period.Property is
HOURLY
and hourly_rate The hourly pay rate of the job.Property isn’t supplied.
- pay_type The current pay type for the job assignment used to calculate the pay amount in a pay period.Property is
HOURLY
and annual_rate The total pay amount for a 12-month period on the job. Set if the job PayType is SALARY.Property or weekly_hours is supplied.
- pay_type The current pay type for the job assignment used to calculate the pay amount in a pay period.Property is
SALARY
and annual_rate The total pay amount for a 12-month period on the job. Set if the job PayType is SALARY.Property or weekly_hours isn’t supplied.
- pay_type The current pay type for the job assignment used to calculate the pay amount in a pay period.Property is
SALARY
and hourly_rate The hourly pay rate of the job.Property is supplied but the amount doesn’t match the product of hourly_rate The hourly pay rate of the job.Property multiplied by weekly_hours The planned hours per week for the job. Set if the job PayType is SALARY.Property.
- pay_type The current pay type for the job assignment used to calculate the pay amount in a pay period.Property is
NONE
and hourly_rate The hourly pay rate of the job.Property, annual_rate, or weekly_hours is supplied.
- The amount of annual_rate The total pay amount for a 12-month period on the job. Set if the job PayType is SALARY.Property or hourly_rate is negative.
- The currency of annual_rate The total pay amount for a 12-month period on the job. Set if the job PayType is SALARY.Property or hourly_rate does match the currency of the Square account.
- job_title is duplicated.
Hi Brayan,
Same job entity is working on sandbox env could you please check then why it is working on sandbox and not working on production.
{
“wage_setting”: {
“is_overtime_exempt”: true,
“team_member_id”: “TMNvhfdocEnUbOBq”,
“job_assignments”: [
{
“job_title”: “Manager”,
“pay_type”: “SALARY”,
“annual_rate”: {
“amount”: 1500000,
“currency”: “USD”
},
“weekly_hours”: 40
},
{
“job_title”: “Cashier”,
“pay_type”: “HOURLY”,
“hourly_rate”: {
“amount”: 1200,
“currency”: “USD”
}
}
]
}
}
Thanks,
Rajesh Kharatmol
It looks like your passing in an hourly and a salary for this employee. This is listed as one of the invalid job assignments. I’ll be sure to check the sandbox behavior.