List payroll connections (client portal)
curl --request GET \
--url https://api.cx.stax.ai/cp/payroll/_list \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cx.stax.ai/cp/payroll/_list"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cx.stax.ai/cp/payroll/_list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cx.stax.ai/cp/payroll/_list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/cp/payroll/_list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cx.stax.ai/cp/payroll/_list")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/cp/payroll/_list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"connections": [
{
"_id": "<string>",
"active": true,
"assignee": "<string>",
"client": "<string>",
"client_name": "<string>",
"connect360": true,
"connected_by": "<string>",
"connection_id": "<string>",
"created_at": "<string>",
"credentials": "<string>",
"deleted_at": "<string>",
"departments": [
{
"name": "<string>",
"parent_name": "<string>"
}
],
"error": "<string>",
"finch_message": "<string>",
"finch_status": "pending",
"frequency": "<string>",
"integration": "finch",
"last_sync": "<string>",
"locations": [
{
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
}
],
"locked_at": "<string>",
"mapping": [
{
"ee_pre_tax": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"ee_roth": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_match": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_non_elective": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_qaca_match": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_safe_harbor_match": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_safe_harbor_non_elective": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"hpi_compensation": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"ignore": [
"<string>"
],
"loan_repayment": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"plan": "<string>",
"plan_compensation": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"prevailing_wage": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"statutory_compensation": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
]
}
],
"mapping_status": "<string>",
"message": "<string>",
"missing_mapping": true,
"pending_reports": 123,
"provider": "<string>",
"provider_information": {
"_id": "<string>",
"auth_method": "assisted",
"available_new_scopes": [
"company"
],
"available_reauth_scopes": [
"company"
],
"beta": true,
"color": "<string>",
"created_at": "<string>",
"docs_url": "<string>",
"enabled": true,
"icon": "<string>",
"is_assisted": true,
"logo": "<string>",
"manual": true,
"mfa_required": true,
"name": "<string>",
"provider": "<string>",
"remote_id": "<string>",
"updated_at": "<string>"
},
"provider_locations": [
{
"address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"code": "<string>",
"external_id": "<string>",
"name": "<string>"
}
],
"source": "<string>",
"status": "waiting_on_client",
"team": "<string>",
"team_name": "<string>",
"updated_at": "<string>"
}
],
"total": 123
}{}client-portal
List payroll connections (client portal)
List all payroll connections for the authenticated client with provider information. Supports filtering by status and provider type.
GET
/
cp
/
payroll
/
_list
List payroll connections (client portal)
curl --request GET \
--url https://api.cx.stax.ai/cp/payroll/_list \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cx.stax.ai/cp/payroll/_list"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cx.stax.ai/cp/payroll/_list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cx.stax.ai/cp/payroll/_list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/cp/payroll/_list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cx.stax.ai/cp/payroll/_list")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/cp/payroll/_list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"connections": [
{
"_id": "<string>",
"active": true,
"assignee": "<string>",
"client": "<string>",
"client_name": "<string>",
"connect360": true,
"connected_by": "<string>",
"connection_id": "<string>",
"created_at": "<string>",
"credentials": "<string>",
"deleted_at": "<string>",
"departments": [
{
"name": "<string>",
"parent_name": "<string>"
}
],
"error": "<string>",
"finch_message": "<string>",
"finch_status": "pending",
"frequency": "<string>",
"integration": "finch",
"last_sync": "<string>",
"locations": [
{
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
}
],
"locked_at": "<string>",
"mapping": [
{
"ee_pre_tax": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"ee_roth": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_match": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_non_elective": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_qaca_match": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_safe_harbor_match": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"er_safe_harbor_non_elective": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"hpi_compensation": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"ignore": [
"<string>"
],
"loan_repayment": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"plan": "<string>",
"plan_compensation": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"prevailing_wage": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
],
"statutory_compensation": [
{
"minus": true,
"name": "<string>",
"type": "<string>"
}
]
}
],
"mapping_status": "<string>",
"message": "<string>",
"missing_mapping": true,
"pending_reports": 123,
"provider": "<string>",
"provider_information": {
"_id": "<string>",
"auth_method": "assisted",
"available_new_scopes": [
"company"
],
"available_reauth_scopes": [
"company"
],
"beta": true,
"color": "<string>",
"created_at": "<string>",
"docs_url": "<string>",
"enabled": true,
"icon": "<string>",
"is_assisted": true,
"logo": "<string>",
"manual": true,
"mfa_required": true,
"name": "<string>",
"provider": "<string>",
"remote_id": "<string>",
"updated_at": "<string>"
},
"provider_locations": [
{
"address": {
"attn": "<string>",
"city": "<string>",
"country": "<string>",
"desc": "<string>",
"state": "<string>",
"street": "<string>",
"street2": "<string>",
"unit": "<string>",
"zip": "<string>"
},
"code": "<string>",
"external_id": "<string>",
"name": "<string>"
}
],
"source": "<string>",
"status": "waiting_on_client",
"team": "<string>",
"team_name": "<string>",
"updated_at": "<string>"
}
],
"total": 123
}{}