Process batch calculator requests with PDF report generation
curl --request POST \
--url https://calculators.symmetry.com/api/data/batch/print \
--header 'Content-Type: application/json' \
--header 'pcc-api-key: <api-key>' \
--data '
[
{
"calculator": "SALARY",
"print": {
"checkDate": 1464291711938,
"checkNumber": "",
"checkNumberOnCheck": "false",
"companyAddressLine1": "",
"companyAddressLine2": "",
"companyAddressLine3": "",
"companyName": "",
"companyNameOnCheck": "false",
"emailReports": "false",
"employeeAddressLine1": "",
"employeeAddressLine2": "",
"employeeAddressLine3": "",
"employeeName": "",
"id": "",
"remarks": ""
},
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": 1464291711938,
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": false,
"exemptFica": false,
"exemptMedicare": false,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"print": null,
"roundFederalWithholding": false,
"state": "AZ",
"stateInfo": {
"parms": [
{
"name": "additionalStateWithholding",
"value": "0"
},
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": false
}
]
},
"twoJobs2020": false,
"voluntaryDeductions": [
{
"benefitType": "_HSA",
"deductionAmount": 200,
"deductionMethodType": "FIXED_AMOUNT",
"deductionName": "HSA",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false
},
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": true,
"exemptFica": true,
"exemptLocal": true,
"exemptState": true
},
{
"benefitType": "_Custom",
"deductionAmount": 10,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "Custom",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false
}
],
"w42020": false
},
"eic": 0,
"federal": 102.86,
"fica": 49.6,
"grossPay": 1000,
"localeTaxes": [],
"locationServiceError": "",
"medicare": 11.6,
"netPay": 494.88,
"reporting": null,
"state": 21.06,
"stateTaxTypes": [],
"timeStamp": 1464291711938,
"voluntaryDeductions": [
{
"name": "HSA",
"value": "200.00"
},
{
"name": "Custom",
"value": "100.00"
},
{
"name": "401k",
"value": "20.00"
}
]
}
},
{
"calculator": "HOURLY",
"print": {
"checkDate": 1464291711938,
"checkNumber": "",
"checkNumberOnCheck": "false",
"companyAddressLine1": "",
"companyAddressLine2": "",
"companyAddressLine3": "",
"companyName": "",
"companyNameOnCheck": "false",
"emailReports": "false",
"employeeAddressLine1": "",
"employeeAddressLine2": "",
"employeeAddressLine3": "",
"employeeName": "",
"id": "",
"remarks": ""
},
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": 1579813694317,
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": false,
"exemptFica": false,
"exemptMedicare": false,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPayType": "PAY_PER_PERIOD",
"grossPayYTD": 0,
"otherIncome": null,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"presetDeductions": null,
"presetImputed": null,
"print": null,
"rates": [
{
"hours": 70,
"payRate": 30
}
],
"roundFederalWithholding": false,
"state": "AZ",
"stateInfo": {
"parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": false
},
{
"name": "additionalStateWithholding",
"value": "0"
}
]
},
"twoJobs2020": false,
"voluntaryDeductions": [
{
"benefitType": "_HSA",
"deductionAmount": 200,
"deductionMethodType": "FIXED_AMOUNT",
"deductionName": "HSA",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false
},
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": true,
"exemptFica": true,
"exemptLocal": true,
"exemptState": true
},
{
"benefitType": "_Custom",
"deductionAmount": 10,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "Custom",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false
}
],
"w42020": false
},
"eic": 0,
"federal": 314.53,
"fica": 117.8,
"grossPay": 2100,
"localeTaxes": [],
"locationServiceError": "",
"medicare": 27.55,
"netPay": 1137.95,
"reporting": null,
"state": 50.17,
"stateTaxTypes": [],
"timeStamp": 1464291711938,
"voluntaryDeductions": [
{
"name": "HSA",
"value": "200.00"
},
{
"name": "Custom",
"value": "210.00"
},
{
"name": "401k",
"value": "42.00"
}
]
}
}
]
'import requests
url = "https://calculators.symmetry.com/api/data/batch/print"
payload = [
{
"calculator": "SALARY",
"print": {
"checkDate": 1464291711938,
"checkNumber": "",
"checkNumberOnCheck": "false",
"companyAddressLine1": "",
"companyAddressLine2": "",
"companyAddressLine3": "",
"companyName": "",
"companyNameOnCheck": "false",
"emailReports": "false",
"employeeAddressLine1": "",
"employeeAddressLine2": "",
"employeeAddressLine3": "",
"employeeName": "",
"id": "",
"remarks": ""
},
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": 1464291711938,
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": False,
"exemptFica": False,
"exemptMedicare": False,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"print": None,
"roundFederalWithholding": False,
"state": "AZ",
"stateInfo": { "parms": [
{
"name": "additionalStateWithholding",
"value": "0"
},
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": False
}
] },
"twoJobs2020": False,
"voluntaryDeductions": [
{
"benefitType": "_HSA",
"deductionAmount": 200,
"deductionMethodType": "FIXED_AMOUNT",
"deductionName": "HSA",
"exemptFederal": False,
"exemptFica": False,
"exemptLocal": False,
"exemptState": False
},
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": True,
"exemptFica": True,
"exemptLocal": True,
"exemptState": True
},
{
"benefitType": "_Custom",
"deductionAmount": 10,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "Custom",
"exemptFederal": False,
"exemptFica": False,
"exemptLocal": False,
"exemptState": False
}
],
"w42020": False
},
"eic": 0,
"federal": 102.86,
"fica": 49.6,
"grossPay": 1000,
"localeTaxes": [],
"locationServiceError": "",
"medicare": 11.6,
"netPay": 494.88,
"reporting": None,
"state": 21.06,
"stateTaxTypes": [],
"timeStamp": 1464291711938,
"voluntaryDeductions": [
{
"name": "HSA",
"value": "200.00"
},
{
"name": "Custom",
"value": "100.00"
},
{
"name": "401k",
"value": "20.00"
}
]
}
},
{
"calculator": "HOURLY",
"print": {
"checkDate": 1464291711938,
"checkNumber": "",
"checkNumberOnCheck": "false",
"companyAddressLine1": "",
"companyAddressLine2": "",
"companyAddressLine3": "",
"companyName": "",
"companyNameOnCheck": "false",
"emailReports": "false",
"employeeAddressLine1": "",
"employeeAddressLine2": "",
"employeeAddressLine3": "",
"employeeName": "",
"id": "",
"remarks": ""
},
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": 1579813694317,
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": False,
"exemptFica": False,
"exemptMedicare": False,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPayType": "PAY_PER_PERIOD",
"grossPayYTD": 0,
"otherIncome": None,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"presetDeductions": None,
"presetImputed": None,
"print": None,
"rates": [
{
"hours": 70,
"payRate": 30
}
],
"roundFederalWithholding": False,
"state": "AZ",
"stateInfo": { "parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": False
},
{
"name": "additionalStateWithholding",
"value": "0"
}
] },
"twoJobs2020": False,
"voluntaryDeductions": [
{
"benefitType": "_HSA",
"deductionAmount": 200,
"deductionMethodType": "FIXED_AMOUNT",
"deductionName": "HSA",
"exemptFederal": False,
"exemptFica": False,
"exemptLocal": False,
"exemptState": False
},
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": True,
"exemptFica": True,
"exemptLocal": True,
"exemptState": True
},
{
"benefitType": "_Custom",
"deductionAmount": 10,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "Custom",
"exemptFederal": False,
"exemptFica": False,
"exemptLocal": False,
"exemptState": False
}
],
"w42020": False
},
"eic": 0,
"federal": 314.53,
"fica": 117.8,
"grossPay": 2100,
"localeTaxes": [],
"locationServiceError": "",
"medicare": 27.55,
"netPay": 1137.95,
"reporting": None,
"state": 50.17,
"stateTaxTypes": [],
"timeStamp": 1464291711938,
"voluntaryDeductions": [
{
"name": "HSA",
"value": "200.00"
},
{
"name": "Custom",
"value": "210.00"
},
{
"name": "401k",
"value": "42.00"
}
]
}
}
]
headers = {
"pcc-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pcc-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
calculator: 'SALARY',
print: {
checkDate: 1464291711938,
checkNumber: '',
checkNumberOnCheck: 'false',
companyAddressLine1: '',
companyAddressLine2: '',
companyAddressLine3: '',
companyName: '',
companyNameOnCheck: 'false',
emailReports: 'false',
employeeAddressLine1: '',
employeeAddressLine2: '',
employeeAddressLine3: '',
employeeName: '',
id: '',
remarks: ''
},
profileHash: '',
response: {
calculator: {
additionalFederalWithholding: 0,
checkDate: 1464291711938,
deductions2020: 0,
dependents2020: 0,
exemptFederal: false,
exemptFica: false,
exemptMedicare: false,
federalAllowances: 0,
federalFilingStatusType: 'SINGLE',
federalFilingStatusType2020: 'SINGLE',
grossPay: 52000,
grossPayType: 'ANNUALLY',
grossPayYTD: 0,
otherIncome2020: 0,
payFrequency: 'WEEKLY',
print: null,
roundFederalWithholding: false,
state: 'AZ',
stateInfo: {
parms: [
{name: 'additionalStateWithholding', value: '0'},
{name: 'PERCENTSTATE', value: '2.7'},
{name: 'stateExemption', value: false}
]
},
twoJobs2020: false,
voluntaryDeductions: [
{
benefitType: '_HSA',
deductionAmount: 200,
deductionMethodType: 'FIXED_AMOUNT',
deductionName: 'HSA',
exemptFederal: false,
exemptFica: false,
exemptLocal: false,
exemptState: false
},
{
benefitType: '_401k',
deductionAmount: 2,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: '401k',
exemptFederal: true,
exemptFica: true,
exemptLocal: true,
exemptState: true
},
{
benefitType: '_Custom',
deductionAmount: 10,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: 'Custom',
exemptFederal: false,
exemptFica: false,
exemptLocal: false,
exemptState: false
}
],
w42020: false
},
eic: 0,
federal: 102.86,
fica: 49.6,
grossPay: 1000,
localeTaxes: [],
locationServiceError: '',
medicare: 11.6,
netPay: 494.88,
reporting: null,
state: 21.06,
stateTaxTypes: [],
timeStamp: 1464291711938,
voluntaryDeductions: [
{name: 'HSA', value: '200.00'},
{name: 'Custom', value: '100.00'},
{name: '401k', value: '20.00'}
]
}
},
{
calculator: 'HOURLY',
print: {
checkDate: 1464291711938,
checkNumber: '',
checkNumberOnCheck: 'false',
companyAddressLine1: '',
companyAddressLine2: '',
companyAddressLine3: '',
companyName: '',
companyNameOnCheck: 'false',
emailReports: 'false',
employeeAddressLine1: '',
employeeAddressLine2: '',
employeeAddressLine3: '',
employeeName: '',
id: '',
remarks: ''
},
profileHash: '',
response: {
calculator: {
additionalFederalWithholding: 0,
checkDate: 1579813694317,
deductions2020: 0,
dependents2020: 0,
exemptFederal: false,
exemptFica: false,
exemptMedicare: false,
federalAllowances: 0,
federalFilingStatusType: 'SINGLE',
federalFilingStatusType2020: 'SINGLE',
grossPayType: 'PAY_PER_PERIOD',
grossPayYTD: 0,
otherIncome: null,
otherIncome2020: 0,
payFrequency: 'WEEKLY',
presetDeductions: null,
presetImputed: null,
print: null,
rates: [{hours: 70, payRate: 30}],
roundFederalWithholding: false,
state: 'AZ',
stateInfo: {
parms: [
{name: 'PERCENTSTATE', value: '2.7'},
{name: 'stateExemption', value: false},
{name: 'additionalStateWithholding', value: '0'}
]
},
twoJobs2020: false,
voluntaryDeductions: [
{
benefitType: '_HSA',
deductionAmount: 200,
deductionMethodType: 'FIXED_AMOUNT',
deductionName: 'HSA',
exemptFederal: false,
exemptFica: false,
exemptLocal: false,
exemptState: false
},
{
benefitType: '_401k',
deductionAmount: 2,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: '401k',
exemptFederal: true,
exemptFica: true,
exemptLocal: true,
exemptState: true
},
{
benefitType: '_Custom',
deductionAmount: 10,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: 'Custom',
exemptFederal: false,
exemptFica: false,
exemptLocal: false,
exemptState: false
}
],
w42020: false
},
eic: 0,
federal: 314.53,
fica: 117.8,
grossPay: 2100,
localeTaxes: [],
locationServiceError: '',
medicare: 27.55,
netPay: 1137.95,
reporting: null,
state: 50.17,
stateTaxTypes: [],
timeStamp: 1464291711938,
voluntaryDeductions: [
{name: 'HSA', value: '200.00'},
{name: 'Custom', value: '210.00'},
{name: '401k', value: '42.00'}
]
}
}
])
};
fetch('https://calculators.symmetry.com/api/data/batch/print', 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://calculators.symmetry.com/api/data/batch/print",
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([
[
'calculator' => 'SALARY',
'print' => [
'checkDate' => 1464291711938,
'checkNumber' => '',
'checkNumberOnCheck' => 'false',
'companyAddressLine1' => '',
'companyAddressLine2' => '',
'companyAddressLine3' => '',
'companyName' => '',
'companyNameOnCheck' => 'false',
'emailReports' => 'false',
'employeeAddressLine1' => '',
'employeeAddressLine2' => '',
'employeeAddressLine3' => '',
'employeeName' => '',
'id' => '',
'remarks' => ''
],
'profileHash' => '',
'response' => [
'calculator' => [
'additionalFederalWithholding' => 0,
'checkDate' => 1464291711938,
'deductions2020' => 0,
'dependents2020' => 0,
'exemptFederal' => false,
'exemptFica' => false,
'exemptMedicare' => false,
'federalAllowances' => 0,
'federalFilingStatusType' => 'SINGLE',
'federalFilingStatusType2020' => 'SINGLE',
'grossPay' => 52000,
'grossPayType' => 'ANNUALLY',
'grossPayYTD' => 0,
'otherIncome2020' => 0,
'payFrequency' => 'WEEKLY',
'print' => null,
'roundFederalWithholding' => false,
'state' => 'AZ',
'stateInfo' => [
'parms' => [
[
'name' => 'additionalStateWithholding',
'value' => '0'
],
[
'name' => 'PERCENTSTATE',
'value' => '2.7'
],
[
'name' => 'stateExemption',
'value' => false
]
]
],
'twoJobs2020' => false,
'voluntaryDeductions' => [
[
'benefitType' => '_HSA',
'deductionAmount' => 200,
'deductionMethodType' => 'FIXED_AMOUNT',
'deductionName' => 'HSA',
'exemptFederal' => false,
'exemptFica' => false,
'exemptLocal' => false,
'exemptState' => false
],
[
'benefitType' => '_401k',
'deductionAmount' => 2,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => '401k',
'exemptFederal' => true,
'exemptFica' => true,
'exemptLocal' => true,
'exemptState' => true
],
[
'benefitType' => '_Custom',
'deductionAmount' => 10,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => 'Custom',
'exemptFederal' => false,
'exemptFica' => false,
'exemptLocal' => false,
'exemptState' => false
]
],
'w42020' => false
],
'eic' => 0,
'federal' => 102.86,
'fica' => 49.6,
'grossPay' => 1000,
'localeTaxes' => [
],
'locationServiceError' => '',
'medicare' => 11.6,
'netPay' => 494.88,
'reporting' => null,
'state' => 21.06,
'stateTaxTypes' => [
],
'timeStamp' => 1464291711938,
'voluntaryDeductions' => [
[
'name' => 'HSA',
'value' => '200.00'
],
[
'name' => 'Custom',
'value' => '100.00'
],
[
'name' => '401k',
'value' => '20.00'
]
]
]
],
[
'calculator' => 'HOURLY',
'print' => [
'checkDate' => 1464291711938,
'checkNumber' => '',
'checkNumberOnCheck' => 'false',
'companyAddressLine1' => '',
'companyAddressLine2' => '',
'companyAddressLine3' => '',
'companyName' => '',
'companyNameOnCheck' => 'false',
'emailReports' => 'false',
'employeeAddressLine1' => '',
'employeeAddressLine2' => '',
'employeeAddressLine3' => '',
'employeeName' => '',
'id' => '',
'remarks' => ''
],
'profileHash' => '',
'response' => [
'calculator' => [
'additionalFederalWithholding' => 0,
'checkDate' => 1579813694317,
'deductions2020' => 0,
'dependents2020' => 0,
'exemptFederal' => false,
'exemptFica' => false,
'exemptMedicare' => false,
'federalAllowances' => 0,
'federalFilingStatusType' => 'SINGLE',
'federalFilingStatusType2020' => 'SINGLE',
'grossPayType' => 'PAY_PER_PERIOD',
'grossPayYTD' => 0,
'otherIncome' => null,
'otherIncome2020' => 0,
'payFrequency' => 'WEEKLY',
'presetDeductions' => null,
'presetImputed' => null,
'print' => null,
'rates' => [
[
'hours' => 70,
'payRate' => 30
]
],
'roundFederalWithholding' => false,
'state' => 'AZ',
'stateInfo' => [
'parms' => [
[
'name' => 'PERCENTSTATE',
'value' => '2.7'
],
[
'name' => 'stateExemption',
'value' => false
],
[
'name' => 'additionalStateWithholding',
'value' => '0'
]
]
],
'twoJobs2020' => false,
'voluntaryDeductions' => [
[
'benefitType' => '_HSA',
'deductionAmount' => 200,
'deductionMethodType' => 'FIXED_AMOUNT',
'deductionName' => 'HSA',
'exemptFederal' => false,
'exemptFica' => false,
'exemptLocal' => false,
'exemptState' => false
],
[
'benefitType' => '_401k',
'deductionAmount' => 2,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => '401k',
'exemptFederal' => true,
'exemptFica' => true,
'exemptLocal' => true,
'exemptState' => true
],
[
'benefitType' => '_Custom',
'deductionAmount' => 10,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => 'Custom',
'exemptFederal' => false,
'exemptFica' => false,
'exemptLocal' => false,
'exemptState' => false
]
],
'w42020' => false
],
'eic' => 0,
'federal' => 314.53,
'fica' => 117.8,
'grossPay' => 2100,
'localeTaxes' => [
],
'locationServiceError' => '',
'medicare' => 27.55,
'netPay' => 1137.95,
'reporting' => null,
'state' => 50.17,
'stateTaxTypes' => [
],
'timeStamp' => 1464291711938,
'voluntaryDeductions' => [
[
'name' => 'HSA',
'value' => '200.00'
],
[
'name' => 'Custom',
'value' => '210.00'
],
[
'name' => '401k',
'value' => '42.00'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pcc-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://calculators.symmetry.com/api/data/batch/print"
payload := strings.NewReader("[\n {\n \"calculator\": \"SALARY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1464291711938,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"print\": null,\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n },\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 102.86,\n \"fica\": 49.6,\n \"grossPay\": 1000,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 11.6,\n \"netPay\": 494.88,\n \"reporting\": null,\n \"state\": 21.06,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"100.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"20.00\"\n }\n ]\n }\n },\n {\n \"calculator\": \"HOURLY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1579813694317,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"grossPayYTD\": 0,\n \"otherIncome\": null,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"presetDeductions\": null,\n \"presetImputed\": null,\n \"print\": null,\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n },\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 314.53,\n \"fica\": 117.8,\n \"grossPay\": 2100,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 27.55,\n \"netPay\": 1137.95,\n \"reporting\": null,\n \"state\": 50.17,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"210.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"42.00\"\n }\n ]\n }\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pcc-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://calculators.symmetry.com/api/data/batch/print")
.header("pcc-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n {\n \"calculator\": \"SALARY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1464291711938,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"print\": null,\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n },\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 102.86,\n \"fica\": 49.6,\n \"grossPay\": 1000,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 11.6,\n \"netPay\": 494.88,\n \"reporting\": null,\n \"state\": 21.06,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"100.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"20.00\"\n }\n ]\n }\n },\n {\n \"calculator\": \"HOURLY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1579813694317,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"grossPayYTD\": 0,\n \"otherIncome\": null,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"presetDeductions\": null,\n \"presetImputed\": null,\n \"print\": null,\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n },\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 314.53,\n \"fica\": 117.8,\n \"grossPay\": 2100,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 27.55,\n \"netPay\": 1137.95,\n \"reporting\": null,\n \"state\": 50.17,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"210.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"42.00\"\n }\n ]\n }\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://calculators.symmetry.com/api/data/batch/print")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pcc-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"calculator\": \"SALARY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1464291711938,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"print\": null,\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n },\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 102.86,\n \"fica\": 49.6,\n \"grossPay\": 1000,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 11.6,\n \"netPay\": 494.88,\n \"reporting\": null,\n \"state\": 21.06,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"100.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"20.00\"\n }\n ]\n }\n },\n {\n \"calculator\": \"HOURLY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1579813694317,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"grossPayYTD\": 0,\n \"otherIncome\": null,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"presetDeductions\": null,\n \"presetImputed\": null,\n \"print\": null,\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n },\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 314.53,\n \"fica\": 117.8,\n \"grossPay\": 2100,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 27.55,\n \"netPay\": 1137.95,\n \"reporting\": null,\n \"state\": 50.17,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"210.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"42.00\"\n }\n ]\n }\n }\n]"
response = http.request(request)
puts response.read_body{
"_links": {
"self": {
"href": "https://calculators.symmetry.com/api/data/batch/print?report=checktop"
}
},
"content": {
"reports": {
"Check on top": "JVBERi0xLjQKJfbk/N8KMSAwIG9iago..."
}
}
}{
"content": "Error occurred generating document"
}{
"message": "No api key found"
}{
"message": "Invalid api key"
}{
"error": "Not Found",
"path": "/api/data/batch/print/badpath",
"status": 404,
"timestamp": 1641573466465
}{
"error": "Method Not Allowed",
"path": "/api/data/batch/print",
"status": 405,
"timestamp": 1641572607838
}{
"error": "Payload Too Large",
"status": 413,
"timestamp": 1641573466465
}POST’s multiple calculator calculations to the STE for async queue processing and generates a PDF report for all calculations. Returns base64-encoded PDF reports. The calculator property must be in all caps.
POST
/
data
/
batch
/
print
Process batch calculator requests with PDF report generation
curl --request POST \
--url https://calculators.symmetry.com/api/data/batch/print \
--header 'Content-Type: application/json' \
--header 'pcc-api-key: <api-key>' \
--data '
[
{
"calculator": "SALARY",
"print": {
"checkDate": 1464291711938,
"checkNumber": "",
"checkNumberOnCheck": "false",
"companyAddressLine1": "",
"companyAddressLine2": "",
"companyAddressLine3": "",
"companyName": "",
"companyNameOnCheck": "false",
"emailReports": "false",
"employeeAddressLine1": "",
"employeeAddressLine2": "",
"employeeAddressLine3": "",
"employeeName": "",
"id": "",
"remarks": ""
},
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": 1464291711938,
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": false,
"exemptFica": false,
"exemptMedicare": false,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"print": null,
"roundFederalWithholding": false,
"state": "AZ",
"stateInfo": {
"parms": [
{
"name": "additionalStateWithholding",
"value": "0"
},
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": false
}
]
},
"twoJobs2020": false,
"voluntaryDeductions": [
{
"benefitType": "_HSA",
"deductionAmount": 200,
"deductionMethodType": "FIXED_AMOUNT",
"deductionName": "HSA",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false
},
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": true,
"exemptFica": true,
"exemptLocal": true,
"exemptState": true
},
{
"benefitType": "_Custom",
"deductionAmount": 10,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "Custom",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false
}
],
"w42020": false
},
"eic": 0,
"federal": 102.86,
"fica": 49.6,
"grossPay": 1000,
"localeTaxes": [],
"locationServiceError": "",
"medicare": 11.6,
"netPay": 494.88,
"reporting": null,
"state": 21.06,
"stateTaxTypes": [],
"timeStamp": 1464291711938,
"voluntaryDeductions": [
{
"name": "HSA",
"value": "200.00"
},
{
"name": "Custom",
"value": "100.00"
},
{
"name": "401k",
"value": "20.00"
}
]
}
},
{
"calculator": "HOURLY",
"print": {
"checkDate": 1464291711938,
"checkNumber": "",
"checkNumberOnCheck": "false",
"companyAddressLine1": "",
"companyAddressLine2": "",
"companyAddressLine3": "",
"companyName": "",
"companyNameOnCheck": "false",
"emailReports": "false",
"employeeAddressLine1": "",
"employeeAddressLine2": "",
"employeeAddressLine3": "",
"employeeName": "",
"id": "",
"remarks": ""
},
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": 1579813694317,
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": false,
"exemptFica": false,
"exemptMedicare": false,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPayType": "PAY_PER_PERIOD",
"grossPayYTD": 0,
"otherIncome": null,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"presetDeductions": null,
"presetImputed": null,
"print": null,
"rates": [
{
"hours": 70,
"payRate": 30
}
],
"roundFederalWithholding": false,
"state": "AZ",
"stateInfo": {
"parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": false
},
{
"name": "additionalStateWithholding",
"value": "0"
}
]
},
"twoJobs2020": false,
"voluntaryDeductions": [
{
"benefitType": "_HSA",
"deductionAmount": 200,
"deductionMethodType": "FIXED_AMOUNT",
"deductionName": "HSA",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false
},
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": true,
"exemptFica": true,
"exemptLocal": true,
"exemptState": true
},
{
"benefitType": "_Custom",
"deductionAmount": 10,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "Custom",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false
}
],
"w42020": false
},
"eic": 0,
"federal": 314.53,
"fica": 117.8,
"grossPay": 2100,
"localeTaxes": [],
"locationServiceError": "",
"medicare": 27.55,
"netPay": 1137.95,
"reporting": null,
"state": 50.17,
"stateTaxTypes": [],
"timeStamp": 1464291711938,
"voluntaryDeductions": [
{
"name": "HSA",
"value": "200.00"
},
{
"name": "Custom",
"value": "210.00"
},
{
"name": "401k",
"value": "42.00"
}
]
}
}
]
'import requests
url = "https://calculators.symmetry.com/api/data/batch/print"
payload = [
{
"calculator": "SALARY",
"print": {
"checkDate": 1464291711938,
"checkNumber": "",
"checkNumberOnCheck": "false",
"companyAddressLine1": "",
"companyAddressLine2": "",
"companyAddressLine3": "",
"companyName": "",
"companyNameOnCheck": "false",
"emailReports": "false",
"employeeAddressLine1": "",
"employeeAddressLine2": "",
"employeeAddressLine3": "",
"employeeName": "",
"id": "",
"remarks": ""
},
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": 1464291711938,
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": False,
"exemptFica": False,
"exemptMedicare": False,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"print": None,
"roundFederalWithholding": False,
"state": "AZ",
"stateInfo": { "parms": [
{
"name": "additionalStateWithholding",
"value": "0"
},
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": False
}
] },
"twoJobs2020": False,
"voluntaryDeductions": [
{
"benefitType": "_HSA",
"deductionAmount": 200,
"deductionMethodType": "FIXED_AMOUNT",
"deductionName": "HSA",
"exemptFederal": False,
"exemptFica": False,
"exemptLocal": False,
"exemptState": False
},
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": True,
"exemptFica": True,
"exemptLocal": True,
"exemptState": True
},
{
"benefitType": "_Custom",
"deductionAmount": 10,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "Custom",
"exemptFederal": False,
"exemptFica": False,
"exemptLocal": False,
"exemptState": False
}
],
"w42020": False
},
"eic": 0,
"federal": 102.86,
"fica": 49.6,
"grossPay": 1000,
"localeTaxes": [],
"locationServiceError": "",
"medicare": 11.6,
"netPay": 494.88,
"reporting": None,
"state": 21.06,
"stateTaxTypes": [],
"timeStamp": 1464291711938,
"voluntaryDeductions": [
{
"name": "HSA",
"value": "200.00"
},
{
"name": "Custom",
"value": "100.00"
},
{
"name": "401k",
"value": "20.00"
}
]
}
},
{
"calculator": "HOURLY",
"print": {
"checkDate": 1464291711938,
"checkNumber": "",
"checkNumberOnCheck": "false",
"companyAddressLine1": "",
"companyAddressLine2": "",
"companyAddressLine3": "",
"companyName": "",
"companyNameOnCheck": "false",
"emailReports": "false",
"employeeAddressLine1": "",
"employeeAddressLine2": "",
"employeeAddressLine3": "",
"employeeName": "",
"id": "",
"remarks": ""
},
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": 1579813694317,
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": False,
"exemptFica": False,
"exemptMedicare": False,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPayType": "PAY_PER_PERIOD",
"grossPayYTD": 0,
"otherIncome": None,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"presetDeductions": None,
"presetImputed": None,
"print": None,
"rates": [
{
"hours": 70,
"payRate": 30
}
],
"roundFederalWithholding": False,
"state": "AZ",
"stateInfo": { "parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": False
},
{
"name": "additionalStateWithholding",
"value": "0"
}
] },
"twoJobs2020": False,
"voluntaryDeductions": [
{
"benefitType": "_HSA",
"deductionAmount": 200,
"deductionMethodType": "FIXED_AMOUNT",
"deductionName": "HSA",
"exemptFederal": False,
"exemptFica": False,
"exemptLocal": False,
"exemptState": False
},
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": True,
"exemptFica": True,
"exemptLocal": True,
"exemptState": True
},
{
"benefitType": "_Custom",
"deductionAmount": 10,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "Custom",
"exemptFederal": False,
"exemptFica": False,
"exemptLocal": False,
"exemptState": False
}
],
"w42020": False
},
"eic": 0,
"federal": 314.53,
"fica": 117.8,
"grossPay": 2100,
"localeTaxes": [],
"locationServiceError": "",
"medicare": 27.55,
"netPay": 1137.95,
"reporting": None,
"state": 50.17,
"stateTaxTypes": [],
"timeStamp": 1464291711938,
"voluntaryDeductions": [
{
"name": "HSA",
"value": "200.00"
},
{
"name": "Custom",
"value": "210.00"
},
{
"name": "401k",
"value": "42.00"
}
]
}
}
]
headers = {
"pcc-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pcc-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
calculator: 'SALARY',
print: {
checkDate: 1464291711938,
checkNumber: '',
checkNumberOnCheck: 'false',
companyAddressLine1: '',
companyAddressLine2: '',
companyAddressLine3: '',
companyName: '',
companyNameOnCheck: 'false',
emailReports: 'false',
employeeAddressLine1: '',
employeeAddressLine2: '',
employeeAddressLine3: '',
employeeName: '',
id: '',
remarks: ''
},
profileHash: '',
response: {
calculator: {
additionalFederalWithholding: 0,
checkDate: 1464291711938,
deductions2020: 0,
dependents2020: 0,
exemptFederal: false,
exemptFica: false,
exemptMedicare: false,
federalAllowances: 0,
federalFilingStatusType: 'SINGLE',
federalFilingStatusType2020: 'SINGLE',
grossPay: 52000,
grossPayType: 'ANNUALLY',
grossPayYTD: 0,
otherIncome2020: 0,
payFrequency: 'WEEKLY',
print: null,
roundFederalWithholding: false,
state: 'AZ',
stateInfo: {
parms: [
{name: 'additionalStateWithholding', value: '0'},
{name: 'PERCENTSTATE', value: '2.7'},
{name: 'stateExemption', value: false}
]
},
twoJobs2020: false,
voluntaryDeductions: [
{
benefitType: '_HSA',
deductionAmount: 200,
deductionMethodType: 'FIXED_AMOUNT',
deductionName: 'HSA',
exemptFederal: false,
exemptFica: false,
exemptLocal: false,
exemptState: false
},
{
benefitType: '_401k',
deductionAmount: 2,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: '401k',
exemptFederal: true,
exemptFica: true,
exemptLocal: true,
exemptState: true
},
{
benefitType: '_Custom',
deductionAmount: 10,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: 'Custom',
exemptFederal: false,
exemptFica: false,
exemptLocal: false,
exemptState: false
}
],
w42020: false
},
eic: 0,
federal: 102.86,
fica: 49.6,
grossPay: 1000,
localeTaxes: [],
locationServiceError: '',
medicare: 11.6,
netPay: 494.88,
reporting: null,
state: 21.06,
stateTaxTypes: [],
timeStamp: 1464291711938,
voluntaryDeductions: [
{name: 'HSA', value: '200.00'},
{name: 'Custom', value: '100.00'},
{name: '401k', value: '20.00'}
]
}
},
{
calculator: 'HOURLY',
print: {
checkDate: 1464291711938,
checkNumber: '',
checkNumberOnCheck: 'false',
companyAddressLine1: '',
companyAddressLine2: '',
companyAddressLine3: '',
companyName: '',
companyNameOnCheck: 'false',
emailReports: 'false',
employeeAddressLine1: '',
employeeAddressLine2: '',
employeeAddressLine3: '',
employeeName: '',
id: '',
remarks: ''
},
profileHash: '',
response: {
calculator: {
additionalFederalWithholding: 0,
checkDate: 1579813694317,
deductions2020: 0,
dependents2020: 0,
exemptFederal: false,
exemptFica: false,
exemptMedicare: false,
federalAllowances: 0,
federalFilingStatusType: 'SINGLE',
federalFilingStatusType2020: 'SINGLE',
grossPayType: 'PAY_PER_PERIOD',
grossPayYTD: 0,
otherIncome: null,
otherIncome2020: 0,
payFrequency: 'WEEKLY',
presetDeductions: null,
presetImputed: null,
print: null,
rates: [{hours: 70, payRate: 30}],
roundFederalWithholding: false,
state: 'AZ',
stateInfo: {
parms: [
{name: 'PERCENTSTATE', value: '2.7'},
{name: 'stateExemption', value: false},
{name: 'additionalStateWithholding', value: '0'}
]
},
twoJobs2020: false,
voluntaryDeductions: [
{
benefitType: '_HSA',
deductionAmount: 200,
deductionMethodType: 'FIXED_AMOUNT',
deductionName: 'HSA',
exemptFederal: false,
exemptFica: false,
exemptLocal: false,
exemptState: false
},
{
benefitType: '_401k',
deductionAmount: 2,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: '401k',
exemptFederal: true,
exemptFica: true,
exemptLocal: true,
exemptState: true
},
{
benefitType: '_Custom',
deductionAmount: 10,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: 'Custom',
exemptFederal: false,
exemptFica: false,
exemptLocal: false,
exemptState: false
}
],
w42020: false
},
eic: 0,
federal: 314.53,
fica: 117.8,
grossPay: 2100,
localeTaxes: [],
locationServiceError: '',
medicare: 27.55,
netPay: 1137.95,
reporting: null,
state: 50.17,
stateTaxTypes: [],
timeStamp: 1464291711938,
voluntaryDeductions: [
{name: 'HSA', value: '200.00'},
{name: 'Custom', value: '210.00'},
{name: '401k', value: '42.00'}
]
}
}
])
};
fetch('https://calculators.symmetry.com/api/data/batch/print', 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://calculators.symmetry.com/api/data/batch/print",
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([
[
'calculator' => 'SALARY',
'print' => [
'checkDate' => 1464291711938,
'checkNumber' => '',
'checkNumberOnCheck' => 'false',
'companyAddressLine1' => '',
'companyAddressLine2' => '',
'companyAddressLine3' => '',
'companyName' => '',
'companyNameOnCheck' => 'false',
'emailReports' => 'false',
'employeeAddressLine1' => '',
'employeeAddressLine2' => '',
'employeeAddressLine3' => '',
'employeeName' => '',
'id' => '',
'remarks' => ''
],
'profileHash' => '',
'response' => [
'calculator' => [
'additionalFederalWithholding' => 0,
'checkDate' => 1464291711938,
'deductions2020' => 0,
'dependents2020' => 0,
'exemptFederal' => false,
'exemptFica' => false,
'exemptMedicare' => false,
'federalAllowances' => 0,
'federalFilingStatusType' => 'SINGLE',
'federalFilingStatusType2020' => 'SINGLE',
'grossPay' => 52000,
'grossPayType' => 'ANNUALLY',
'grossPayYTD' => 0,
'otherIncome2020' => 0,
'payFrequency' => 'WEEKLY',
'print' => null,
'roundFederalWithholding' => false,
'state' => 'AZ',
'stateInfo' => [
'parms' => [
[
'name' => 'additionalStateWithholding',
'value' => '0'
],
[
'name' => 'PERCENTSTATE',
'value' => '2.7'
],
[
'name' => 'stateExemption',
'value' => false
]
]
],
'twoJobs2020' => false,
'voluntaryDeductions' => [
[
'benefitType' => '_HSA',
'deductionAmount' => 200,
'deductionMethodType' => 'FIXED_AMOUNT',
'deductionName' => 'HSA',
'exemptFederal' => false,
'exemptFica' => false,
'exemptLocal' => false,
'exemptState' => false
],
[
'benefitType' => '_401k',
'deductionAmount' => 2,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => '401k',
'exemptFederal' => true,
'exemptFica' => true,
'exemptLocal' => true,
'exemptState' => true
],
[
'benefitType' => '_Custom',
'deductionAmount' => 10,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => 'Custom',
'exemptFederal' => false,
'exemptFica' => false,
'exemptLocal' => false,
'exemptState' => false
]
],
'w42020' => false
],
'eic' => 0,
'federal' => 102.86,
'fica' => 49.6,
'grossPay' => 1000,
'localeTaxes' => [
],
'locationServiceError' => '',
'medicare' => 11.6,
'netPay' => 494.88,
'reporting' => null,
'state' => 21.06,
'stateTaxTypes' => [
],
'timeStamp' => 1464291711938,
'voluntaryDeductions' => [
[
'name' => 'HSA',
'value' => '200.00'
],
[
'name' => 'Custom',
'value' => '100.00'
],
[
'name' => '401k',
'value' => '20.00'
]
]
]
],
[
'calculator' => 'HOURLY',
'print' => [
'checkDate' => 1464291711938,
'checkNumber' => '',
'checkNumberOnCheck' => 'false',
'companyAddressLine1' => '',
'companyAddressLine2' => '',
'companyAddressLine3' => '',
'companyName' => '',
'companyNameOnCheck' => 'false',
'emailReports' => 'false',
'employeeAddressLine1' => '',
'employeeAddressLine2' => '',
'employeeAddressLine3' => '',
'employeeName' => '',
'id' => '',
'remarks' => ''
],
'profileHash' => '',
'response' => [
'calculator' => [
'additionalFederalWithholding' => 0,
'checkDate' => 1579813694317,
'deductions2020' => 0,
'dependents2020' => 0,
'exemptFederal' => false,
'exemptFica' => false,
'exemptMedicare' => false,
'federalAllowances' => 0,
'federalFilingStatusType' => 'SINGLE',
'federalFilingStatusType2020' => 'SINGLE',
'grossPayType' => 'PAY_PER_PERIOD',
'grossPayYTD' => 0,
'otherIncome' => null,
'otherIncome2020' => 0,
'payFrequency' => 'WEEKLY',
'presetDeductions' => null,
'presetImputed' => null,
'print' => null,
'rates' => [
[
'hours' => 70,
'payRate' => 30
]
],
'roundFederalWithholding' => false,
'state' => 'AZ',
'stateInfo' => [
'parms' => [
[
'name' => 'PERCENTSTATE',
'value' => '2.7'
],
[
'name' => 'stateExemption',
'value' => false
],
[
'name' => 'additionalStateWithholding',
'value' => '0'
]
]
],
'twoJobs2020' => false,
'voluntaryDeductions' => [
[
'benefitType' => '_HSA',
'deductionAmount' => 200,
'deductionMethodType' => 'FIXED_AMOUNT',
'deductionName' => 'HSA',
'exemptFederal' => false,
'exemptFica' => false,
'exemptLocal' => false,
'exemptState' => false
],
[
'benefitType' => '_401k',
'deductionAmount' => 2,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => '401k',
'exemptFederal' => true,
'exemptFica' => true,
'exemptLocal' => true,
'exemptState' => true
],
[
'benefitType' => '_Custom',
'deductionAmount' => 10,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => 'Custom',
'exemptFederal' => false,
'exemptFica' => false,
'exemptLocal' => false,
'exemptState' => false
]
],
'w42020' => false
],
'eic' => 0,
'federal' => 314.53,
'fica' => 117.8,
'grossPay' => 2100,
'localeTaxes' => [
],
'locationServiceError' => '',
'medicare' => 27.55,
'netPay' => 1137.95,
'reporting' => null,
'state' => 50.17,
'stateTaxTypes' => [
],
'timeStamp' => 1464291711938,
'voluntaryDeductions' => [
[
'name' => 'HSA',
'value' => '200.00'
],
[
'name' => 'Custom',
'value' => '210.00'
],
[
'name' => '401k',
'value' => '42.00'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pcc-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://calculators.symmetry.com/api/data/batch/print"
payload := strings.NewReader("[\n {\n \"calculator\": \"SALARY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1464291711938,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"print\": null,\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n },\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 102.86,\n \"fica\": 49.6,\n \"grossPay\": 1000,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 11.6,\n \"netPay\": 494.88,\n \"reporting\": null,\n \"state\": 21.06,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"100.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"20.00\"\n }\n ]\n }\n },\n {\n \"calculator\": \"HOURLY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1579813694317,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"grossPayYTD\": 0,\n \"otherIncome\": null,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"presetDeductions\": null,\n \"presetImputed\": null,\n \"print\": null,\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n },\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 314.53,\n \"fica\": 117.8,\n \"grossPay\": 2100,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 27.55,\n \"netPay\": 1137.95,\n \"reporting\": null,\n \"state\": 50.17,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"210.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"42.00\"\n }\n ]\n }\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pcc-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://calculators.symmetry.com/api/data/batch/print")
.header("pcc-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n {\n \"calculator\": \"SALARY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1464291711938,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"print\": null,\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n },\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 102.86,\n \"fica\": 49.6,\n \"grossPay\": 1000,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 11.6,\n \"netPay\": 494.88,\n \"reporting\": null,\n \"state\": 21.06,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"100.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"20.00\"\n }\n ]\n }\n },\n {\n \"calculator\": \"HOURLY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1579813694317,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"grossPayYTD\": 0,\n \"otherIncome\": null,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"presetDeductions\": null,\n \"presetImputed\": null,\n \"print\": null,\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n },\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 314.53,\n \"fica\": 117.8,\n \"grossPay\": 2100,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 27.55,\n \"netPay\": 1137.95,\n \"reporting\": null,\n \"state\": 50.17,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"210.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"42.00\"\n }\n ]\n }\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://calculators.symmetry.com/api/data/batch/print")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pcc-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"calculator\": \"SALARY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1464291711938,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"print\": null,\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n },\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 102.86,\n \"fica\": 49.6,\n \"grossPay\": 1000,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 11.6,\n \"netPay\": 494.88,\n \"reporting\": null,\n \"state\": 21.06,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"100.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"20.00\"\n }\n ]\n }\n },\n {\n \"calculator\": \"HOURLY\",\n \"print\": {\n \"checkDate\": 1464291711938,\n \"checkNumber\": \"\",\n \"checkNumberOnCheck\": \"false\",\n \"companyAddressLine1\": \"\",\n \"companyAddressLine2\": \"\",\n \"companyAddressLine3\": \"\",\n \"companyName\": \"\",\n \"companyNameOnCheck\": \"false\",\n \"emailReports\": \"false\",\n \"employeeAddressLine1\": \"\",\n \"employeeAddressLine2\": \"\",\n \"employeeAddressLine3\": \"\",\n \"employeeName\": \"\",\n \"id\": \"\",\n \"remarks\": \"\"\n },\n \"profileHash\": \"\",\n \"response\": {\n \"calculator\": {\n \"additionalFederalWithholding\": 0,\n \"checkDate\": 1579813694317,\n \"deductions2020\": 0,\n \"dependents2020\": 0,\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptMedicare\": false,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"federalFilingStatusType2020\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"grossPayYTD\": 0,\n \"otherIncome\": null,\n \"otherIncome2020\": 0,\n \"payFrequency\": \"WEEKLY\",\n \"presetDeductions\": null,\n \"presetImputed\": null,\n \"print\": null,\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"roundFederalWithholding\": false,\n \"state\": \"AZ\",\n \"stateInfo\": {\n \"parms\": [\n {\n \"name\": \"PERCENTSTATE\",\n \"value\": \"2.7\"\n },\n {\n \"name\": \"stateExemption\",\n \"value\": false\n },\n {\n \"name\": \"additionalStateWithholding\",\n \"value\": \"0\"\n }\n ]\n },\n \"twoJobs2020\": false,\n \"voluntaryDeductions\": [\n {\n \"benefitType\": \"_HSA\",\n \"deductionAmount\": 200,\n \"deductionMethodType\": \"FIXED_AMOUNT\",\n \"deductionName\": \"HSA\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n },\n {\n \"benefitType\": \"_401k\",\n \"deductionAmount\": 2,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"401k\",\n \"exemptFederal\": true,\n \"exemptFica\": true,\n \"exemptLocal\": true,\n \"exemptState\": true\n },\n {\n \"benefitType\": \"_Custom\",\n \"deductionAmount\": 10,\n \"deductionMethodType\": \"PERCENT_OF_GROSS\",\n \"deductionName\": \"Custom\",\n \"exemptFederal\": false,\n \"exemptFica\": false,\n \"exemptLocal\": false,\n \"exemptState\": false\n }\n ],\n \"w42020\": false\n },\n \"eic\": 0,\n \"federal\": 314.53,\n \"fica\": 117.8,\n \"grossPay\": 2100,\n \"localeTaxes\": [],\n \"locationServiceError\": \"\",\n \"medicare\": 27.55,\n \"netPay\": 1137.95,\n \"reporting\": null,\n \"state\": 50.17,\n \"stateTaxTypes\": [],\n \"timeStamp\": 1464291711938,\n \"voluntaryDeductions\": [\n {\n \"name\": \"HSA\",\n \"value\": \"200.00\"\n },\n {\n \"name\": \"Custom\",\n \"value\": \"210.00\"\n },\n {\n \"name\": \"401k\",\n \"value\": \"42.00\"\n }\n ]\n }\n }\n]"
response = http.request(request)
puts response.read_body{
"_links": {
"self": {
"href": "https://calculators.symmetry.com/api/data/batch/print?report=checktop"
}
},
"content": {
"reports": {
"Check on top": "JVBERi0xLjQKJfbk/N8KMSAwIG9iago..."
}
}
}{
"content": "Error occurred generating document"
}{
"message": "No api key found"
}{
"message": "Invalid api key"
}{
"error": "Not Found",
"path": "/api/data/batch/print/badpath",
"status": 404,
"timestamp": 1641573466465
}{
"error": "Method Not Allowed",
"path": "/api/data/batch/print",
"status": 405,
"timestamp": 1641572607838
}{
"error": "Payload Too Large",
"status": 413,
"timestamp": 1641573466465
}Authorizations
API key for CBS API authentication
Query Parameters
Type of PDF report to generate
Available options:
all, checkbottom, checkmiddle, checktop, deluxe_b100, deluxe_b211, deluxe_m102, deluxe_m145, deluxe_t104, deluxe_t111, earnings, paystub, quickbooks_top Body
application/json
Array of batch print request objects with calculator (UPPERCASE), response, and print fields
Calculator type in UPPERCASE
Available options:
BONUSAGG, BONUSPER, FINALPAY, GROSSUP, HOURLY, SALARY, STOCKOPTION, TAXTIP, TUITION, _401K, _403B Example:
"SALARY"
Print object containing calculator and print information
Show child attributes
Show child attributes
Profile identifier for tracking batch requests
Example:
"user123-salary-CA"
Calculator calculation results
Show child attributes
Show child attributes
Response
PDF reports generated successfully (returns base64-encoded PDFs)
⌘I

