Batch edit participants
curl --request PATCH \
--url https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"updates": [
{
"census_diff": {},
"employee": "<string>",
"employee_diff": {},
"plan_data": [
{
"clear_given": true,
"key": "<string>",
"override_key": "<string>",
"override_value": "<unknown>",
"plan": "<string>",
"skipped": "<unknown>",
"value": "<unknown>"
}
]
}
]
}
'import requests
url = "https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch"
payload = { "updates": [
{
"census_diff": {},
"employee": "<string>",
"employee_diff": {},
"plan_data": [
{
"clear_given": True,
"key": "<string>",
"override_key": "<string>",
"override_value": "<unknown>",
"plan": "<string>",
"skipped": "<unknown>",
"value": "<unknown>"
}
]
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
updates: [
{
census_diff: {},
employee: '<string>',
employee_diff: {},
plan_data: [
{
clear_given: true,
key: '<string>',
override_key: '<string>',
override_value: '<unknown>',
plan: '<string>',
skipped: '<unknown>',
value: '<unknown>'
}
]
}
]
})
};
fetch('https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'updates' => [
[
'census_diff' => [
],
'employee' => '<string>',
'employee_diff' => [
],
'plan_data' => [
[
'clear_given' => true,
'key' => '<string>',
'override_key' => '<string>',
'override_value' => '<unknown>',
'plan' => '<string>',
'skipped' => '<unknown>',
'value' => '<unknown>'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch"
payload := strings.NewReader("{\n \"updates\": [\n {\n \"census_diff\": {},\n \"employee\": \"<string>\",\n \"employee_diff\": {},\n \"plan_data\": [\n {\n \"clear_given\": true,\n \"key\": \"<string>\",\n \"override_key\": \"<string>\",\n \"override_value\": \"<unknown>\",\n \"plan\": \"<string>\",\n \"skipped\": \"<unknown>\",\n \"value\": \"<unknown>\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"updates\": [\n {\n \"census_diff\": {},\n \"employee\": \"<string>\",\n \"employee_diff\": {},\n \"plan_data\": [\n {\n \"clear_given\": true,\n \"key\": \"<string>\",\n \"override_key\": \"<string>\",\n \"override_value\": \"<unknown>\",\n \"plan\": \"<string>\",\n \"skipped\": \"<unknown>\",\n \"value\": \"<unknown>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"updates\": [\n {\n \"census_diff\": {},\n \"employee\": \"<string>\",\n \"employee_diff\": {},\n \"plan_data\": [\n {\n \"clear_given\": true,\n \"key\": \"<string>\",\n \"override_key\": \"<string>\",\n \"override_value\": \"<unknown>\",\n \"plan\": \"<string>\",\n \"skipped\": \"<unknown>\",\n \"value\": \"<unknown>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"updates": [
{
"employee": {
"_id": "<string>",
"address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"birth_date": "<string>",
"census": {
"_id": "<string>",
"activity": [
{
"_id": "<string>",
"action": "<string>",
"changes": [
{
"data": "<string>",
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"client": "<string>",
"on_id": "<string>",
"on_py": 123,
"on_type": "<string>",
"team": "<string>",
"timestamp": "<string>",
"user": "<string>"
}
],
"address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"birth_date": "<string>",
"cleared": [
"<string>"
],
"client": "<string>",
"created_at": "<string>",
"ct_group_code": "<string>",
"deleted_at": "<string>",
"edits": {},
"email": "<string>",
"employee": "<string>",
"employment_category": "<string>",
"employment_type": "<string>",
"errors": [
{
"custom": "<string>",
"detail": "<string>",
"field_names": [
"<string>"
],
"path": [
"<string>"
],
"plan": "<string>",
"reason": "<string>",
"reviewed": true
}
],
"ethnicity": "<string>",
"first_name": "<string>",
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": true,
"last_name": "<string>",
"loan_amount": 123,
"loan_balance": 123,
"loan_disbursement_date": "<string>",
"loan_installment": 123,
"loan_payments": [
{
"_id": "<string>",
"amount": 123,
"date": "<string>",
"loan_id": "<string>",
"payroll": "<string>",
"source": "<string>"
}
],
"location_code": "<string>",
"middle_name": "<string>",
"not_employee": true,
"other_employers": [
"<string>"
],
"owner_kind": "<string>",
"ownership_percentage": 123,
"phone": "<string>",
"plans_data": [
{
"eligibility_date": {
"calculated": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>",
"given": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"overrides": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
}
},
"eligibility_reason": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"eligibility_status": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"eligible_gross_pay": {
"calculated": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123,
"given": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"overrides": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
},
"entry_date": {
"calculated": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>",
"given": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"overrides": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
}
},
"exclusions": {
"ee": true,
"er_match": true,
"er_non_elective": true,
"er_safe_harbor": true
},
"plan_compensation": {
"calculated": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123,
"given": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"overrides": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
},
"plan_id": "<string>",
"plan_type": "<string>",
"transactions": {
"calculated": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"given": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"new_compensation_group": "<string>",
"overrides": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"prevailing_wage": 123,
"statutory_compensation": 123
},
"vesting": {
"date": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"historical_hos": 123,
"nra": "<string>",
"nra_met": true,
"status": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"vested": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"yos": 123
},
"warnings": [
{
"dismiss": true,
"fields": [
"<string>"
],
"money_type": "<string>",
"reason": "<string>"
}
]
}
],
"possible_termination_date": "<string>",
"preferred_name": "<string>",
"principal": "<string>",
"py": 123,
"rehire_date": "<string>",
"relationship": "<string>",
"skipped": {},
"ssn": "<string>",
"status_override": "<string>",
"team": "<string>",
"termination_date": "<string>",
"termination_reason": "<string>",
"title": "<string>",
"w2_sources": [
{
"boxes": {
"box_1": "<string>",
"box_10": "<string>",
"box_11": "<string>",
"box_12": [
{
"amount": "<string>",
"code": "<string>"
}
],
"box_13_retirement_plan": true,
"box_13_statutory_employee": true,
"box_13_third_party_sick_pay": true,
"box_14": [
{
"amount": "<string>",
"label": "<string>"
}
],
"box_2": "<string>",
"box_3": "<string>",
"box_4": "<string>",
"box_5": "<string>",
"box_6": "<string>",
"box_7": "<string>",
"box_8": "<string>",
"state_local": [
{
"employer_state_id": "<string>",
"local_income_tax": "<string>",
"local_wages_tips": "<string>",
"locality_name": "<string>",
"state": "<string>",
"state_income_tax": "<string>",
"state_wages_tips": "<string>"
}
]
},
"compensation_applicable": true,
"confidence": 123,
"document_type": "<string>",
"employee_address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"employee_name": "<string>",
"employer_ein": "<string>",
"employer_name": "<string>",
"error_code": "<string>",
"file": "<string>",
"form_status": "<string>",
"gross_income": "<string>",
"gross_receipts": "<string>",
"guaranteed_payments_services": "<string>",
"net_profit": "<string>",
"ordinary_income": "<string>",
"parsed_at": "<string>",
"retirement_plan": true,
"self_employment_earnings": "<string>",
"ssn_last_four": "<string>",
"status": "uploaded",
"tax_year": 123,
"total_expenses": "<string>",
"warning": "<string>"
}
]
},
"client": "<string>",
"created_at": "<string>",
"ct_group_code": "<string>",
"deleted_at": "<string>",
"distributions": [
{
"_id": "<string>",
"amount": 123,
"client": "<string>",
"created_at": "<string>",
"deleted_at": "<string>",
"employee": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"plan": "<string>",
"processed_at": "<string>",
"processor": "<string>",
"reason": "<string>",
"requested_at": "<string>",
"source": "<string>",
"source_id": "<string>",
"ssn": "<string>",
"status": "<string>",
"team": "<string>"
}
],
"email": "<string>",
"employee_plans_data": [
{
"plan": "<string>",
"vesting_basis": {
"date_basis": {
"ee": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"pct_basis": {
"ee": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"yos_basis": {
"ee": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
}
}
],
"employment_category": "<string>",
"employment_type": "<string>",
"ethnicity": "<string>",
"finch_ids": [
"<string>"
],
"first_name": "<string>",
"frozen": true,
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": true,
"last_name": "<string>",
"loan": [
{
"_id": "<string>",
"amount": 123,
"client": "<string>",
"created_at": "<string>",
"data": "<string>",
"deleted_at": "<string>",
"employee": "<string>",
"payroll": "<string>",
"plan": "<string>",
"remote_id": "<string>",
"status": "<string>",
"team": "<string>",
"type": "<string>"
}
],
"location_code": "<string>",
"middle_name": "<string>",
"missing_ssn": true,
"not_employee": true,
"ownership_percentage": 123,
"parser_errors": [
{
"error": "<string>",
"field": "<string>"
}
],
"payroll_location_id": "<string>",
"phone": "<string>",
"possible_duplicate": true,
"preferred_name": "<string>",
"principal": "<string>",
"prior_year_census": {
"_id": "<string>",
"activity": [
{
"_id": "<string>",
"action": "<string>",
"changes": [
{
"data": "<string>",
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"client": "<string>",
"on_id": "<string>",
"on_py": 123,
"on_type": "<string>",
"team": "<string>",
"timestamp": "<string>",
"user": "<string>"
}
],
"address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"birth_date": "<string>",
"cleared": [
"<string>"
],
"client": "<string>",
"created_at": "<string>",
"ct_group_code": "<string>",
"deleted_at": "<string>",
"edits": {},
"email": "<string>",
"employee": "<string>",
"employment_category": "<string>",
"employment_type": "<string>",
"errors": [
{
"custom": "<string>",
"detail": "<string>",
"field_names": [
"<string>"
],
"path": [
"<string>"
],
"plan": "<string>",
"reason": "<string>",
"reviewed": true
}
],
"ethnicity": "<string>",
"first_name": "<string>",
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": true,
"last_name": "<string>",
"loan_amount": 123,
"loan_balance": 123,
"loan_disbursement_date": "<string>",
"loan_installment": 123,
"loan_payments": [
{
"_id": "<string>",
"amount": 123,
"date": "<string>",
"loan_id": "<string>",
"payroll": "<string>",
"source": "<string>"
}
],
"location_code": "<string>",
"middle_name": "<string>",
"not_employee": true,
"other_employers": [
"<string>"
],
"owner_kind": "<string>",
"ownership_percentage": 123,
"phone": "<string>",
"plans_data": [
{
"eligibility_date": {
"calculated": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>",
"given": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"overrides": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
}
},
"eligibility_reason": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"eligibility_status": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"eligible_gross_pay": {
"calculated": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123,
"given": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"overrides": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
},
"entry_date": {
"calculated": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>",
"given": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"overrides": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
}
},
"exclusions": {
"ee": true,
"er_match": true,
"er_non_elective": true,
"er_safe_harbor": true
},
"plan_compensation": {
"calculated": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123,
"given": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"overrides": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
},
"plan_id": "<string>",
"plan_type": "<string>",
"transactions": {
"calculated": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"given": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"new_compensation_group": "<string>",
"overrides": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"prevailing_wage": 123,
"statutory_compensation": 123
},
"vesting": {
"date": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"historical_hos": 123,
"nra": "<string>",
"nra_met": true,
"status": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"vested": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"yos": 123
},
"warnings": [
{
"dismiss": true,
"fields": [
"<string>"
],
"money_type": "<string>",
"reason": "<string>"
}
]
}
],
"possible_termination_date": "<string>",
"preferred_name": "<string>",
"principal": "<string>",
"py": 123,
"rehire_date": "<string>",
"relationship": "<string>",
"skipped": {},
"ssn": "<string>",
"status_override": "<string>",
"team": "<string>",
"termination_date": "<string>",
"termination_reason": "<string>",
"title": "<string>",
"w2_sources": [
{
"boxes": {
"box_1": "<string>",
"box_10": "<string>",
"box_11": "<string>",
"box_12": [
{
"amount": "<string>",
"code": "<string>"
}
],
"box_13_retirement_plan": true,
"box_13_statutory_employee": true,
"box_13_third_party_sick_pay": true,
"box_14": [
{
"amount": "<string>",
"label": "<string>"
}
],
"box_2": "<string>",
"box_3": "<string>",
"box_4": "<string>",
"box_5": "<string>",
"box_6": "<string>",
"box_7": "<string>",
"box_8": "<string>",
"state_local": [
{
"employer_state_id": "<string>",
"local_income_tax": "<string>",
"local_wages_tips": "<string>",
"locality_name": "<string>",
"state": "<string>",
"state_income_tax": "<string>",
"state_wages_tips": "<string>"
}
]
},
"compensation_applicable": true,
"confidence": 123,
"document_type": "<string>",
"employee_address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"employee_name": "<string>",
"employer_ein": "<string>",
"employer_name": "<string>",
"error_code": "<string>",
"file": "<string>",
"form_status": "<string>",
"gross_income": "<string>",
"gross_receipts": "<string>",
"guaranteed_payments_services": "<string>",
"net_profit": "<string>",
"ordinary_income": "<string>",
"parsed_at": "<string>",
"retirement_plan": true,
"self_employment_earnings": "<string>",
"ssn_last_four": "<string>",
"status": "uploaded",
"tax_year": 123,
"total_expenses": "<string>",
"warning": "<string>"
}
]
},
"rehire_date": "<string>",
"relationship": "<string>",
"remote_id": "<string>",
"ssn": "<string>",
"status_override": "<string>",
"team": "<string>",
"termination_date": "<string>",
"title": "<string>"
},
"issues": [
{
"employee": "<string>",
"errors": [
{
"custom": "<string>",
"detail": "<string>",
"duplicate": true,
"employee_census_path": [
"<string>"
],
"employee_path": [
"<string>"
],
"field_names": [
"<string>"
],
"force": true,
"instruction": "<string>",
"last_year_value": "<unknown>",
"plan": "<string>",
"reason": "<string>",
"reviewed": true
}
]
}
]
}
]
}{}{}{}packages
Batch edit participants
Persist locally staged employee, census, and plan-data edits with bulk writes, recalculate eligibility once per affected client, and return each fully refreshed participant with its complete issue list.
PATCH
/
packages
/
retirement
/
participants
/
{py}
/
{client}
/
_batch
Batch edit participants
curl --request PATCH \
--url https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"updates": [
{
"census_diff": {},
"employee": "<string>",
"employee_diff": {},
"plan_data": [
{
"clear_given": true,
"key": "<string>",
"override_key": "<string>",
"override_value": "<unknown>",
"plan": "<string>",
"skipped": "<unknown>",
"value": "<unknown>"
}
]
}
]
}
'import requests
url = "https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch"
payload = { "updates": [
{
"census_diff": {},
"employee": "<string>",
"employee_diff": {},
"plan_data": [
{
"clear_given": True,
"key": "<string>",
"override_key": "<string>",
"override_value": "<unknown>",
"plan": "<string>",
"skipped": "<unknown>",
"value": "<unknown>"
}
]
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
updates: [
{
census_diff: {},
employee: '<string>',
employee_diff: {},
plan_data: [
{
clear_given: true,
key: '<string>',
override_key: '<string>',
override_value: '<unknown>',
plan: '<string>',
skipped: '<unknown>',
value: '<unknown>'
}
]
}
]
})
};
fetch('https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'updates' => [
[
'census_diff' => [
],
'employee' => '<string>',
'employee_diff' => [
],
'plan_data' => [
[
'clear_given' => true,
'key' => '<string>',
'override_key' => '<string>',
'override_value' => '<unknown>',
'plan' => '<string>',
'skipped' => '<unknown>',
'value' => '<unknown>'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch"
payload := strings.NewReader("{\n \"updates\": [\n {\n \"census_diff\": {},\n \"employee\": \"<string>\",\n \"employee_diff\": {},\n \"plan_data\": [\n {\n \"clear_given\": true,\n \"key\": \"<string>\",\n \"override_key\": \"<string>\",\n \"override_value\": \"<unknown>\",\n \"plan\": \"<string>\",\n \"skipped\": \"<unknown>\",\n \"value\": \"<unknown>\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"updates\": [\n {\n \"census_diff\": {},\n \"employee\": \"<string>\",\n \"employee_diff\": {},\n \"plan_data\": [\n {\n \"clear_given\": true,\n \"key\": \"<string>\",\n \"override_key\": \"<string>\",\n \"override_value\": \"<unknown>\",\n \"plan\": \"<string>\",\n \"skipped\": \"<unknown>\",\n \"value\": \"<unknown>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/packages/retirement/participants/{py}/{client}/_batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"updates\": [\n {\n \"census_diff\": {},\n \"employee\": \"<string>\",\n \"employee_diff\": {},\n \"plan_data\": [\n {\n \"clear_given\": true,\n \"key\": \"<string>\",\n \"override_key\": \"<string>\",\n \"override_value\": \"<unknown>\",\n \"plan\": \"<string>\",\n \"skipped\": \"<unknown>\",\n \"value\": \"<unknown>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"updates": [
{
"employee": {
"_id": "<string>",
"address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"birth_date": "<string>",
"census": {
"_id": "<string>",
"activity": [
{
"_id": "<string>",
"action": "<string>",
"changes": [
{
"data": "<string>",
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"client": "<string>",
"on_id": "<string>",
"on_py": 123,
"on_type": "<string>",
"team": "<string>",
"timestamp": "<string>",
"user": "<string>"
}
],
"address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"birth_date": "<string>",
"cleared": [
"<string>"
],
"client": "<string>",
"created_at": "<string>",
"ct_group_code": "<string>",
"deleted_at": "<string>",
"edits": {},
"email": "<string>",
"employee": "<string>",
"employment_category": "<string>",
"employment_type": "<string>",
"errors": [
{
"custom": "<string>",
"detail": "<string>",
"field_names": [
"<string>"
],
"path": [
"<string>"
],
"plan": "<string>",
"reason": "<string>",
"reviewed": true
}
],
"ethnicity": "<string>",
"first_name": "<string>",
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": true,
"last_name": "<string>",
"loan_amount": 123,
"loan_balance": 123,
"loan_disbursement_date": "<string>",
"loan_installment": 123,
"loan_payments": [
{
"_id": "<string>",
"amount": 123,
"date": "<string>",
"loan_id": "<string>",
"payroll": "<string>",
"source": "<string>"
}
],
"location_code": "<string>",
"middle_name": "<string>",
"not_employee": true,
"other_employers": [
"<string>"
],
"owner_kind": "<string>",
"ownership_percentage": 123,
"phone": "<string>",
"plans_data": [
{
"eligibility_date": {
"calculated": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>",
"given": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"overrides": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
}
},
"eligibility_reason": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"eligibility_status": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"eligible_gross_pay": {
"calculated": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123,
"given": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"overrides": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
},
"entry_date": {
"calculated": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>",
"given": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"overrides": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
}
},
"exclusions": {
"ee": true,
"er_match": true,
"er_non_elective": true,
"er_safe_harbor": true
},
"plan_compensation": {
"calculated": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123,
"given": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"overrides": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
},
"plan_id": "<string>",
"plan_type": "<string>",
"transactions": {
"calculated": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"given": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"new_compensation_group": "<string>",
"overrides": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"prevailing_wage": 123,
"statutory_compensation": 123
},
"vesting": {
"date": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"historical_hos": 123,
"nra": "<string>",
"nra_met": true,
"status": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"vested": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"yos": 123
},
"warnings": [
{
"dismiss": true,
"fields": [
"<string>"
],
"money_type": "<string>",
"reason": "<string>"
}
]
}
],
"possible_termination_date": "<string>",
"preferred_name": "<string>",
"principal": "<string>",
"py": 123,
"rehire_date": "<string>",
"relationship": "<string>",
"skipped": {},
"ssn": "<string>",
"status_override": "<string>",
"team": "<string>",
"termination_date": "<string>",
"termination_reason": "<string>",
"title": "<string>",
"w2_sources": [
{
"boxes": {
"box_1": "<string>",
"box_10": "<string>",
"box_11": "<string>",
"box_12": [
{
"amount": "<string>",
"code": "<string>"
}
],
"box_13_retirement_plan": true,
"box_13_statutory_employee": true,
"box_13_third_party_sick_pay": true,
"box_14": [
{
"amount": "<string>",
"label": "<string>"
}
],
"box_2": "<string>",
"box_3": "<string>",
"box_4": "<string>",
"box_5": "<string>",
"box_6": "<string>",
"box_7": "<string>",
"box_8": "<string>",
"state_local": [
{
"employer_state_id": "<string>",
"local_income_tax": "<string>",
"local_wages_tips": "<string>",
"locality_name": "<string>",
"state": "<string>",
"state_income_tax": "<string>",
"state_wages_tips": "<string>"
}
]
},
"compensation_applicable": true,
"confidence": 123,
"document_type": "<string>",
"employee_address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"employee_name": "<string>",
"employer_ein": "<string>",
"employer_name": "<string>",
"error_code": "<string>",
"file": "<string>",
"form_status": "<string>",
"gross_income": "<string>",
"gross_receipts": "<string>",
"guaranteed_payments_services": "<string>",
"net_profit": "<string>",
"ordinary_income": "<string>",
"parsed_at": "<string>",
"retirement_plan": true,
"self_employment_earnings": "<string>",
"ssn_last_four": "<string>",
"status": "uploaded",
"tax_year": 123,
"total_expenses": "<string>",
"warning": "<string>"
}
]
},
"client": "<string>",
"created_at": "<string>",
"ct_group_code": "<string>",
"deleted_at": "<string>",
"distributions": [
{
"_id": "<string>",
"amount": 123,
"client": "<string>",
"created_at": "<string>",
"deleted_at": "<string>",
"employee": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"plan": "<string>",
"processed_at": "<string>",
"processor": "<string>",
"reason": "<string>",
"requested_at": "<string>",
"source": "<string>",
"source_id": "<string>",
"ssn": "<string>",
"status": "<string>",
"team": "<string>"
}
],
"email": "<string>",
"employee_plans_data": [
{
"plan": "<string>",
"vesting_basis": {
"date_basis": {
"ee": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"pct_basis": {
"ee": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"yos_basis": {
"ee": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
}
}
],
"employment_category": "<string>",
"employment_type": "<string>",
"ethnicity": "<string>",
"finch_ids": [
"<string>"
],
"first_name": "<string>",
"frozen": true,
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": true,
"last_name": "<string>",
"loan": [
{
"_id": "<string>",
"amount": 123,
"client": "<string>",
"created_at": "<string>",
"data": "<string>",
"deleted_at": "<string>",
"employee": "<string>",
"payroll": "<string>",
"plan": "<string>",
"remote_id": "<string>",
"status": "<string>",
"team": "<string>",
"type": "<string>"
}
],
"location_code": "<string>",
"middle_name": "<string>",
"missing_ssn": true,
"not_employee": true,
"ownership_percentage": 123,
"parser_errors": [
{
"error": "<string>",
"field": "<string>"
}
],
"payroll_location_id": "<string>",
"phone": "<string>",
"possible_duplicate": true,
"preferred_name": "<string>",
"principal": "<string>",
"prior_year_census": {
"_id": "<string>",
"activity": [
{
"_id": "<string>",
"action": "<string>",
"changes": [
{
"data": "<string>",
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"client": "<string>",
"on_id": "<string>",
"on_py": 123,
"on_type": "<string>",
"team": "<string>",
"timestamp": "<string>",
"user": "<string>"
}
],
"address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"birth_date": "<string>",
"cleared": [
"<string>"
],
"client": "<string>",
"created_at": "<string>",
"ct_group_code": "<string>",
"deleted_at": "<string>",
"edits": {},
"email": "<string>",
"employee": "<string>",
"employment_category": "<string>",
"employment_type": "<string>",
"errors": [
{
"custom": "<string>",
"detail": "<string>",
"field_names": [
"<string>"
],
"path": [
"<string>"
],
"plan": "<string>",
"reason": "<string>",
"reviewed": true
}
],
"ethnicity": "<string>",
"first_name": "<string>",
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": true,
"last_name": "<string>",
"loan_amount": 123,
"loan_balance": 123,
"loan_disbursement_date": "<string>",
"loan_installment": 123,
"loan_payments": [
{
"_id": "<string>",
"amount": 123,
"date": "<string>",
"loan_id": "<string>",
"payroll": "<string>",
"source": "<string>"
}
],
"location_code": "<string>",
"middle_name": "<string>",
"not_employee": true,
"other_employers": [
"<string>"
],
"owner_kind": "<string>",
"ownership_percentage": 123,
"phone": "<string>",
"plans_data": [
{
"eligibility_date": {
"calculated": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>",
"given": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"overrides": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
}
},
"eligibility_reason": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"eligibility_status": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"eligible_gross_pay": {
"calculated": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123,
"given": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"overrides": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
},
"entry_date": {
"calculated": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>",
"given": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"overrides": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
}
},
"exclusions": {
"ee": true,
"er_match": true,
"er_non_elective": true,
"er_safe_harbor": true
},
"plan_compensation": {
"calculated": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123,
"given": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"overrides": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
}
},
"plan_id": "<string>",
"plan_type": "<string>",
"transactions": {
"calculated": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"given": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"new_compensation_group": "<string>",
"overrides": {
"ee_pre_tax": 123,
"ee_roth": 123,
"er_match": 123,
"er_non_elective": 123,
"er_qaca_match": 123,
"er_safe_harbor_match": 123,
"er_safe_harbor_non_elective": 123,
"gross_minus_exclusions": 123,
"gross_pay": 123,
"hours_worked": 123,
"hpi_compensation": 123,
"prevailing_wage": 123,
"statutory_compensation": 123
},
"prevailing_wage": 123,
"statutory_compensation": 123
},
"vesting": {
"date": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"historical_hos": 123,
"nra": "<string>",
"nra_met": true,
"status": {
"ee": "<string>",
"er": "<string>",
"er_match": "<string>",
"er_non_elective": "<string>",
"er_safe_harbor": "<string>"
},
"vested": {
"ee": 123,
"er": 123,
"er_match": 123,
"er_non_elective": 123,
"er_safe_harbor": 123
},
"yos": 123
},
"warnings": [
{
"dismiss": true,
"fields": [
"<string>"
],
"money_type": "<string>",
"reason": "<string>"
}
]
}
],
"possible_termination_date": "<string>",
"preferred_name": "<string>",
"principal": "<string>",
"py": 123,
"rehire_date": "<string>",
"relationship": "<string>",
"skipped": {},
"ssn": "<string>",
"status_override": "<string>",
"team": "<string>",
"termination_date": "<string>",
"termination_reason": "<string>",
"title": "<string>",
"w2_sources": [
{
"boxes": {
"box_1": "<string>",
"box_10": "<string>",
"box_11": "<string>",
"box_12": [
{
"amount": "<string>",
"code": "<string>"
}
],
"box_13_retirement_plan": true,
"box_13_statutory_employee": true,
"box_13_third_party_sick_pay": true,
"box_14": [
{
"amount": "<string>",
"label": "<string>"
}
],
"box_2": "<string>",
"box_3": "<string>",
"box_4": "<string>",
"box_5": "<string>",
"box_6": "<string>",
"box_7": "<string>",
"box_8": "<string>",
"state_local": [
{
"employer_state_id": "<string>",
"local_income_tax": "<string>",
"local_wages_tips": "<string>",
"locality_name": "<string>",
"state": "<string>",
"state_income_tax": "<string>",
"state_wages_tips": "<string>"
}
]
},
"compensation_applicable": true,
"confidence": 123,
"document_type": "<string>",
"employee_address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"employee_name": "<string>",
"employer_ein": "<string>",
"employer_name": "<string>",
"error_code": "<string>",
"file": "<string>",
"form_status": "<string>",
"gross_income": "<string>",
"gross_receipts": "<string>",
"guaranteed_payments_services": "<string>",
"net_profit": "<string>",
"ordinary_income": "<string>",
"parsed_at": "<string>",
"retirement_plan": true,
"self_employment_earnings": "<string>",
"ssn_last_four": "<string>",
"status": "uploaded",
"tax_year": 123,
"total_expenses": "<string>",
"warning": "<string>"
}
]
},
"rehire_date": "<string>",
"relationship": "<string>",
"remote_id": "<string>",
"ssn": "<string>",
"status_override": "<string>",
"team": "<string>",
"termination_date": "<string>",
"title": "<string>"
},
"issues": [
{
"employee": "<string>",
"errors": [
{
"custom": "<string>",
"detail": "<string>",
"duplicate": true,
"employee_census_path": [
"<string>"
],
"employee_path": [
"<string>"
],
"field_names": [
"<string>"
],
"force": true,
"instruction": "<string>",
"last_year_value": "<unknown>",
"plan": "<string>",
"reason": "<string>",
"reviewed": true
}
]
}
]
}
]
}{}{}{}