Import census data
curl --request POST \
--url https://api.cx.stax.ai/packages/retirement/formats/_import_census \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"client": "<string>",
"data": [
{
"_401k_catch_up": "<string>",
"_ee_pre_tax_1": "<string>",
"_ee_pre_tax_2": "<string>",
"_ee_pre_tax_3": "<string>",
"_ee_roth_1": "<string>",
"_ee_roth_2": "<string>",
"_ee_roth_3": "<string>",
"_eligible_gross_exclusions": "<string>",
"_er_match_1": "<string>",
"_er_match_2": "<string>",
"_er_match_3": "<string>",
"_er_roth": "<string>",
"_gross_exclusions": "<string>",
"_overtime_hours": "<string>",
"address.city": "<string>",
"address.country": "<string>",
"address.state": "<string>",
"address.street": "<string>",
"address.unit": "<string>",
"address.zip": "<string>",
"birth_date": "<string>",
"ct_group_code": "<string>",
"email": "<string>",
"employee": "<string>",
"employee_plans_data.vesting_basis.date_basis": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_safe_harbor": "<string>",
"employee_plans_data.vesting_basis.pct_basis": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor": "<string>",
"employee_plans_data.vesting_basis.yos_basis": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor": "<string>",
"employment_category": "<string>",
"employment_type": "<string>",
"ethnicity": "<string>",
"first_name": "<string>",
"full_address": "<string>",
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": "<string>",
"last_name": "<string>",
"middle_name": "<string>",
"ownership_percentage": "<string>",
"phone": "<string>",
"plans_data.eligibility_date": "<string>",
"plans_data.eligibility_date.ee": "<string>",
"plans_data.eligibility_date.er_match": "<string>",
"plans_data.eligibility_date.er_non_elective": "<string>",
"plans_data.eligibility_date.er_safe_harbor": "<string>",
"plans_data.eligible_gross_pay": "<string>",
"plans_data.entry_date": "<string>",
"plans_data.entry_date.ee": "<string>",
"plans_data.entry_date.er_match": "<string>",
"plans_data.entry_date.er_non_elective": "<string>",
"plans_data.entry_date.er_safe_harbor": "<string>",
"plans_data.plan_compensation": "<string>",
"plans_data.plan_compensation.ee": "<string>",
"plans_data.plan_compensation.er_match": "<string>",
"plans_data.plan_compensation.er_non_elective": "<string>",
"plans_data.plan_compensation.er_safe_harbor": "<string>",
"plans_data.transactions.ee_pre_tax": "<string>",
"plans_data.transactions.ee_roth": "<string>",
"plans_data.transactions.er_match": "<string>",
"plans_data.transactions.er_non_elective": "<string>",
"plans_data.transactions.er_qaca_match": "<string>",
"plans_data.transactions.er_safe_harbor_match": "<string>",
"plans_data.transactions.er_safe_harbor_non_elective": "<string>",
"plans_data.transactions.gross_minus_exclusions": "<string>",
"plans_data.transactions.gross_pay": "<string>",
"plans_data.transactions.hours_worked": "<string>",
"plans_data.transactions.hpi_compensation": "<string>",
"plans_data.transactions.new_compensation_group": "<string>",
"plans_data.transactions.prevailing_wage": "<string>",
"plans_data.transactions.statutory_compensation": "<string>",
"preferred_name": "<string>",
"principal": "<string>",
"rehire_date": "<string>",
"relationship": "<string>",
"ssn": "<string>",
"termination_date": "<string>",
"termination_reason": "<string>",
"title": "<string>"
}
],
"log": "<string>",
"plan": "<string>",
"py": 123,
"report": "<string>"
}
'import requests
url = "https://api.cx.stax.ai/packages/retirement/formats/_import_census"
payload = {
"client": "<string>",
"data": [
{
"_401k_catch_up": "<string>",
"_ee_pre_tax_1": "<string>",
"_ee_pre_tax_2": "<string>",
"_ee_pre_tax_3": "<string>",
"_ee_roth_1": "<string>",
"_ee_roth_2": "<string>",
"_ee_roth_3": "<string>",
"_eligible_gross_exclusions": "<string>",
"_er_match_1": "<string>",
"_er_match_2": "<string>",
"_er_match_3": "<string>",
"_er_roth": "<string>",
"_gross_exclusions": "<string>",
"_overtime_hours": "<string>",
"address.city": "<string>",
"address.country": "<string>",
"address.state": "<string>",
"address.street": "<string>",
"address.unit": "<string>",
"address.zip": "<string>",
"birth_date": "<string>",
"ct_group_code": "<string>",
"email": "<string>",
"employee": "<string>",
"employee_plans_data.vesting_basis.date_basis": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_safe_harbor": "<string>",
"employee_plans_data.vesting_basis.pct_basis": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor": "<string>",
"employee_plans_data.vesting_basis.yos_basis": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor": "<string>",
"employment_category": "<string>",
"employment_type": "<string>",
"ethnicity": "<string>",
"first_name": "<string>",
"full_address": "<string>",
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": "<string>",
"last_name": "<string>",
"middle_name": "<string>",
"ownership_percentage": "<string>",
"phone": "<string>",
"plans_data.eligibility_date": "<string>",
"plans_data.eligibility_date.ee": "<string>",
"plans_data.eligibility_date.er_match": "<string>",
"plans_data.eligibility_date.er_non_elective": "<string>",
"plans_data.eligibility_date.er_safe_harbor": "<string>",
"plans_data.eligible_gross_pay": "<string>",
"plans_data.entry_date": "<string>",
"plans_data.entry_date.ee": "<string>",
"plans_data.entry_date.er_match": "<string>",
"plans_data.entry_date.er_non_elective": "<string>",
"plans_data.entry_date.er_safe_harbor": "<string>",
"plans_data.plan_compensation": "<string>",
"plans_data.plan_compensation.ee": "<string>",
"plans_data.plan_compensation.er_match": "<string>",
"plans_data.plan_compensation.er_non_elective": "<string>",
"plans_data.plan_compensation.er_safe_harbor": "<string>",
"plans_data.transactions.ee_pre_tax": "<string>",
"plans_data.transactions.ee_roth": "<string>",
"plans_data.transactions.er_match": "<string>",
"plans_data.transactions.er_non_elective": "<string>",
"plans_data.transactions.er_qaca_match": "<string>",
"plans_data.transactions.er_safe_harbor_match": "<string>",
"plans_data.transactions.er_safe_harbor_non_elective": "<string>",
"plans_data.transactions.gross_minus_exclusions": "<string>",
"plans_data.transactions.gross_pay": "<string>",
"plans_data.transactions.hours_worked": "<string>",
"plans_data.transactions.hpi_compensation": "<string>",
"plans_data.transactions.new_compensation_group": "<string>",
"plans_data.transactions.prevailing_wage": "<string>",
"plans_data.transactions.statutory_compensation": "<string>",
"preferred_name": "<string>",
"principal": "<string>",
"rehire_date": "<string>",
"relationship": "<string>",
"ssn": "<string>",
"termination_date": "<string>",
"termination_reason": "<string>",
"title": "<string>"
}
],
"log": "<string>",
"plan": "<string>",
"py": 123,
"report": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client: '<string>',
data: [
{
_401k_catch_up: '<string>',
_ee_pre_tax_1: '<string>',
_ee_pre_tax_2: '<string>',
_ee_pre_tax_3: '<string>',
_ee_roth_1: '<string>',
_ee_roth_2: '<string>',
_ee_roth_3: '<string>',
_eligible_gross_exclusions: '<string>',
_er_match_1: '<string>',
_er_match_2: '<string>',
_er_match_3: '<string>',
_er_roth: '<string>',
_gross_exclusions: '<string>',
_overtime_hours: '<string>',
'address.city': '<string>',
'address.country': '<string>',
'address.state': '<string>',
'address.street': '<string>',
'address.unit': '<string>',
'address.zip': '<string>',
birth_date: '<string>',
ct_group_code: '<string>',
email: '<string>',
employee: '<string>',
'employee_plans_data.vesting_basis.date_basis': '<string>',
'employee_plans_data.vesting_basis.date_basis.er_match': '<string>',
'employee_plans_data.vesting_basis.date_basis.er_non_elective': '<string>',
'employee_plans_data.vesting_basis.date_basis.er_safe_harbor': '<string>',
'employee_plans_data.vesting_basis.pct_basis': '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_match': '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_non_elective': '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_safe_harbor': '<string>',
'employee_plans_data.vesting_basis.yos_basis': '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_match': '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_non_elective': '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_safe_harbor': '<string>',
employment_category: '<string>',
employment_type: '<string>',
ethnicity: '<string>',
first_name: '<string>',
full_address: '<string>',
gender: '<string>',
group: '<string>',
hire_date: '<string>',
is_officer: '<string>',
last_name: '<string>',
middle_name: '<string>',
ownership_percentage: '<string>',
phone: '<string>',
'plans_data.eligibility_date': '<string>',
'plans_data.eligibility_date.ee': '<string>',
'plans_data.eligibility_date.er_match': '<string>',
'plans_data.eligibility_date.er_non_elective': '<string>',
'plans_data.eligibility_date.er_safe_harbor': '<string>',
'plans_data.eligible_gross_pay': '<string>',
'plans_data.entry_date': '<string>',
'plans_data.entry_date.ee': '<string>',
'plans_data.entry_date.er_match': '<string>',
'plans_data.entry_date.er_non_elective': '<string>',
'plans_data.entry_date.er_safe_harbor': '<string>',
'plans_data.plan_compensation': '<string>',
'plans_data.plan_compensation.ee': '<string>',
'plans_data.plan_compensation.er_match': '<string>',
'plans_data.plan_compensation.er_non_elective': '<string>',
'plans_data.plan_compensation.er_safe_harbor': '<string>',
'plans_data.transactions.ee_pre_tax': '<string>',
'plans_data.transactions.ee_roth': '<string>',
'plans_data.transactions.er_match': '<string>',
'plans_data.transactions.er_non_elective': '<string>',
'plans_data.transactions.er_qaca_match': '<string>',
'plans_data.transactions.er_safe_harbor_match': '<string>',
'plans_data.transactions.er_safe_harbor_non_elective': '<string>',
'plans_data.transactions.gross_minus_exclusions': '<string>',
'plans_data.transactions.gross_pay': '<string>',
'plans_data.transactions.hours_worked': '<string>',
'plans_data.transactions.hpi_compensation': '<string>',
'plans_data.transactions.new_compensation_group': '<string>',
'plans_data.transactions.prevailing_wage': '<string>',
'plans_data.transactions.statutory_compensation': '<string>',
preferred_name: '<string>',
principal: '<string>',
rehire_date: '<string>',
relationship: '<string>',
ssn: '<string>',
termination_date: '<string>',
termination_reason: '<string>',
title: '<string>'
}
],
log: '<string>',
plan: '<string>',
py: 123,
report: '<string>'
})
};
fetch('https://api.cx.stax.ai/packages/retirement/formats/_import_census', 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/formats/_import_census",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'client' => '<string>',
'data' => [
[
'_401k_catch_up' => '<string>',
'_ee_pre_tax_1' => '<string>',
'_ee_pre_tax_2' => '<string>',
'_ee_pre_tax_3' => '<string>',
'_ee_roth_1' => '<string>',
'_ee_roth_2' => '<string>',
'_ee_roth_3' => '<string>',
'_eligible_gross_exclusions' => '<string>',
'_er_match_1' => '<string>',
'_er_match_2' => '<string>',
'_er_match_3' => '<string>',
'_er_roth' => '<string>',
'_gross_exclusions' => '<string>',
'_overtime_hours' => '<string>',
'address.city' => '<string>',
'address.country' => '<string>',
'address.state' => '<string>',
'address.street' => '<string>',
'address.unit' => '<string>',
'address.zip' => '<string>',
'birth_date' => '<string>',
'ct_group_code' => '<string>',
'email' => '<string>',
'employee' => '<string>',
'employee_plans_data.vesting_basis.date_basis' => '<string>',
'employee_plans_data.vesting_basis.date_basis.er_match' => '<string>',
'employee_plans_data.vesting_basis.date_basis.er_non_elective' => '<string>',
'employee_plans_data.vesting_basis.date_basis.er_safe_harbor' => '<string>',
'employee_plans_data.vesting_basis.pct_basis' => '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_match' => '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_non_elective' => '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_safe_harbor' => '<string>',
'employee_plans_data.vesting_basis.yos_basis' => '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_match' => '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_non_elective' => '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_safe_harbor' => '<string>',
'employment_category' => '<string>',
'employment_type' => '<string>',
'ethnicity' => '<string>',
'first_name' => '<string>',
'full_address' => '<string>',
'gender' => '<string>',
'group' => '<string>',
'hire_date' => '<string>',
'is_officer' => '<string>',
'last_name' => '<string>',
'middle_name' => '<string>',
'ownership_percentage' => '<string>',
'phone' => '<string>',
'plans_data.eligibility_date' => '<string>',
'plans_data.eligibility_date.ee' => '<string>',
'plans_data.eligibility_date.er_match' => '<string>',
'plans_data.eligibility_date.er_non_elective' => '<string>',
'plans_data.eligibility_date.er_safe_harbor' => '<string>',
'plans_data.eligible_gross_pay' => '<string>',
'plans_data.entry_date' => '<string>',
'plans_data.entry_date.ee' => '<string>',
'plans_data.entry_date.er_match' => '<string>',
'plans_data.entry_date.er_non_elective' => '<string>',
'plans_data.entry_date.er_safe_harbor' => '<string>',
'plans_data.plan_compensation' => '<string>',
'plans_data.plan_compensation.ee' => '<string>',
'plans_data.plan_compensation.er_match' => '<string>',
'plans_data.plan_compensation.er_non_elective' => '<string>',
'plans_data.plan_compensation.er_safe_harbor' => '<string>',
'plans_data.transactions.ee_pre_tax' => '<string>',
'plans_data.transactions.ee_roth' => '<string>',
'plans_data.transactions.er_match' => '<string>',
'plans_data.transactions.er_non_elective' => '<string>',
'plans_data.transactions.er_qaca_match' => '<string>',
'plans_data.transactions.er_safe_harbor_match' => '<string>',
'plans_data.transactions.er_safe_harbor_non_elective' => '<string>',
'plans_data.transactions.gross_minus_exclusions' => '<string>',
'plans_data.transactions.gross_pay' => '<string>',
'plans_data.transactions.hours_worked' => '<string>',
'plans_data.transactions.hpi_compensation' => '<string>',
'plans_data.transactions.new_compensation_group' => '<string>',
'plans_data.transactions.prevailing_wage' => '<string>',
'plans_data.transactions.statutory_compensation' => '<string>',
'preferred_name' => '<string>',
'principal' => '<string>',
'rehire_date' => '<string>',
'relationship' => '<string>',
'ssn' => '<string>',
'termination_date' => '<string>',
'termination_reason' => '<string>',
'title' => '<string>'
]
],
'log' => '<string>',
'plan' => '<string>',
'py' => 123,
'report' => '<string>'
]),
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/formats/_import_census"
payload := strings.NewReader("{\n \"client\": \"<string>\",\n \"data\": [\n {\n \"_401k_catch_up\": \"<string>\",\n \"_ee_pre_tax_1\": \"<string>\",\n \"_ee_pre_tax_2\": \"<string>\",\n \"_ee_pre_tax_3\": \"<string>\",\n \"_ee_roth_1\": \"<string>\",\n \"_ee_roth_2\": \"<string>\",\n \"_ee_roth_3\": \"<string>\",\n \"_eligible_gross_exclusions\": \"<string>\",\n \"_er_match_1\": \"<string>\",\n \"_er_match_2\": \"<string>\",\n \"_er_match_3\": \"<string>\",\n \"_er_roth\": \"<string>\",\n \"_gross_exclusions\": \"<string>\",\n \"_overtime_hours\": \"<string>\",\n \"address.city\": \"<string>\",\n \"address.country\": \"<string>\",\n \"address.state\": \"<string>\",\n \"address.street\": \"<string>\",\n \"address.unit\": \"<string>\",\n \"address.zip\": \"<string>\",\n \"birth_date\": \"<string>\",\n \"ct_group_code\": \"<string>\",\n \"email\": \"<string>\",\n \"employee\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor\": \"<string>\",\n \"employment_category\": \"<string>\",\n \"employment_type\": \"<string>\",\n \"ethnicity\": \"<string>\",\n \"first_name\": \"<string>\",\n \"full_address\": \"<string>\",\n \"gender\": \"<string>\",\n \"group\": \"<string>\",\n \"hire_date\": \"<string>\",\n \"is_officer\": \"<string>\",\n \"last_name\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"ownership_percentage\": \"<string>\",\n \"phone\": \"<string>\",\n \"plans_data.eligibility_date\": \"<string>\",\n \"plans_data.eligibility_date.ee\": \"<string>\",\n \"plans_data.eligibility_date.er_match\": \"<string>\",\n \"plans_data.eligibility_date.er_non_elective\": \"<string>\",\n \"plans_data.eligibility_date.er_safe_harbor\": \"<string>\",\n \"plans_data.eligible_gross_pay\": \"<string>\",\n \"plans_data.entry_date\": \"<string>\",\n \"plans_data.entry_date.ee\": \"<string>\",\n \"plans_data.entry_date.er_match\": \"<string>\",\n \"plans_data.entry_date.er_non_elective\": \"<string>\",\n \"plans_data.entry_date.er_safe_harbor\": \"<string>\",\n \"plans_data.plan_compensation\": \"<string>\",\n \"plans_data.plan_compensation.ee\": \"<string>\",\n \"plans_data.plan_compensation.er_match\": \"<string>\",\n \"plans_data.plan_compensation.er_non_elective\": \"<string>\",\n \"plans_data.plan_compensation.er_safe_harbor\": \"<string>\",\n \"plans_data.transactions.ee_pre_tax\": \"<string>\",\n \"plans_data.transactions.ee_roth\": \"<string>\",\n \"plans_data.transactions.er_match\": \"<string>\",\n \"plans_data.transactions.er_non_elective\": \"<string>\",\n \"plans_data.transactions.er_qaca_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_non_elective\": \"<string>\",\n \"plans_data.transactions.gross_minus_exclusions\": \"<string>\",\n \"plans_data.transactions.gross_pay\": \"<string>\",\n \"plans_data.transactions.hours_worked\": \"<string>\",\n \"plans_data.transactions.hpi_compensation\": \"<string>\",\n \"plans_data.transactions.new_compensation_group\": \"<string>\",\n \"plans_data.transactions.prevailing_wage\": \"<string>\",\n \"plans_data.transactions.statutory_compensation\": \"<string>\",\n \"preferred_name\": \"<string>\",\n \"principal\": \"<string>\",\n \"rehire_date\": \"<string>\",\n \"relationship\": \"<string>\",\n \"ssn\": \"<string>\",\n \"termination_date\": \"<string>\",\n \"termination_reason\": \"<string>\",\n \"title\": \"<string>\"\n }\n ],\n \"log\": \"<string>\",\n \"plan\": \"<string>\",\n \"py\": 123,\n \"report\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.cx.stax.ai/packages/retirement/formats/_import_census")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"client\": \"<string>\",\n \"data\": [\n {\n \"_401k_catch_up\": \"<string>\",\n \"_ee_pre_tax_1\": \"<string>\",\n \"_ee_pre_tax_2\": \"<string>\",\n \"_ee_pre_tax_3\": \"<string>\",\n \"_ee_roth_1\": \"<string>\",\n \"_ee_roth_2\": \"<string>\",\n \"_ee_roth_3\": \"<string>\",\n \"_eligible_gross_exclusions\": \"<string>\",\n \"_er_match_1\": \"<string>\",\n \"_er_match_2\": \"<string>\",\n \"_er_match_3\": \"<string>\",\n \"_er_roth\": \"<string>\",\n \"_gross_exclusions\": \"<string>\",\n \"_overtime_hours\": \"<string>\",\n \"address.city\": \"<string>\",\n \"address.country\": \"<string>\",\n \"address.state\": \"<string>\",\n \"address.street\": \"<string>\",\n \"address.unit\": \"<string>\",\n \"address.zip\": \"<string>\",\n \"birth_date\": \"<string>\",\n \"ct_group_code\": \"<string>\",\n \"email\": \"<string>\",\n \"employee\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor\": \"<string>\",\n \"employment_category\": \"<string>\",\n \"employment_type\": \"<string>\",\n \"ethnicity\": \"<string>\",\n \"first_name\": \"<string>\",\n \"full_address\": \"<string>\",\n \"gender\": \"<string>\",\n \"group\": \"<string>\",\n \"hire_date\": \"<string>\",\n \"is_officer\": \"<string>\",\n \"last_name\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"ownership_percentage\": \"<string>\",\n \"phone\": \"<string>\",\n \"plans_data.eligibility_date\": \"<string>\",\n \"plans_data.eligibility_date.ee\": \"<string>\",\n \"plans_data.eligibility_date.er_match\": \"<string>\",\n \"plans_data.eligibility_date.er_non_elective\": \"<string>\",\n \"plans_data.eligibility_date.er_safe_harbor\": \"<string>\",\n \"plans_data.eligible_gross_pay\": \"<string>\",\n \"plans_data.entry_date\": \"<string>\",\n \"plans_data.entry_date.ee\": \"<string>\",\n \"plans_data.entry_date.er_match\": \"<string>\",\n \"plans_data.entry_date.er_non_elective\": \"<string>\",\n \"plans_data.entry_date.er_safe_harbor\": \"<string>\",\n \"plans_data.plan_compensation\": \"<string>\",\n \"plans_data.plan_compensation.ee\": \"<string>\",\n \"plans_data.plan_compensation.er_match\": \"<string>\",\n \"plans_data.plan_compensation.er_non_elective\": \"<string>\",\n \"plans_data.plan_compensation.er_safe_harbor\": \"<string>\",\n \"plans_data.transactions.ee_pre_tax\": \"<string>\",\n \"plans_data.transactions.ee_roth\": \"<string>\",\n \"plans_data.transactions.er_match\": \"<string>\",\n \"plans_data.transactions.er_non_elective\": \"<string>\",\n \"plans_data.transactions.er_qaca_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_non_elective\": \"<string>\",\n \"plans_data.transactions.gross_minus_exclusions\": \"<string>\",\n \"plans_data.transactions.gross_pay\": \"<string>\",\n \"plans_data.transactions.hours_worked\": \"<string>\",\n \"plans_data.transactions.hpi_compensation\": \"<string>\",\n \"plans_data.transactions.new_compensation_group\": \"<string>\",\n \"plans_data.transactions.prevailing_wage\": \"<string>\",\n \"plans_data.transactions.statutory_compensation\": \"<string>\",\n \"preferred_name\": \"<string>\",\n \"principal\": \"<string>\",\n \"rehire_date\": \"<string>\",\n \"relationship\": \"<string>\",\n \"ssn\": \"<string>\",\n \"termination_date\": \"<string>\",\n \"termination_reason\": \"<string>\",\n \"title\": \"<string>\"\n }\n ],\n \"log\": \"<string>\",\n \"plan\": \"<string>\",\n \"py\": 123,\n \"report\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/packages/retirement/formats/_import_census")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"client\": \"<string>\",\n \"data\": [\n {\n \"_401k_catch_up\": \"<string>\",\n \"_ee_pre_tax_1\": \"<string>\",\n \"_ee_pre_tax_2\": \"<string>\",\n \"_ee_pre_tax_3\": \"<string>\",\n \"_ee_roth_1\": \"<string>\",\n \"_ee_roth_2\": \"<string>\",\n \"_ee_roth_3\": \"<string>\",\n \"_eligible_gross_exclusions\": \"<string>\",\n \"_er_match_1\": \"<string>\",\n \"_er_match_2\": \"<string>\",\n \"_er_match_3\": \"<string>\",\n \"_er_roth\": \"<string>\",\n \"_gross_exclusions\": \"<string>\",\n \"_overtime_hours\": \"<string>\",\n \"address.city\": \"<string>\",\n \"address.country\": \"<string>\",\n \"address.state\": \"<string>\",\n \"address.street\": \"<string>\",\n \"address.unit\": \"<string>\",\n \"address.zip\": \"<string>\",\n \"birth_date\": \"<string>\",\n \"ct_group_code\": \"<string>\",\n \"email\": \"<string>\",\n \"employee\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor\": \"<string>\",\n \"employment_category\": \"<string>\",\n \"employment_type\": \"<string>\",\n \"ethnicity\": \"<string>\",\n \"first_name\": \"<string>\",\n \"full_address\": \"<string>\",\n \"gender\": \"<string>\",\n \"group\": \"<string>\",\n \"hire_date\": \"<string>\",\n \"is_officer\": \"<string>\",\n \"last_name\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"ownership_percentage\": \"<string>\",\n \"phone\": \"<string>\",\n \"plans_data.eligibility_date\": \"<string>\",\n \"plans_data.eligibility_date.ee\": \"<string>\",\n \"plans_data.eligibility_date.er_match\": \"<string>\",\n \"plans_data.eligibility_date.er_non_elective\": \"<string>\",\n \"plans_data.eligibility_date.er_safe_harbor\": \"<string>\",\n \"plans_data.eligible_gross_pay\": \"<string>\",\n \"plans_data.entry_date\": \"<string>\",\n \"plans_data.entry_date.ee\": \"<string>\",\n \"plans_data.entry_date.er_match\": \"<string>\",\n \"plans_data.entry_date.er_non_elective\": \"<string>\",\n \"plans_data.entry_date.er_safe_harbor\": \"<string>\",\n \"plans_data.plan_compensation\": \"<string>\",\n \"plans_data.plan_compensation.ee\": \"<string>\",\n \"plans_data.plan_compensation.er_match\": \"<string>\",\n \"plans_data.plan_compensation.er_non_elective\": \"<string>\",\n \"plans_data.plan_compensation.er_safe_harbor\": \"<string>\",\n \"plans_data.transactions.ee_pre_tax\": \"<string>\",\n \"plans_data.transactions.ee_roth\": \"<string>\",\n \"plans_data.transactions.er_match\": \"<string>\",\n \"plans_data.transactions.er_non_elective\": \"<string>\",\n \"plans_data.transactions.er_qaca_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_non_elective\": \"<string>\",\n \"plans_data.transactions.gross_minus_exclusions\": \"<string>\",\n \"plans_data.transactions.gross_pay\": \"<string>\",\n \"plans_data.transactions.hours_worked\": \"<string>\",\n \"plans_data.transactions.hpi_compensation\": \"<string>\",\n \"plans_data.transactions.new_compensation_group\": \"<string>\",\n \"plans_data.transactions.prevailing_wage\": \"<string>\",\n \"plans_data.transactions.statutory_compensation\": \"<string>\",\n \"preferred_name\": \"<string>\",\n \"principal\": \"<string>\",\n \"rehire_date\": \"<string>\",\n \"relationship\": \"<string>\",\n \"ssn\": \"<string>\",\n \"termination_date\": \"<string>\",\n \"termination_reason\": \"<string>\",\n \"title\": \"<string>\"\n }\n ],\n \"log\": \"<string>\",\n \"plan\": \"<string>\",\n \"py\": 123,\n \"report\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}packages
Import census data
Import employee and census data for a client, plan, and plan year. Each data row is a map of dot-path field keys (as documented on ImportCensusEmployeeRow) to raw cell strings; the frontend applies the column mapping before posting. Custom data values can be imported with the dynamic keys "employee.fields.<key>" and "census.fields.<key>": imported keys override the stored value for that key on the employee/census record, all other custom field keys are preserved, and values are typed using the team's field definitions (Number -> float, Checkbox -> boolean, Date -> date, otherwise string).
POST
/
packages
/
retirement
/
formats
/
_import_census
Import census data
curl --request POST \
--url https://api.cx.stax.ai/packages/retirement/formats/_import_census \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"client": "<string>",
"data": [
{
"_401k_catch_up": "<string>",
"_ee_pre_tax_1": "<string>",
"_ee_pre_tax_2": "<string>",
"_ee_pre_tax_3": "<string>",
"_ee_roth_1": "<string>",
"_ee_roth_2": "<string>",
"_ee_roth_3": "<string>",
"_eligible_gross_exclusions": "<string>",
"_er_match_1": "<string>",
"_er_match_2": "<string>",
"_er_match_3": "<string>",
"_er_roth": "<string>",
"_gross_exclusions": "<string>",
"_overtime_hours": "<string>",
"address.city": "<string>",
"address.country": "<string>",
"address.state": "<string>",
"address.street": "<string>",
"address.unit": "<string>",
"address.zip": "<string>",
"birth_date": "<string>",
"ct_group_code": "<string>",
"email": "<string>",
"employee": "<string>",
"employee_plans_data.vesting_basis.date_basis": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_safe_harbor": "<string>",
"employee_plans_data.vesting_basis.pct_basis": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor": "<string>",
"employee_plans_data.vesting_basis.yos_basis": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor": "<string>",
"employment_category": "<string>",
"employment_type": "<string>",
"ethnicity": "<string>",
"first_name": "<string>",
"full_address": "<string>",
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": "<string>",
"last_name": "<string>",
"middle_name": "<string>",
"ownership_percentage": "<string>",
"phone": "<string>",
"plans_data.eligibility_date": "<string>",
"plans_data.eligibility_date.ee": "<string>",
"plans_data.eligibility_date.er_match": "<string>",
"plans_data.eligibility_date.er_non_elective": "<string>",
"plans_data.eligibility_date.er_safe_harbor": "<string>",
"plans_data.eligible_gross_pay": "<string>",
"plans_data.entry_date": "<string>",
"plans_data.entry_date.ee": "<string>",
"plans_data.entry_date.er_match": "<string>",
"plans_data.entry_date.er_non_elective": "<string>",
"plans_data.entry_date.er_safe_harbor": "<string>",
"plans_data.plan_compensation": "<string>",
"plans_data.plan_compensation.ee": "<string>",
"plans_data.plan_compensation.er_match": "<string>",
"plans_data.plan_compensation.er_non_elective": "<string>",
"plans_data.plan_compensation.er_safe_harbor": "<string>",
"plans_data.transactions.ee_pre_tax": "<string>",
"plans_data.transactions.ee_roth": "<string>",
"plans_data.transactions.er_match": "<string>",
"plans_data.transactions.er_non_elective": "<string>",
"plans_data.transactions.er_qaca_match": "<string>",
"plans_data.transactions.er_safe_harbor_match": "<string>",
"plans_data.transactions.er_safe_harbor_non_elective": "<string>",
"plans_data.transactions.gross_minus_exclusions": "<string>",
"plans_data.transactions.gross_pay": "<string>",
"plans_data.transactions.hours_worked": "<string>",
"plans_data.transactions.hpi_compensation": "<string>",
"plans_data.transactions.new_compensation_group": "<string>",
"plans_data.transactions.prevailing_wage": "<string>",
"plans_data.transactions.statutory_compensation": "<string>",
"preferred_name": "<string>",
"principal": "<string>",
"rehire_date": "<string>",
"relationship": "<string>",
"ssn": "<string>",
"termination_date": "<string>",
"termination_reason": "<string>",
"title": "<string>"
}
],
"log": "<string>",
"plan": "<string>",
"py": 123,
"report": "<string>"
}
'import requests
url = "https://api.cx.stax.ai/packages/retirement/formats/_import_census"
payload = {
"client": "<string>",
"data": [
{
"_401k_catch_up": "<string>",
"_ee_pre_tax_1": "<string>",
"_ee_pre_tax_2": "<string>",
"_ee_pre_tax_3": "<string>",
"_ee_roth_1": "<string>",
"_ee_roth_2": "<string>",
"_ee_roth_3": "<string>",
"_eligible_gross_exclusions": "<string>",
"_er_match_1": "<string>",
"_er_match_2": "<string>",
"_er_match_3": "<string>",
"_er_roth": "<string>",
"_gross_exclusions": "<string>",
"_overtime_hours": "<string>",
"address.city": "<string>",
"address.country": "<string>",
"address.state": "<string>",
"address.street": "<string>",
"address.unit": "<string>",
"address.zip": "<string>",
"birth_date": "<string>",
"ct_group_code": "<string>",
"email": "<string>",
"employee": "<string>",
"employee_plans_data.vesting_basis.date_basis": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.date_basis.er_safe_harbor": "<string>",
"employee_plans_data.vesting_basis.pct_basis": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor": "<string>",
"employee_plans_data.vesting_basis.yos_basis": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_match": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_non_elective": "<string>",
"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor": "<string>",
"employment_category": "<string>",
"employment_type": "<string>",
"ethnicity": "<string>",
"first_name": "<string>",
"full_address": "<string>",
"gender": "<string>",
"group": "<string>",
"hire_date": "<string>",
"is_officer": "<string>",
"last_name": "<string>",
"middle_name": "<string>",
"ownership_percentage": "<string>",
"phone": "<string>",
"plans_data.eligibility_date": "<string>",
"plans_data.eligibility_date.ee": "<string>",
"plans_data.eligibility_date.er_match": "<string>",
"plans_data.eligibility_date.er_non_elective": "<string>",
"plans_data.eligibility_date.er_safe_harbor": "<string>",
"plans_data.eligible_gross_pay": "<string>",
"plans_data.entry_date": "<string>",
"plans_data.entry_date.ee": "<string>",
"plans_data.entry_date.er_match": "<string>",
"plans_data.entry_date.er_non_elective": "<string>",
"plans_data.entry_date.er_safe_harbor": "<string>",
"plans_data.plan_compensation": "<string>",
"plans_data.plan_compensation.ee": "<string>",
"plans_data.plan_compensation.er_match": "<string>",
"plans_data.plan_compensation.er_non_elective": "<string>",
"plans_data.plan_compensation.er_safe_harbor": "<string>",
"plans_data.transactions.ee_pre_tax": "<string>",
"plans_data.transactions.ee_roth": "<string>",
"plans_data.transactions.er_match": "<string>",
"plans_data.transactions.er_non_elective": "<string>",
"plans_data.transactions.er_qaca_match": "<string>",
"plans_data.transactions.er_safe_harbor_match": "<string>",
"plans_data.transactions.er_safe_harbor_non_elective": "<string>",
"plans_data.transactions.gross_minus_exclusions": "<string>",
"plans_data.transactions.gross_pay": "<string>",
"plans_data.transactions.hours_worked": "<string>",
"plans_data.transactions.hpi_compensation": "<string>",
"plans_data.transactions.new_compensation_group": "<string>",
"plans_data.transactions.prevailing_wage": "<string>",
"plans_data.transactions.statutory_compensation": "<string>",
"preferred_name": "<string>",
"principal": "<string>",
"rehire_date": "<string>",
"relationship": "<string>",
"ssn": "<string>",
"termination_date": "<string>",
"termination_reason": "<string>",
"title": "<string>"
}
],
"log": "<string>",
"plan": "<string>",
"py": 123,
"report": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client: '<string>',
data: [
{
_401k_catch_up: '<string>',
_ee_pre_tax_1: '<string>',
_ee_pre_tax_2: '<string>',
_ee_pre_tax_3: '<string>',
_ee_roth_1: '<string>',
_ee_roth_2: '<string>',
_ee_roth_3: '<string>',
_eligible_gross_exclusions: '<string>',
_er_match_1: '<string>',
_er_match_2: '<string>',
_er_match_3: '<string>',
_er_roth: '<string>',
_gross_exclusions: '<string>',
_overtime_hours: '<string>',
'address.city': '<string>',
'address.country': '<string>',
'address.state': '<string>',
'address.street': '<string>',
'address.unit': '<string>',
'address.zip': '<string>',
birth_date: '<string>',
ct_group_code: '<string>',
email: '<string>',
employee: '<string>',
'employee_plans_data.vesting_basis.date_basis': '<string>',
'employee_plans_data.vesting_basis.date_basis.er_match': '<string>',
'employee_plans_data.vesting_basis.date_basis.er_non_elective': '<string>',
'employee_plans_data.vesting_basis.date_basis.er_safe_harbor': '<string>',
'employee_plans_data.vesting_basis.pct_basis': '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_match': '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_non_elective': '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_safe_harbor': '<string>',
'employee_plans_data.vesting_basis.yos_basis': '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_match': '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_non_elective': '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_safe_harbor': '<string>',
employment_category: '<string>',
employment_type: '<string>',
ethnicity: '<string>',
first_name: '<string>',
full_address: '<string>',
gender: '<string>',
group: '<string>',
hire_date: '<string>',
is_officer: '<string>',
last_name: '<string>',
middle_name: '<string>',
ownership_percentage: '<string>',
phone: '<string>',
'plans_data.eligibility_date': '<string>',
'plans_data.eligibility_date.ee': '<string>',
'plans_data.eligibility_date.er_match': '<string>',
'plans_data.eligibility_date.er_non_elective': '<string>',
'plans_data.eligibility_date.er_safe_harbor': '<string>',
'plans_data.eligible_gross_pay': '<string>',
'plans_data.entry_date': '<string>',
'plans_data.entry_date.ee': '<string>',
'plans_data.entry_date.er_match': '<string>',
'plans_data.entry_date.er_non_elective': '<string>',
'plans_data.entry_date.er_safe_harbor': '<string>',
'plans_data.plan_compensation': '<string>',
'plans_data.plan_compensation.ee': '<string>',
'plans_data.plan_compensation.er_match': '<string>',
'plans_data.plan_compensation.er_non_elective': '<string>',
'plans_data.plan_compensation.er_safe_harbor': '<string>',
'plans_data.transactions.ee_pre_tax': '<string>',
'plans_data.transactions.ee_roth': '<string>',
'plans_data.transactions.er_match': '<string>',
'plans_data.transactions.er_non_elective': '<string>',
'plans_data.transactions.er_qaca_match': '<string>',
'plans_data.transactions.er_safe_harbor_match': '<string>',
'plans_data.transactions.er_safe_harbor_non_elective': '<string>',
'plans_data.transactions.gross_minus_exclusions': '<string>',
'plans_data.transactions.gross_pay': '<string>',
'plans_data.transactions.hours_worked': '<string>',
'plans_data.transactions.hpi_compensation': '<string>',
'plans_data.transactions.new_compensation_group': '<string>',
'plans_data.transactions.prevailing_wage': '<string>',
'plans_data.transactions.statutory_compensation': '<string>',
preferred_name: '<string>',
principal: '<string>',
rehire_date: '<string>',
relationship: '<string>',
ssn: '<string>',
termination_date: '<string>',
termination_reason: '<string>',
title: '<string>'
}
],
log: '<string>',
plan: '<string>',
py: 123,
report: '<string>'
})
};
fetch('https://api.cx.stax.ai/packages/retirement/formats/_import_census', 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/formats/_import_census",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'client' => '<string>',
'data' => [
[
'_401k_catch_up' => '<string>',
'_ee_pre_tax_1' => '<string>',
'_ee_pre_tax_2' => '<string>',
'_ee_pre_tax_3' => '<string>',
'_ee_roth_1' => '<string>',
'_ee_roth_2' => '<string>',
'_ee_roth_3' => '<string>',
'_eligible_gross_exclusions' => '<string>',
'_er_match_1' => '<string>',
'_er_match_2' => '<string>',
'_er_match_3' => '<string>',
'_er_roth' => '<string>',
'_gross_exclusions' => '<string>',
'_overtime_hours' => '<string>',
'address.city' => '<string>',
'address.country' => '<string>',
'address.state' => '<string>',
'address.street' => '<string>',
'address.unit' => '<string>',
'address.zip' => '<string>',
'birth_date' => '<string>',
'ct_group_code' => '<string>',
'email' => '<string>',
'employee' => '<string>',
'employee_plans_data.vesting_basis.date_basis' => '<string>',
'employee_plans_data.vesting_basis.date_basis.er_match' => '<string>',
'employee_plans_data.vesting_basis.date_basis.er_non_elective' => '<string>',
'employee_plans_data.vesting_basis.date_basis.er_safe_harbor' => '<string>',
'employee_plans_data.vesting_basis.pct_basis' => '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_match' => '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_non_elective' => '<string>',
'employee_plans_data.vesting_basis.pct_basis.er_safe_harbor' => '<string>',
'employee_plans_data.vesting_basis.yos_basis' => '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_match' => '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_non_elective' => '<string>',
'employee_plans_data.vesting_basis.yos_basis.er_safe_harbor' => '<string>',
'employment_category' => '<string>',
'employment_type' => '<string>',
'ethnicity' => '<string>',
'first_name' => '<string>',
'full_address' => '<string>',
'gender' => '<string>',
'group' => '<string>',
'hire_date' => '<string>',
'is_officer' => '<string>',
'last_name' => '<string>',
'middle_name' => '<string>',
'ownership_percentage' => '<string>',
'phone' => '<string>',
'plans_data.eligibility_date' => '<string>',
'plans_data.eligibility_date.ee' => '<string>',
'plans_data.eligibility_date.er_match' => '<string>',
'plans_data.eligibility_date.er_non_elective' => '<string>',
'plans_data.eligibility_date.er_safe_harbor' => '<string>',
'plans_data.eligible_gross_pay' => '<string>',
'plans_data.entry_date' => '<string>',
'plans_data.entry_date.ee' => '<string>',
'plans_data.entry_date.er_match' => '<string>',
'plans_data.entry_date.er_non_elective' => '<string>',
'plans_data.entry_date.er_safe_harbor' => '<string>',
'plans_data.plan_compensation' => '<string>',
'plans_data.plan_compensation.ee' => '<string>',
'plans_data.plan_compensation.er_match' => '<string>',
'plans_data.plan_compensation.er_non_elective' => '<string>',
'plans_data.plan_compensation.er_safe_harbor' => '<string>',
'plans_data.transactions.ee_pre_tax' => '<string>',
'plans_data.transactions.ee_roth' => '<string>',
'plans_data.transactions.er_match' => '<string>',
'plans_data.transactions.er_non_elective' => '<string>',
'plans_data.transactions.er_qaca_match' => '<string>',
'plans_data.transactions.er_safe_harbor_match' => '<string>',
'plans_data.transactions.er_safe_harbor_non_elective' => '<string>',
'plans_data.transactions.gross_minus_exclusions' => '<string>',
'plans_data.transactions.gross_pay' => '<string>',
'plans_data.transactions.hours_worked' => '<string>',
'plans_data.transactions.hpi_compensation' => '<string>',
'plans_data.transactions.new_compensation_group' => '<string>',
'plans_data.transactions.prevailing_wage' => '<string>',
'plans_data.transactions.statutory_compensation' => '<string>',
'preferred_name' => '<string>',
'principal' => '<string>',
'rehire_date' => '<string>',
'relationship' => '<string>',
'ssn' => '<string>',
'termination_date' => '<string>',
'termination_reason' => '<string>',
'title' => '<string>'
]
],
'log' => '<string>',
'plan' => '<string>',
'py' => 123,
'report' => '<string>'
]),
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/formats/_import_census"
payload := strings.NewReader("{\n \"client\": \"<string>\",\n \"data\": [\n {\n \"_401k_catch_up\": \"<string>\",\n \"_ee_pre_tax_1\": \"<string>\",\n \"_ee_pre_tax_2\": \"<string>\",\n \"_ee_pre_tax_3\": \"<string>\",\n \"_ee_roth_1\": \"<string>\",\n \"_ee_roth_2\": \"<string>\",\n \"_ee_roth_3\": \"<string>\",\n \"_eligible_gross_exclusions\": \"<string>\",\n \"_er_match_1\": \"<string>\",\n \"_er_match_2\": \"<string>\",\n \"_er_match_3\": \"<string>\",\n \"_er_roth\": \"<string>\",\n \"_gross_exclusions\": \"<string>\",\n \"_overtime_hours\": \"<string>\",\n \"address.city\": \"<string>\",\n \"address.country\": \"<string>\",\n \"address.state\": \"<string>\",\n \"address.street\": \"<string>\",\n \"address.unit\": \"<string>\",\n \"address.zip\": \"<string>\",\n \"birth_date\": \"<string>\",\n \"ct_group_code\": \"<string>\",\n \"email\": \"<string>\",\n \"employee\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor\": \"<string>\",\n \"employment_category\": \"<string>\",\n \"employment_type\": \"<string>\",\n \"ethnicity\": \"<string>\",\n \"first_name\": \"<string>\",\n \"full_address\": \"<string>\",\n \"gender\": \"<string>\",\n \"group\": \"<string>\",\n \"hire_date\": \"<string>\",\n \"is_officer\": \"<string>\",\n \"last_name\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"ownership_percentage\": \"<string>\",\n \"phone\": \"<string>\",\n \"plans_data.eligibility_date\": \"<string>\",\n \"plans_data.eligibility_date.ee\": \"<string>\",\n \"plans_data.eligibility_date.er_match\": \"<string>\",\n \"plans_data.eligibility_date.er_non_elective\": \"<string>\",\n \"plans_data.eligibility_date.er_safe_harbor\": \"<string>\",\n \"plans_data.eligible_gross_pay\": \"<string>\",\n \"plans_data.entry_date\": \"<string>\",\n \"plans_data.entry_date.ee\": \"<string>\",\n \"plans_data.entry_date.er_match\": \"<string>\",\n \"plans_data.entry_date.er_non_elective\": \"<string>\",\n \"plans_data.entry_date.er_safe_harbor\": \"<string>\",\n \"plans_data.plan_compensation\": \"<string>\",\n \"plans_data.plan_compensation.ee\": \"<string>\",\n \"plans_data.plan_compensation.er_match\": \"<string>\",\n \"plans_data.plan_compensation.er_non_elective\": \"<string>\",\n \"plans_data.plan_compensation.er_safe_harbor\": \"<string>\",\n \"plans_data.transactions.ee_pre_tax\": \"<string>\",\n \"plans_data.transactions.ee_roth\": \"<string>\",\n \"plans_data.transactions.er_match\": \"<string>\",\n \"plans_data.transactions.er_non_elective\": \"<string>\",\n \"plans_data.transactions.er_qaca_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_non_elective\": \"<string>\",\n \"plans_data.transactions.gross_minus_exclusions\": \"<string>\",\n \"plans_data.transactions.gross_pay\": \"<string>\",\n \"plans_data.transactions.hours_worked\": \"<string>\",\n \"plans_data.transactions.hpi_compensation\": \"<string>\",\n \"plans_data.transactions.new_compensation_group\": \"<string>\",\n \"plans_data.transactions.prevailing_wage\": \"<string>\",\n \"plans_data.transactions.statutory_compensation\": \"<string>\",\n \"preferred_name\": \"<string>\",\n \"principal\": \"<string>\",\n \"rehire_date\": \"<string>\",\n \"relationship\": \"<string>\",\n \"ssn\": \"<string>\",\n \"termination_date\": \"<string>\",\n \"termination_reason\": \"<string>\",\n \"title\": \"<string>\"\n }\n ],\n \"log\": \"<string>\",\n \"plan\": \"<string>\",\n \"py\": 123,\n \"report\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.cx.stax.ai/packages/retirement/formats/_import_census")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"client\": \"<string>\",\n \"data\": [\n {\n \"_401k_catch_up\": \"<string>\",\n \"_ee_pre_tax_1\": \"<string>\",\n \"_ee_pre_tax_2\": \"<string>\",\n \"_ee_pre_tax_3\": \"<string>\",\n \"_ee_roth_1\": \"<string>\",\n \"_ee_roth_2\": \"<string>\",\n \"_ee_roth_3\": \"<string>\",\n \"_eligible_gross_exclusions\": \"<string>\",\n \"_er_match_1\": \"<string>\",\n \"_er_match_2\": \"<string>\",\n \"_er_match_3\": \"<string>\",\n \"_er_roth\": \"<string>\",\n \"_gross_exclusions\": \"<string>\",\n \"_overtime_hours\": \"<string>\",\n \"address.city\": \"<string>\",\n \"address.country\": \"<string>\",\n \"address.state\": \"<string>\",\n \"address.street\": \"<string>\",\n \"address.unit\": \"<string>\",\n \"address.zip\": \"<string>\",\n \"birth_date\": \"<string>\",\n \"ct_group_code\": \"<string>\",\n \"email\": \"<string>\",\n \"employee\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor\": \"<string>\",\n \"employment_category\": \"<string>\",\n \"employment_type\": \"<string>\",\n \"ethnicity\": \"<string>\",\n \"first_name\": \"<string>\",\n \"full_address\": \"<string>\",\n \"gender\": \"<string>\",\n \"group\": \"<string>\",\n \"hire_date\": \"<string>\",\n \"is_officer\": \"<string>\",\n \"last_name\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"ownership_percentage\": \"<string>\",\n \"phone\": \"<string>\",\n \"plans_data.eligibility_date\": \"<string>\",\n \"plans_data.eligibility_date.ee\": \"<string>\",\n \"plans_data.eligibility_date.er_match\": \"<string>\",\n \"plans_data.eligibility_date.er_non_elective\": \"<string>\",\n \"plans_data.eligibility_date.er_safe_harbor\": \"<string>\",\n \"plans_data.eligible_gross_pay\": \"<string>\",\n \"plans_data.entry_date\": \"<string>\",\n \"plans_data.entry_date.ee\": \"<string>\",\n \"plans_data.entry_date.er_match\": \"<string>\",\n \"plans_data.entry_date.er_non_elective\": \"<string>\",\n \"plans_data.entry_date.er_safe_harbor\": \"<string>\",\n \"plans_data.plan_compensation\": \"<string>\",\n \"plans_data.plan_compensation.ee\": \"<string>\",\n \"plans_data.plan_compensation.er_match\": \"<string>\",\n \"plans_data.plan_compensation.er_non_elective\": \"<string>\",\n \"plans_data.plan_compensation.er_safe_harbor\": \"<string>\",\n \"plans_data.transactions.ee_pre_tax\": \"<string>\",\n \"plans_data.transactions.ee_roth\": \"<string>\",\n \"plans_data.transactions.er_match\": \"<string>\",\n \"plans_data.transactions.er_non_elective\": \"<string>\",\n \"plans_data.transactions.er_qaca_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_non_elective\": \"<string>\",\n \"plans_data.transactions.gross_minus_exclusions\": \"<string>\",\n \"plans_data.transactions.gross_pay\": \"<string>\",\n \"plans_data.transactions.hours_worked\": \"<string>\",\n \"plans_data.transactions.hpi_compensation\": \"<string>\",\n \"plans_data.transactions.new_compensation_group\": \"<string>\",\n \"plans_data.transactions.prevailing_wage\": \"<string>\",\n \"plans_data.transactions.statutory_compensation\": \"<string>\",\n \"preferred_name\": \"<string>\",\n \"principal\": \"<string>\",\n \"rehire_date\": \"<string>\",\n \"relationship\": \"<string>\",\n \"ssn\": \"<string>\",\n \"termination_date\": \"<string>\",\n \"termination_reason\": \"<string>\",\n \"title\": \"<string>\"\n }\n ],\n \"log\": \"<string>\",\n \"plan\": \"<string>\",\n \"py\": 123,\n \"report\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/packages/retirement/formats/_import_census")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"client\": \"<string>\",\n \"data\": [\n {\n \"_401k_catch_up\": \"<string>\",\n \"_ee_pre_tax_1\": \"<string>\",\n \"_ee_pre_tax_2\": \"<string>\",\n \"_ee_pre_tax_3\": \"<string>\",\n \"_ee_roth_1\": \"<string>\",\n \"_ee_roth_2\": \"<string>\",\n \"_ee_roth_3\": \"<string>\",\n \"_eligible_gross_exclusions\": \"<string>\",\n \"_er_match_1\": \"<string>\",\n \"_er_match_2\": \"<string>\",\n \"_er_match_3\": \"<string>\",\n \"_er_roth\": \"<string>\",\n \"_gross_exclusions\": \"<string>\",\n \"_overtime_hours\": \"<string>\",\n \"address.city\": \"<string>\",\n \"address.country\": \"<string>\",\n \"address.state\": \"<string>\",\n \"address.street\": \"<string>\",\n \"address.unit\": \"<string>\",\n \"address.zip\": \"<string>\",\n \"birth_date\": \"<string>\",\n \"ct_group_code\": \"<string>\",\n \"email\": \"<string>\",\n \"employee\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.date_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.pct_basis.er_safe_harbor\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_match\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_non_elective\": \"<string>\",\n \"employee_plans_data.vesting_basis.yos_basis.er_safe_harbor\": \"<string>\",\n \"employment_category\": \"<string>\",\n \"employment_type\": \"<string>\",\n \"ethnicity\": \"<string>\",\n \"first_name\": \"<string>\",\n \"full_address\": \"<string>\",\n \"gender\": \"<string>\",\n \"group\": \"<string>\",\n \"hire_date\": \"<string>\",\n \"is_officer\": \"<string>\",\n \"last_name\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"ownership_percentage\": \"<string>\",\n \"phone\": \"<string>\",\n \"plans_data.eligibility_date\": \"<string>\",\n \"plans_data.eligibility_date.ee\": \"<string>\",\n \"plans_data.eligibility_date.er_match\": \"<string>\",\n \"plans_data.eligibility_date.er_non_elective\": \"<string>\",\n \"plans_data.eligibility_date.er_safe_harbor\": \"<string>\",\n \"plans_data.eligible_gross_pay\": \"<string>\",\n \"plans_data.entry_date\": \"<string>\",\n \"plans_data.entry_date.ee\": \"<string>\",\n \"plans_data.entry_date.er_match\": \"<string>\",\n \"plans_data.entry_date.er_non_elective\": \"<string>\",\n \"plans_data.entry_date.er_safe_harbor\": \"<string>\",\n \"plans_data.plan_compensation\": \"<string>\",\n \"plans_data.plan_compensation.ee\": \"<string>\",\n \"plans_data.plan_compensation.er_match\": \"<string>\",\n \"plans_data.plan_compensation.er_non_elective\": \"<string>\",\n \"plans_data.plan_compensation.er_safe_harbor\": \"<string>\",\n \"plans_data.transactions.ee_pre_tax\": \"<string>\",\n \"plans_data.transactions.ee_roth\": \"<string>\",\n \"plans_data.transactions.er_match\": \"<string>\",\n \"plans_data.transactions.er_non_elective\": \"<string>\",\n \"plans_data.transactions.er_qaca_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_match\": \"<string>\",\n \"plans_data.transactions.er_safe_harbor_non_elective\": \"<string>\",\n \"plans_data.transactions.gross_minus_exclusions\": \"<string>\",\n \"plans_data.transactions.gross_pay\": \"<string>\",\n \"plans_data.transactions.hours_worked\": \"<string>\",\n \"plans_data.transactions.hpi_compensation\": \"<string>\",\n \"plans_data.transactions.new_compensation_group\": \"<string>\",\n \"plans_data.transactions.prevailing_wage\": \"<string>\",\n \"plans_data.transactions.statutory_compensation\": \"<string>\",\n \"preferred_name\": \"<string>\",\n \"principal\": \"<string>\",\n \"rehire_date\": \"<string>\",\n \"relationship\": \"<string>\",\n \"ssn\": \"<string>\",\n \"termination_date\": \"<string>\",\n \"termination_reason\": \"<string>\",\n \"title\": \"<string>\"\n }\n ],\n \"log\": \"<string>\",\n \"plan\": \"<string>\",\n \"py\": 123,\n \"report\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}