Process batch calculator requests
curl --request POST \
--url https://calculators.symmetry.com/api/data/batch \
--header 'Content-Type: application/json' \
--header 'pcc-api-key: <api-key>' \
--data '
[
{
"calculator": {
"checkDate": 1464291711938,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"payFrequency": "WEEKLY",
"state": "AZ",
"stateInfo": {
"parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": false
}
]
},
"voluntaryDeductions": [
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": true,
"exemptFica": true,
"exemptLocal": true,
"exemptState": true
}
],
"w42020": false
},
"profileHash": ""
},
{
"calculator": {
"checkDate": 1579813694317,
"federalFilingStatusType": "SINGLE",
"grossPayType": "PAY_PER_PERIOD",
"payFrequency": "WEEKLY",
"rates": [
{
"hours": 70,
"payRate": 30
}
],
"state": "AZ"
},
"profileHash": ""
}
]
'import requests
url = "https://calculators.symmetry.com/api/data/batch"
payload = [
{
"calculator": {
"checkDate": 1464291711938,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"payFrequency": "WEEKLY",
"state": "AZ",
"stateInfo": { "parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": False
}
] },
"voluntaryDeductions": [
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": True,
"exemptFica": True,
"exemptLocal": True,
"exemptState": True
}
],
"w42020": False
},
"profileHash": ""
},
{
"calculator": {
"checkDate": 1579813694317,
"federalFilingStatusType": "SINGLE",
"grossPayType": "PAY_PER_PERIOD",
"payFrequency": "WEEKLY",
"rates": [
{
"hours": 70,
"payRate": 30
}
],
"state": "AZ"
},
"profileHash": ""
}
]
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: {
checkDate: 1464291711938,
federalAllowances: 0,
federalFilingStatusType: 'SINGLE',
grossPay: 52000,
grossPayType: 'ANNUALLY',
grossPayYTD: 0,
payFrequency: 'WEEKLY',
state: 'AZ',
stateInfo: {
parms: [{name: 'PERCENTSTATE', value: '2.7'}, {name: 'stateExemption', value: false}]
},
voluntaryDeductions: [
{
benefitType: '_401k',
deductionAmount: 2,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: '401k',
exemptFederal: true,
exemptFica: true,
exemptLocal: true,
exemptState: true
}
],
w42020: false
},
profileHash: ''
},
{
calculator: {
checkDate: 1579813694317,
federalFilingStatusType: 'SINGLE',
grossPayType: 'PAY_PER_PERIOD',
payFrequency: 'WEEKLY',
rates: [{hours: 70, payRate: 30}],
state: 'AZ'
},
profileHash: ''
}
])
};
fetch('https://calculators.symmetry.com/api/data/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://calculators.symmetry.com/api/data/batch",
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' => [
'checkDate' => 1464291711938,
'federalAllowances' => 0,
'federalFilingStatusType' => 'SINGLE',
'grossPay' => 52000,
'grossPayType' => 'ANNUALLY',
'grossPayYTD' => 0,
'payFrequency' => 'WEEKLY',
'state' => 'AZ',
'stateInfo' => [
'parms' => [
[
'name' => 'PERCENTSTATE',
'value' => '2.7'
],
[
'name' => 'stateExemption',
'value' => false
]
]
],
'voluntaryDeductions' => [
[
'benefitType' => '_401k',
'deductionAmount' => 2,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => '401k',
'exemptFederal' => true,
'exemptFica' => true,
'exemptLocal' => true,
'exemptState' => true
]
],
'w42020' => false
],
'profileHash' => ''
],
[
'calculator' => [
'checkDate' => 1579813694317,
'federalFilingStatusType' => 'SINGLE',
'grossPayType' => 'PAY_PER_PERIOD',
'payFrequency' => 'WEEKLY',
'rates' => [
[
'hours' => 70,
'payRate' => 30
]
],
'state' => 'AZ'
],
'profileHash' => ''
]
]),
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"
payload := strings.NewReader("[\n {\n \"calculator\": {\n \"checkDate\": 1464291711938,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"payFrequency\": \"WEEKLY\",\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 },\n \"voluntaryDeductions\": [\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 \"w42020\": false\n },\n \"profileHash\": \"\"\n },\n {\n \"calculator\": {\n \"checkDate\": 1579813694317,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"payFrequency\": \"WEEKLY\",\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"state\": \"AZ\"\n },\n \"profileHash\": \"\"\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")
.header("pcc-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n {\n \"calculator\": {\n \"checkDate\": 1464291711938,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"payFrequency\": \"WEEKLY\",\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 },\n \"voluntaryDeductions\": [\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 \"w42020\": false\n },\n \"profileHash\": \"\"\n },\n {\n \"calculator\": {\n \"checkDate\": 1579813694317,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"payFrequency\": \"WEEKLY\",\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"state\": \"AZ\"\n },\n \"profileHash\": \"\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://calculators.symmetry.com/api/data/batch")
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\": {\n \"checkDate\": 1464291711938,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"payFrequency\": \"WEEKLY\",\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 },\n \"voluntaryDeductions\": [\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 \"w42020\": false\n },\n \"profileHash\": \"\"\n },\n {\n \"calculator\": {\n \"checkDate\": 1579813694317,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"payFrequency\": \"WEEKLY\",\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"state\": \"AZ\"\n },\n \"profileHash\": \"\"\n }\n]"
response = http.request(request)
puts response.read_body{
"_links": {
"self": {
"href": "https://calculators.symmetry.com/api/data/batch"
}
},
"content": [
{
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": "2016-05-26T19:41:51.938+00:00",
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": false,
"exemptFica": false,
"exemptMedicare": false,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"otherIncome": null,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"presetDeductions": null,
"presetImputed": null,
"print": null,
"roundFederalWithholding": false,
"state": "AZ",
"stateInfo": {
"parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": false
}
]
},
"twoJobs2020": false,
"voluntaryDeductions": [
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": true,
"exemptFica": true,
"exemptLocal": true,
"exemptState": true,
"ytdAmount": null
}
],
"w42020": false
},
"eic": 0,
"federal": 152.86,
"fica": 62,
"grossPay": 1000,
"localeTaxes": [],
"medicare": 14.5,
"netPay": 724.18,
"state": 26.46,
"stateTaxTypes": [],
"taxPaidDetails": [
{
"amtPaid": 62,
"description": "Employer Social Security Tax",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 1000,
"uTaxID": "00-000-0000-ER_FICA-000-Res-Comb"
},
{
"amtPaid": 14.5,
"description": "Employer Medicare Tax",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 1000,
"uTaxID": "00-000-0000-ER_MEDI-000-Res-Comb"
},
{
"amtPaid": 62,
"description": "Social Security Tax",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 1000,
"uTaxID": "00-000-0000-FICA-000-Res-Comb"
},
{
"amtPaid": 152.86,
"description": "Federal Income Tax",
"grossSubjectWages": 980,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "REGULAR",
"subjectWages": 980,
"uTaxID": "00-000-0000-FIT-000-Res-Reg"
},
{
"amtPaid": 14.5,
"description": "Medicare Tax",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 1000,
"uTaxID": "00-000-0000-MEDI-000-Res-Comb"
},
{
"amtPaid": 0,
"description": "Additional Medicare",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 0,
"uTaxID": "00-000-0000-MEDI2-000-Res-Comb"
},
{
"amtPaid": 26.46,
"description": "Arizona State Tax",
"grossSubjectWages": 980,
"grossWages": 1000,
"locationCode": "04-000-9999",
"payType": "REGULAR",
"subjectWages": 980,
"uTaxID": "04-000-0000-SIT-000-Res-Reg"
}
],
"timeStamp": 1763492700787,
"voluntaryDeductions": [
{
"name": "401k",
"value": "20.00"
}
]
}
},
{
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": "2020-01-23T21:08:14.317+00:00",
"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": {},
"twoJobs2020": false,
"voluntaryDeductions": [
{
"benefitType": "_Custom",
"deductionAmount": 0,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false,
"ytdAmount": 0
}
],
"w42020": false
},
"eic": 0,
"federal": 372.61,
"fica": 130.2,
"grossPay": 2100,
"localeTaxes": [],
"medicare": 30.45,
"netPay": 1510.04,
"state": 56.7,
"stateTaxTypes": [],
"taxPaidDetails": [
{
"amtPaid": 130.2,
"description": "Employer Social Security Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 2100,
"uTaxID": "00-000-0000-ER_FICA-000-Res-Comb"
},
{
"amtPaid": 30.45,
"description": "Employer Medicare Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 2100,
"uTaxID": "00-000-0000-ER_MEDI-000-Res-Comb"
},
{
"amtPaid": 130.2,
"description": "Social Security Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 2100,
"uTaxID": "00-000-0000-FICA-000-Res-Comb"
},
{
"amtPaid": 372.61,
"description": "Federal Income Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "REGULAR",
"subjectWages": 2100,
"uTaxID": "00-000-0000-FIT-000-Res-Reg"
},
{
"amtPaid": 30.45,
"description": "Medicare Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 2100,
"uTaxID": "00-000-0000-MEDI-000-Res-Comb"
},
{
"amtPaid": 0,
"description": "Additional Medicare",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 0,
"uTaxID": "00-000-0000-MEDI2-000-Res-Comb"
},
{
"amtPaid": 56.7,
"description": "Arizona State Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "04-000-9999",
"payType": "REGULAR",
"subjectWages": 2100,
"uTaxID": "04-000-0000-SIT-000-Res-Reg"
}
],
"timeStamp": 1763492700786,
"voluntaryDeductions": [
{
"name": "",
"value": "0.00"
}
]
}
}
]
}{
"content": "Error occurred calculating batch"
}{
"message": "No api key found"
}{
"message": "Invalid api key"
}{
"error": "Not Found",
"path": "/api/data/batch/badpath",
"status": 404,
"timestamp": 1641573466465
}{
"error": "Method Not Allowed",
"path": "/api/data/batch",
"status": 405,
"timestamp": 1641572607838
}POST’s multiple calculator calculations to the STE for async queue processing. Returns an array of calculation results with tax details and deductions.
POST
/
data
/
batch
Process batch calculator requests
curl --request POST \
--url https://calculators.symmetry.com/api/data/batch \
--header 'Content-Type: application/json' \
--header 'pcc-api-key: <api-key>' \
--data '
[
{
"calculator": {
"checkDate": 1464291711938,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"payFrequency": "WEEKLY",
"state": "AZ",
"stateInfo": {
"parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": false
}
]
},
"voluntaryDeductions": [
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": true,
"exemptFica": true,
"exemptLocal": true,
"exemptState": true
}
],
"w42020": false
},
"profileHash": ""
},
{
"calculator": {
"checkDate": 1579813694317,
"federalFilingStatusType": "SINGLE",
"grossPayType": "PAY_PER_PERIOD",
"payFrequency": "WEEKLY",
"rates": [
{
"hours": 70,
"payRate": 30
}
],
"state": "AZ"
},
"profileHash": ""
}
]
'import requests
url = "https://calculators.symmetry.com/api/data/batch"
payload = [
{
"calculator": {
"checkDate": 1464291711938,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"payFrequency": "WEEKLY",
"state": "AZ",
"stateInfo": { "parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": False
}
] },
"voluntaryDeductions": [
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": True,
"exemptFica": True,
"exemptLocal": True,
"exemptState": True
}
],
"w42020": False
},
"profileHash": ""
},
{
"calculator": {
"checkDate": 1579813694317,
"federalFilingStatusType": "SINGLE",
"grossPayType": "PAY_PER_PERIOD",
"payFrequency": "WEEKLY",
"rates": [
{
"hours": 70,
"payRate": 30
}
],
"state": "AZ"
},
"profileHash": ""
}
]
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: {
checkDate: 1464291711938,
federalAllowances: 0,
federalFilingStatusType: 'SINGLE',
grossPay: 52000,
grossPayType: 'ANNUALLY',
grossPayYTD: 0,
payFrequency: 'WEEKLY',
state: 'AZ',
stateInfo: {
parms: [{name: 'PERCENTSTATE', value: '2.7'}, {name: 'stateExemption', value: false}]
},
voluntaryDeductions: [
{
benefitType: '_401k',
deductionAmount: 2,
deductionMethodType: 'PERCENT_OF_GROSS',
deductionName: '401k',
exemptFederal: true,
exemptFica: true,
exemptLocal: true,
exemptState: true
}
],
w42020: false
},
profileHash: ''
},
{
calculator: {
checkDate: 1579813694317,
federalFilingStatusType: 'SINGLE',
grossPayType: 'PAY_PER_PERIOD',
payFrequency: 'WEEKLY',
rates: [{hours: 70, payRate: 30}],
state: 'AZ'
},
profileHash: ''
}
])
};
fetch('https://calculators.symmetry.com/api/data/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://calculators.symmetry.com/api/data/batch",
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' => [
'checkDate' => 1464291711938,
'federalAllowances' => 0,
'federalFilingStatusType' => 'SINGLE',
'grossPay' => 52000,
'grossPayType' => 'ANNUALLY',
'grossPayYTD' => 0,
'payFrequency' => 'WEEKLY',
'state' => 'AZ',
'stateInfo' => [
'parms' => [
[
'name' => 'PERCENTSTATE',
'value' => '2.7'
],
[
'name' => 'stateExemption',
'value' => false
]
]
],
'voluntaryDeductions' => [
[
'benefitType' => '_401k',
'deductionAmount' => 2,
'deductionMethodType' => 'PERCENT_OF_GROSS',
'deductionName' => '401k',
'exemptFederal' => true,
'exemptFica' => true,
'exemptLocal' => true,
'exemptState' => true
]
],
'w42020' => false
],
'profileHash' => ''
],
[
'calculator' => [
'checkDate' => 1579813694317,
'federalFilingStatusType' => 'SINGLE',
'grossPayType' => 'PAY_PER_PERIOD',
'payFrequency' => 'WEEKLY',
'rates' => [
[
'hours' => 70,
'payRate' => 30
]
],
'state' => 'AZ'
],
'profileHash' => ''
]
]),
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"
payload := strings.NewReader("[\n {\n \"calculator\": {\n \"checkDate\": 1464291711938,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"payFrequency\": \"WEEKLY\",\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 },\n \"voluntaryDeductions\": [\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 \"w42020\": false\n },\n \"profileHash\": \"\"\n },\n {\n \"calculator\": {\n \"checkDate\": 1579813694317,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"payFrequency\": \"WEEKLY\",\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"state\": \"AZ\"\n },\n \"profileHash\": \"\"\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")
.header("pcc-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n {\n \"calculator\": {\n \"checkDate\": 1464291711938,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"payFrequency\": \"WEEKLY\",\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 },\n \"voluntaryDeductions\": [\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 \"w42020\": false\n },\n \"profileHash\": \"\"\n },\n {\n \"calculator\": {\n \"checkDate\": 1579813694317,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"payFrequency\": \"WEEKLY\",\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"state\": \"AZ\"\n },\n \"profileHash\": \"\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://calculators.symmetry.com/api/data/batch")
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\": {\n \"checkDate\": 1464291711938,\n \"federalAllowances\": 0,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPay\": 52000,\n \"grossPayType\": \"ANNUALLY\",\n \"grossPayYTD\": 0,\n \"payFrequency\": \"WEEKLY\",\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 },\n \"voluntaryDeductions\": [\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 \"w42020\": false\n },\n \"profileHash\": \"\"\n },\n {\n \"calculator\": {\n \"checkDate\": 1579813694317,\n \"federalFilingStatusType\": \"SINGLE\",\n \"grossPayType\": \"PAY_PER_PERIOD\",\n \"payFrequency\": \"WEEKLY\",\n \"rates\": [\n {\n \"hours\": 70,\n \"payRate\": 30\n }\n ],\n \"state\": \"AZ\"\n },\n \"profileHash\": \"\"\n }\n]"
response = http.request(request)
puts response.read_body{
"_links": {
"self": {
"href": "https://calculators.symmetry.com/api/data/batch"
}
},
"content": [
{
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": "2016-05-26T19:41:51.938+00:00",
"deductions2020": 0,
"dependents2020": 0,
"exemptFederal": false,
"exemptFica": false,
"exemptMedicare": false,
"federalAllowances": 0,
"federalFilingStatusType": "SINGLE",
"federalFilingStatusType2020": "SINGLE",
"grossPay": 52000,
"grossPayType": "ANNUALLY",
"grossPayYTD": 0,
"otherIncome": null,
"otherIncome2020": 0,
"payFrequency": "WEEKLY",
"presetDeductions": null,
"presetImputed": null,
"print": null,
"roundFederalWithholding": false,
"state": "AZ",
"stateInfo": {
"parms": [
{
"name": "PERCENTSTATE",
"value": "2.7"
},
{
"name": "stateExemption",
"value": false
}
]
},
"twoJobs2020": false,
"voluntaryDeductions": [
{
"benefitType": "_401k",
"deductionAmount": 2,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "401k",
"exemptFederal": true,
"exemptFica": true,
"exemptLocal": true,
"exemptState": true,
"ytdAmount": null
}
],
"w42020": false
},
"eic": 0,
"federal": 152.86,
"fica": 62,
"grossPay": 1000,
"localeTaxes": [],
"medicare": 14.5,
"netPay": 724.18,
"state": 26.46,
"stateTaxTypes": [],
"taxPaidDetails": [
{
"amtPaid": 62,
"description": "Employer Social Security Tax",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 1000,
"uTaxID": "00-000-0000-ER_FICA-000-Res-Comb"
},
{
"amtPaid": 14.5,
"description": "Employer Medicare Tax",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 1000,
"uTaxID": "00-000-0000-ER_MEDI-000-Res-Comb"
},
{
"amtPaid": 62,
"description": "Social Security Tax",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 1000,
"uTaxID": "00-000-0000-FICA-000-Res-Comb"
},
{
"amtPaid": 152.86,
"description": "Federal Income Tax",
"grossSubjectWages": 980,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "REGULAR",
"subjectWages": 980,
"uTaxID": "00-000-0000-FIT-000-Res-Reg"
},
{
"amtPaid": 14.5,
"description": "Medicare Tax",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 1000,
"uTaxID": "00-000-0000-MEDI-000-Res-Comb"
},
{
"amtPaid": 0,
"description": "Additional Medicare",
"grossSubjectWages": 1000,
"grossWages": 1000,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 0,
"uTaxID": "00-000-0000-MEDI2-000-Res-Comb"
},
{
"amtPaid": 26.46,
"description": "Arizona State Tax",
"grossSubjectWages": 980,
"grossWages": 1000,
"locationCode": "04-000-9999",
"payType": "REGULAR",
"subjectWages": 980,
"uTaxID": "04-000-0000-SIT-000-Res-Reg"
}
],
"timeStamp": 1763492700787,
"voluntaryDeductions": [
{
"name": "401k",
"value": "20.00"
}
]
}
},
{
"profileHash": "",
"response": {
"calculator": {
"additionalFederalWithholding": 0,
"checkDate": "2020-01-23T21:08:14.317+00:00",
"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": {},
"twoJobs2020": false,
"voluntaryDeductions": [
{
"benefitType": "_Custom",
"deductionAmount": 0,
"deductionMethodType": "PERCENT_OF_GROSS",
"deductionName": "",
"exemptFederal": false,
"exemptFica": false,
"exemptLocal": false,
"exemptState": false,
"ytdAmount": 0
}
],
"w42020": false
},
"eic": 0,
"federal": 372.61,
"fica": 130.2,
"grossPay": 2100,
"localeTaxes": [],
"medicare": 30.45,
"netPay": 1510.04,
"state": 56.7,
"stateTaxTypes": [],
"taxPaidDetails": [
{
"amtPaid": 130.2,
"description": "Employer Social Security Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 2100,
"uTaxID": "00-000-0000-ER_FICA-000-Res-Comb"
},
{
"amtPaid": 30.45,
"description": "Employer Medicare Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 2100,
"uTaxID": "00-000-0000-ER_MEDI-000-Res-Comb"
},
{
"amtPaid": 130.2,
"description": "Social Security Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 2100,
"uTaxID": "00-000-0000-FICA-000-Res-Comb"
},
{
"amtPaid": 372.61,
"description": "Federal Income Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "REGULAR",
"subjectWages": 2100,
"uTaxID": "00-000-0000-FIT-000-Res-Reg"
},
{
"amtPaid": 30.45,
"description": "Medicare Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 2100,
"uTaxID": "00-000-0000-MEDI-000-Res-Comb"
},
{
"amtPaid": 0,
"description": "Additional Medicare",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "00-000-0000",
"payType": "COMBINED",
"subjectWages": 0,
"uTaxID": "00-000-0000-MEDI2-000-Res-Comb"
},
{
"amtPaid": 56.7,
"description": "Arizona State Tax",
"grossSubjectWages": 2100,
"grossWages": 2100,
"locationCode": "04-000-9999",
"payType": "REGULAR",
"subjectWages": 2100,
"uTaxID": "04-000-0000-SIT-000-Res-Reg"
}
],
"timeStamp": 1763492700786,
"voluntaryDeductions": [
{
"name": "",
"value": "0.00"
}
]
}
}
]
}{
"content": "Error occurred calculating batch"
}{
"message": "No api key found"
}{
"message": "Invalid api key"
}{
"error": "Not Found",
"path": "/api/data/batch/badpath",
"status": 404,
"timestamp": 1641573466465
}{
"error": "Method Not Allowed",
"path": "/api/data/batch",
"status": 405,
"timestamp": 1641572607838
}Authorizations
API key for CBS API authentication
Body
application/json
Array of calculator objects
The body is of type string.
Response
Batch calculations processed successfully
⌘I

