List customers/councils
curl --request POST \
--url 'https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'nonce=<string>' \
--data action=sagescreen_get_sales_customersimport requests
url = "https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers"
payload = {
"nonce": "<string>",
"action": "sagescreen_get_sales_customers"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({nonce: '<string>', action: 'sagescreen_get_sales_customers'})
};
fetch('https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers', 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://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "nonce=%3Cstring%3E&action=sagescreen_get_sales_customers",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$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://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers"
payload := strings.NewReader("nonce=%3Cstring%3E&action=sagescreen_get_sales_customers")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("nonce=%3Cstring%3E&action=sagescreen_get_sales_customers")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "nonce=%3Cstring%3E&action=sagescreen_get_sales_customers"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": 312,
"name": "Greenville City Council",
"contact_name": "Bob Johnson",
"contact_email": "bob@greenville.gov",
"status": "Active",
"status_raw": "active",
"date_created": "Jan 5, 2026 10:00 AM"
},
{
"id": 280,
"name": "Riverside County",
"contact_name": "",
"contact_email": "",
"status": "Paused",
"status_raw": "paused",
"date_created": "Dec 12, 2025 3:30 PM"
}
]
}{
"success": false,
"data": {
"message": "You do not have permission to perform this action"
}
}Deal AJAX
List customers/councils
Returns councils (customers) visible to the current sales user. Non-admins
see only councils where they are the assigned sales_user_id. Admins see
all councils. Sorted alphabetically by title.
Nonce: sagescreen_frontend_nonce
Capability: ss_sales or ss_sales_admin or ss_admin_all
POST
/
wp-admin
/
admin-ajax.php?action=sagescreen_get_sales_customers
List customers/councils
curl --request POST \
--url 'https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'nonce=<string>' \
--data action=sagescreen_get_sales_customersimport requests
url = "https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers"
payload = {
"nonce": "<string>",
"action": "sagescreen_get_sales_customers"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({nonce: '<string>', action: 'sagescreen_get_sales_customers'})
};
fetch('https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers', 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://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "nonce=%3Cstring%3E&action=sagescreen_get_sales_customers",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$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://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers"
payload := strings.NewReader("nonce=%3Cstring%3E&action=sagescreen_get_sales_customers")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("nonce=%3Cstring%3E&action=sagescreen_get_sales_customers")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_sales_customers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "nonce=%3Cstring%3E&action=sagescreen_get_sales_customers"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": 312,
"name": "Greenville City Council",
"contact_name": "Bob Johnson",
"contact_email": "bob@greenville.gov",
"status": "Active",
"status_raw": "active",
"date_created": "Jan 5, 2026 10:00 AM"
},
{
"id": 280,
"name": "Riverside County",
"contact_name": "",
"contact_email": "",
"status": "Paused",
"status_raw": "paused",
"date_created": "Dec 12, 2025 3:30 PM"
}
]
}{
"success": false,
"data": {
"message": "You do not have permission to perform this action"
}
}Authorizations
WordPress AJAX nonce — either sagescreen_frontend_nonce or
sagescreen_sales_calc depending on the endpoint (see each endpoint
description). Sent as a form field in the POST body.
Body
application/x-www-form-urlencoded
⌘I