Get All Staffs
curl --request GET \
--url https://api.hit-pay.com/v1/staffs \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>'import requests
url = "https://api.hit-pay.com/v1/staffs"
headers = {"X-BUSINESS-API-KEY": "<x-business-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-BUSINESS-API-KEY': '<x-business-api-key>'}};
fetch('https://api.hit-pay.com/v1/staffs', 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.hit-pay.com/v1/staffs",
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-BUSINESS-API-KEY: <x-business-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.hit-pay.com/v1/staffs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-BUSINESS-API-KEY", "<x-business-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.hit-pay.com/v1/staffs")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/staffs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-BUSINESS-API-KEY"] = '<x-business-api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "98566f58-1c76-4b8b-8f75-d20bba2bc7f8",
"name": "TestingSG",
"role": {
"id": "93a00e56-c832-490e-b5b8-7f08149548c7",
"title": "Owner"
}
},
{
"id": "98888a24-d6b2-430d-9063-d2be76d443cd",
"name": "SG11",
"role": {
"id": "93a00e56-d9d8-46f7-aa41-da868820f899",
"title": "Manager"
}
},
{
"id": "98888a69-2d7a-4695-811d-6df8cee30264",
"name": "SG",
"role": {
"id": "93a00e56-d9d8-46f7-aa41-da868820f899",
"title": "Manager"
}
},
{
"id": "98888a7a-8d02-48bd-ba00-9ea91ad30ecb",
"name": "Cashier 01",
"role": {
"id": "93a00e56-dbea-4387-8972-e04777d9afce",
"title": "Cashier"
}
},
{
"id": "98889105-0aa7-4480-989c-41f38172b4e6",
"name": "Cashier 02",
"role": {
"id": "93a00e56-dbea-4387-8972-e04777d9afce",
"title": "Cashier"
}
},
{
"id": "9888918e-246b-44c6-a602-d8bcfd726345",
"name": "Admin 01",
"role": {
"id": "93a00e56-d68c-4025-9cea-2b08cd50572e",
"title": "Admin"
}
},
{
"id": "9bf2c210-9516-4525-9a8f-52cb671e7b02",
"name": "Manager 01",
"role": {
"id": "93a00e56-d9d8-46f7-aa41-da868820f899",
"title": "Manager"
}
}
]Staffs
List Staff
List all staff members in your account
GET
/
v1
/
staffs
Get All Staffs
curl --request GET \
--url https://api.hit-pay.com/v1/staffs \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>'import requests
url = "https://api.hit-pay.com/v1/staffs"
headers = {"X-BUSINESS-API-KEY": "<x-business-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-BUSINESS-API-KEY': '<x-business-api-key>'}};
fetch('https://api.hit-pay.com/v1/staffs', 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.hit-pay.com/v1/staffs",
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-BUSINESS-API-KEY: <x-business-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.hit-pay.com/v1/staffs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-BUSINESS-API-KEY", "<x-business-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.hit-pay.com/v1/staffs")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/staffs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-BUSINESS-API-KEY"] = '<x-business-api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "98566f58-1c76-4b8b-8f75-d20bba2bc7f8",
"name": "TestingSG",
"role": {
"id": "93a00e56-c832-490e-b5b8-7f08149548c7",
"title": "Owner"
}
},
{
"id": "98888a24-d6b2-430d-9063-d2be76d443cd",
"name": "SG11",
"role": {
"id": "93a00e56-d9d8-46f7-aa41-da868820f899",
"title": "Manager"
}
},
{
"id": "98888a69-2d7a-4695-811d-6df8cee30264",
"name": "SG",
"role": {
"id": "93a00e56-d9d8-46f7-aa41-da868820f899",
"title": "Manager"
}
},
{
"id": "98888a7a-8d02-48bd-ba00-9ea91ad30ecb",
"name": "Cashier 01",
"role": {
"id": "93a00e56-dbea-4387-8972-e04777d9afce",
"title": "Cashier"
}
},
{
"id": "98889105-0aa7-4480-989c-41f38172b4e6",
"name": "Cashier 02",
"role": {
"id": "93a00e56-dbea-4387-8972-e04777d9afce",
"title": "Cashier"
}
},
{
"id": "9888918e-246b-44c6-a602-d8bcfd726345",
"name": "Admin 01",
"role": {
"id": "93a00e56-d68c-4025-9cea-2b08cd50572e",
"title": "Admin"
}
},
{
"id": "9bf2c210-9516-4525-9a8f-52cb671e7b02",
"name": "Manager 01",
"role": {
"id": "93a00e56-d9d8-46f7-aa41-da868820f899",
"title": "Manager"
}
}
]Last modified on February 25, 2026
Was this page helpful?
⌘I