Commerce
Cashiers and POS Staff
Manage staff access data used by NeroPOS and terminal workflows.
CashiersPOS staffRoles
Cashiers and POS staff
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /pos-staffs | List POS staff. |
| POST | /pos-staffs | Create POS staff. |
| PATCH | /pos-staffs/{id} | Update staff where enabled. |
| DELETE | /pos-staffs/{id} | Remove staff where enabled. |
| GET | /cashiers | List cashiers where enabled. |
| POST | /cashiers | Create cashier where enabled. |
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Staff member display name. |
email | email string | Optional | Staff email address. |
pin | string | Optional | Staff PIN where your POS workflow supports it. |
role | string | Optional | Role such as cashier, manager or staff. |
is_active | boolean/integer | Optional | Whether staff member is active. |
'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $secretKey,
'Accept: application/json',
'Content-Type: application/json',
'X-NeroPay-Timestamp: ' . $timestamp,
'X-NeroPay-Signature: ' . $signature,
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => $rawBody,
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $response;
{
"success": true,
"data": {
"id": 1201,
"name": "Alex Cashier",
"email": "alex@example.com",
"role": "cashier",
"is_active": 1
}
}
true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $secretKey,
'Accept: application/json',
],
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $response;
{
"success": true,
"data": [
{
"id": 1201,
"name": "Alex Cashier",
"role": "cashier",
"is_active": 1
}
]
}