{"info":{"_postman_id":"5569459d-2d51-4bd3-b4a4-7d3faa5a767b","name":"Panther API documentation","description":"<html><head></head><body><h1 id=\"panther-api-documentation\">Panther API documentation</h1>\n<p>The Panther API lets your own systems read and update data in your Panther system: general, employees, clients, shifts, expenses, pay, webhooks. Every call goes to one endpoint and uses JSON.</p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p><code>POST https://your-tenant.example.com/api</code> with the header <code>Content-Type: application/json</code>.</p>\n<p>Every service, including the ones that only fetch data, is called with <strong>POST</strong> and a JSON body. The service you want is named in the request header.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>Your Panther administrator creates an API key on the Configuration screen. Each key has a <strong>public key</strong>, a <strong>secret key</strong> and a list of <strong>allowed IP addresses</strong> (or <code>ANY</code>). Requests from any other IP address are refused.</p>\n<p>With every request you send:</p>\n<ul>\n<li><code>public_key</code>: your public key.</li>\n<li><code>timestamp</code>: the current Unix time in seconds. It must be within 5 minutes of the server's clock.</li>\n<li><code>hash</code>: the SHA-512 hash, in lower-case hex, of the timestamp followed directly by your secret key, i.e. <code>sha512(timestamp + secret_key)</code>.</li>\n<li><code>email</code>: the email address of a Panther user who is active and has API access switched on, and whose role and agency allow API requests.</li>\n</ul>\n<p>Never send the secret key itself.</p>\n<p>JavaScript (this collection already does this for you in its pre-request script):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const timestamp = Math.floor(Date.now() / 1000).toString();\nconst hash = CryptoJS.SHA512(timestamp + secretKey).toString(CryptoJS.enc.Hex);\n</code></pre>\n<p>PHP:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">$timestamp = time();\n$hash = hash('sha512', $timestamp . $secretKey);\n</code></pre>\n<p>No more than <strong>5 requests per tenant</strong> can run at the same time. Further requests get HTTP 429 and <code>API Rate Limit Exceeded: Maximum of 5 concurrent API calls allowed per tenant.</code></p>\n<h2 id=\"request-format\">Request format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"1795777200\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"&lt;sha512 of timestamp + secret key&gt;\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployees\"\n    },\n    \"body\": []\n}\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>No</td>\n<td>Your own reference for the message (up to 30 characters). It is returned in the response.</td>\n</tr>\n<tr>\n<td><code>timestamp</code></td>\n<td>Yes</td>\n<td>Current Unix time in seconds.</td>\n</tr>\n<tr>\n<td><code>public_key</code></td>\n<td>Yes</td>\n<td>Your public key.</td>\n</tr>\n<tr>\n<td><code>hash</code></td>\n<td>Yes</td>\n<td><code>sha512(timestamp + secret_key)</code> in hex.</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>Yes</td>\n<td>Email address of the API user.</td>\n</tr>\n<tr>\n<td><code>service</code></td>\n<td>Yes</td>\n<td>The service to run, e.g. <code>fetchEmployees</code>.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>No</td>\n<td><code>terse</code> (default) or <code>verbose</code>. Some fetch services return more columns with <code>verbose</code>.</td>\n</tr>\n<tr>\n<td><code>includeFKData</code></td>\n<td>No</td>\n<td><code>on</code> or <code>off</code> (default). With <code>on</code>, some fetch services add the linked records' details.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>No</td>\n<td>Comma-separated list of columns to sort by, e.g. <code>pre_surname,pre_forename</code>.</td>\n</tr>\n<tr>\n<td><code>offset</code>, <code>maxrows</code></td>\n<td>No</td>\n<td>Pagination for fetch services. See below.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Service-specific fields go in the <code>header</code> too (for fetch filters) or in <code>body</code> (for records to add, update or delete). Add and update services take <code>body</code> as an <strong>array of row objects</strong>, so you can send several records in one call. Field names are the Panther column names shown in each service's description.</p>\n<h2 id=\"responses\">Responses</h2>\n<p>A successful request returns the request header (without <code>public_key</code>, <code>hash</code> and <code>email</code>) with <code>\"response\": \"SUCCESS\"</code>, and the results in <code>body</code>:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchEmployees\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}\n</code></pre>\n<h2 id=\"errors\">Errors</h2>\n<p>If anything goes wrong, <code>response</code> is <code>EXCEPTION</code> and <code>exceptionmessage</code> explains why. There is no <code>body</code>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"response\": \"EXCEPTION\",\n        \"exceptionmessage\": \"Authentication Error: 'hash' is not correct\"\n    }\n}\n</code></pre>\n<p>Most errors come back with HTTP status 200, so always check <code>header.response</code>. Common messages:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Message</th>\n<th>What to check</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>The JSON message is either empty or null</code> / <code>... Syntax error, malformed JSON</code></td>\n<td>The request body.</td>\n</tr>\n<tr>\n<td><code>The 'header' section is missing</code></td>\n<td>The JSON must have a <code>header</code> object.</td>\n</tr>\n<tr>\n<td><code>'timestamp' must be supplied</code> (also <code>public_key</code>, <code>hash</code>, <code>email</code>, <code>service</code>)</td>\n<td>A required header field is missing.</td>\n</tr>\n<tr>\n<td><code>Authentication Error: 'public_key' is not recognised or no longer active.</code></td>\n<td>The key, or whether it has been switched off.</td>\n</tr>\n<tr>\n<td><code>Authentication Error: IP Address: 203.0.113.10</code></td>\n<td>Add your IP address to the key's allowed IP addresses.</td>\n</tr>\n<tr>\n<td><code>Authentication Error: 'hash' is not correct</code></td>\n<td>The secret key and the hash calculation.</td>\n</tr>\n<tr>\n<td><code>Authentication Error: 'timestamp' must be the current Unix time in seconds</code></td>\n<td>Your server clock (allowed drift is 5 minutes).</td>\n</tr>\n<tr>\n<td><code>Authentication Error: Email</code></td>\n<td>The email must belong to a Panther user.</td>\n</tr>\n<tr>\n<td><code>Authentication Error: User is not currently activated</code> / <code>User cannot accept API requests</code></td>\n<td>Switch the user on, and switch on API access for them.</td>\n</tr>\n<tr>\n<td><code>Authentication Error: User's role or agency does not allow API requests</code></td>\n<td>The user's role or agency settings.</td>\n</tr>\n<tr>\n<td><code>Unknown Service: x</code></td>\n<td>The service name (it is case-sensitive).</td>\n</tr>\n<tr>\n<td><code>Unknown field: 'x'</code></td>\n<td>A field in <code>body</code> that the record doesn't have.</td>\n</tr>\n<tr>\n<td><code>Illegal action: It is not possible to update the field 'x'</code></td>\n<td>Read-only fields such as created/updated dates.</td>\n</tr>\n<tr>\n<td><code>The request could not be completed because of a database error.</code></td>\n<td>Database errors are not passed on in detail. Check your values, and quote the message to support if it persists.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"pagination-and-sorting\">Pagination and sorting</h2>\n<p>Fetch services that say <em>Paginated: yes</em> accept <code>offset</code> and <code>maxrows</code> in the header. Without them, a fetch returns at most 500 records, and <code>maxrows</code> above that is capped. There is no total count, so to read 100 records at a time, send <code>offset</code> 0 and <code>maxrows</code> 100, then <code>offset</code> 100, 200 and so on until fewer than 100 records come back. The response header repeats <code>offset</code> and <code>maxrows</code>. Keep <code>orderby</code> the same while you page; if you change it, start again from <code>offset</code> 0.</p>\n<p>\"Fetch updated\" services return only records changed since the date and time you give, so you can keep another system in step without re-reading everything.</p>\n<h2 id=\"using-this-collection\">Using this collection</h2>\n<p>The collection uses these variables. Set them in a Postman environment rather than in the collection, and mark <code>secret_key</code> as a secret:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Example</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>tenant</code></td>\n<td><code>your-tenant</code></td>\n<td>Your system's name, used to build <code>host</code>.</td>\n</tr>\n<tr>\n<td><code>host</code></td>\n<td><code>your-tenant.example.com</code></td>\n<td>The address of your Panther system, without <code>https://</code>.</td>\n</tr>\n<tr>\n<td><code>base_url</code></td>\n<td><code>https://your-tenant.example.com</code></td>\n<td>Built from <code>host</code>.</td>\n</tr>\n<tr>\n<td><code>public_key</code></td>\n<td><code>pk_0000example0000public0000key0</code></td>\n<td>Your public key.</td>\n</tr>\n<tr>\n<td><code>secret_key</code></td>\n<td><code>sk_0000example0000secret0000key0</code></td>\n<td>Your secret key.</td>\n</tr>\n<tr>\n<td><code>api_email</code></td>\n<td><code>api.user@example.com</code></td>\n<td>The email of your API user.</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>timestamp</code> and <code>hash</code> are worked out for each request by the collection's pre-request script. All names, IDs and values in the examples are made up.</p>\n<p>Services and fields can depend on how your system is configured. Where that applies, each service's description says which setting it depends on.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Panther API documentation","slug":"panther-api-documentation"}],"owner":"48712714","collectionId":"5569459d-2d51-4bd3-b4a4-7d3faa5a767b","publishedId":"2sBYPwYs7N","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"6E43DF"},"publishDate":"2026-12-02T22:10:03.000Z"},"item":[{"name":"General","item":[{"name":"Fetch Agencies","id":"295c5b3a-a8d1-49f2-bad1-f320501b77ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAgencies\",\n        \"orderby\": \"sbag_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's agencies, sorted by <code>sbag_name</code> unless you send <code>orderby</code>. Send <code>sbag_id</code> in the header to fetch one record; an error is returned if it does not exist. <code>sbag_own</code> is <code>on</code> for your own agency. If your system shows agencies (<strong>Show Agencies</strong> on the Configuration screen), API users must belong to your own agency.</p>\n<p><strong>Service:</strong> <code>fetchAgencies</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbag_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbag_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbag_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>sbag_name</code></td>\n<td>varchar(40)</td>\n<td>Agency name</td>\n</tr>\n<tr>\n<td><code>sbag_short</code></td>\n<td>varchar</td>\n<td>Short name or prefix.</td>\n</tr>\n<tr>\n<td><code>sbag_own</code></td>\n<td>enum('on','off')</td>\n<td>on = your own agency.</td>\n</tr>\n<tr>\n<td><code>sbag_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbag_created</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbag_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Agencies (Configuration)</strong>: When on, only users who belong to your own agency (sbag_own = on) can use the API. It does not change what this service returns.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Agency with Panther Id '&lt;sbag_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"8a5549c0-f93f-4cc3-a92c-d42962042633","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAgencies\",\n        \"orderby\": \"sbag_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchAgencies\",\n        \"orderby\": \"sbag_name\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbag_id\": 1,\n            \"sbag_name\": \"Example Staffing\",\n            \"sbag_short\": \"EXS\",\n            \"sbag_own\": \"on\",\n            \"sbag_active\": \"on\",\n            \"sbag_created\": \"2026-01-05 09:00:00\",\n            \"sbag_updated\": \"2026-01-05 09:00:00\"\n        },\n        {\n            \"sbag_id\": 2,\n            \"sbag_name\": \"Sample Supply Ltd\",\n            \"sbag_short\": \"SSL\",\n            \"sbag_own\": \"off\",\n            \"sbag_active\": \"on\",\n            \"sbag_created\": \"2026-01-06 09:00:00\",\n            \"sbag_updated\": \"2026-02-01 10:00:00\"\n        }\n    ]\n}"}],"_postman_id":"295c5b3a-a8d1-49f2-bad1-f320501b77ba"},{"name":"Fetch Branches","id":"94348b27-faae-4f3b-919d-5c17cfdcfe62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchBranches\",\n        \"orderby\": \"sbbr_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's branches, sorted by <code>sbbr_name</code> unless you send <code>orderby</code>. Send <code>sbbr_id</code> in the header to fetch one record; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchBranches</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbbr_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbbr_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbbr_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>sbbr_name</code></td>\n<td>varchar(40)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbbr_code</code></td>\n<td>varchar(30)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbbr_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbbr_created</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbbr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Branch with Panther Id '&lt;sbbr_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"f3c119d1-e564-4317-b2e5-68967ecd452a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchBranches\",\n        \"orderby\": \"sbbr_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchBranches\",\n        \"orderby\": \"sbbr_name\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbbr_id\": 4,\n            \"sbbr_name\": \"Exampleton\",\n            \"sbbr_code\": \"EXM\",\n            \"sbbr_active\": \"on\",\n            \"sbbr_created\": \"2026-01-05 09:00:00\",\n            \"sbbr_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"94348b27-faae-4f3b-919d-5c17cfdcfe62"},{"name":"Fetch Shift Patterns","id":"a6cb874a-4830-4503-8a12-930a76037ef8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchShiftPatterns\",\n        \"orderby\": \"sbs_desc\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's shift patterns, sorted by <code>sbs_desc</code> unless you send <code>orderby</code>. Send <code>sbs_id</code> in the header to fetch one record; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchShiftPatterns</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbs_desc</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>sbs_desc</code></td>\n<td>varchar(60)</td>\n<td>Description.</td>\n</tr>\n<tr>\n<td><code>sbs_bank_hr</code></td>\n<td>enum('SBHR','DMBHR')</td>\n<td>Bank holiday rate handling.</td>\n</tr>\n<tr>\n<td><code>sbs_fixed_sleeper_tb</code></td>\n<td>enum('on','off')</td>\n<td>Fixed sleeper rates.</td>\n</tr>\n<tr>\n<td><code>sbs_sleeper_tb</code></td>\n<td>enum('on','off')</td>\n<td>Show on sleeper time brackets.</td>\n</tr>\n<tr>\n<td><code>sbs_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbs_created</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbs_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Shift Pattern with Panther Id '&lt;sbs_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"a97b04bf-ef5b-4c5e-91c5-4e52451c76b1","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchShiftPatterns\",\n        \"orderby\": \"sbs_desc\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchShiftPatterns\",\n        \"orderby\": \"sbs_desc\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbs_id\": 1,\n            \"sbs_desc\": \"Standard Pattern\",\n            \"sbs_bank_hr\": \"SBHR\",\n            \"sbs_fixed_sleeper_tb\": \"off\",\n            \"sbs_sleeper_tb\": \"off\",\n            \"sbs_active\": \"on\",\n            \"sbs_created\": \"2026-01-05 09:00:00\",\n            \"sbs_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"a6cb874a-4830-4503-8a12-930a76037ef8"},{"name":"Fetch Divisions","id":"b423f56e-3e3b-40ac-91bc-237635610d17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchDivisions\",\n        \"orderby\": \"sbdi_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's divisions, sorted by <code>sbdi_name</code> unless you send <code>orderby</code>. Send <code>sbdi_id</code> in the header to fetch one record; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchDivisions</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbdi_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>sbdi_parent_id</code></td>\n<td>int|null</td>\n<td>Parent division id, or null.</td>\n</tr>\n<tr>\n<td><code>sbdi_name</code></td>\n<td>varchar(40)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbdi_shortname</code></td>\n<td>varchar(20)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbdi_option</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbdi_option_value</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbdi_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbdi_created</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbdi_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Division with Panther Id '&lt;sbdi_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"51fca5ea-9bf0-424b-a78c-d29ce4ff3b2d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchDivisions\",\n        \"orderby\": \"sbdi_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchDivisions\",\n        \"orderby\": \"sbdi_name\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbdi_id\": 1,\n            \"sbdi_parent_id\": null,\n            \"sbdi_name\": \"North\",\n            \"sbdi_shortname\": \"N\",\n            \"sbdi_option\": \"\",\n            \"sbdi_option_value\": \"\",\n            \"sbdi_active\": \"on\",\n            \"sbdi_created\": \"2026-01-05 09:00:00\",\n            \"sbdi_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"b423f56e-3e3b-40ac-91bc-237635610d17"},{"name":"Fetch Teams","id":"53ecf960-235a-4c2a-bb13-f73fdf3727b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchTeams\",\n        \"orderby\": \"sbte_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's teams, sorted by <code>sbte_name</code> unless you send <code>orderby</code>. Send <code>sbte_id</code> in the header to fetch one record; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchTeams</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbte_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbte_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbte_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>sbte_name</code></td>\n<td>varchar(60)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbte_code</code></td>\n<td>varchar(30)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbte_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbte_created</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbte_created_syu_id</code></td>\n<td>int</td>\n<td>User who created the team.</td>\n</tr>\n<tr>\n<td><code>sbte_updated</code></td>\n<td>timestamp</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>Division the team belongs to.</td>\n</tr>\n<tr>\n<td><code>syu_id_manager</code></td>\n<td>int</td>\n<td>Manager user</td>\n</tr>\n<tr>\n<td><code>syu_id_director</code></td>\n<td>int</td>\n<td>Director user</td>\n</tr>\n<tr>\n<td><code>sbete_id</code></td>\n<td>int|null</td>\n<td>External team id, or null.</td>\n</tr>\n<tr>\n<td><code>sbter_id</code></td>\n<td>int|null</td>\n<td>Team region id, or null.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Team with Panther Id '&lt;sbte_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"8a9b40ea-de6e-43de-8df3-00536d77d7e7","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchTeams\",\n        \"orderby\": \"sbte_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchTeams\",\n        \"orderby\": \"sbte_name\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbte_id\": 2,\n            \"sbte_name\": \"Team A\",\n            \"sbte_code\": \"TA\",\n            \"sbte_active\": \"on\",\n            \"sbte_created\": \"2026-01-05 09:00:00\",\n            \"sbte_created_syu_id\": 5,\n            \"sbte_updated\": \"2026-01-05 09:00:00\",\n            \"sbdi_id\": 1,\n            \"syu_id_manager\": 6,\n            \"syu_id_director\": 7,\n            \"sbete_id\": null,\n            \"sbter_id\": null\n        }\n    ]\n}"}],"_postman_id":"53ecf960-235a-4c2a-bb13-f73fdf3727b7"},{"name":"Fetch Users","id":"e1145922-3db3-40d6-a2e8-ebdfd992239a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUsers\",\n        \"usertype\": \"consultant\",\n        \"datalevel\": \"verbose\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 20\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's internal users. <code>datalevel: terse</code> (default) gives id, full name, active flag and <code>ext_id</code>; <code>verbose</code> gives the profile and permission fields. With <code>includeFKData: on</code> each row has an <code>FKData</code> object (<code>sbag_name</code>, <code>syu_resr_sbbr_name</code>, <code>syu_cons_sbbr_name</code>). Passwords, signatures and reset codes are never returned.</p>\n<p><code>usertype</code> narrows the list:</p>\n<ul>\n<li><code>all</code> (default): every user.</li>\n<li><code>resourcer</code>: users whose role is a booking user.</li>\n<li><code>consultant</code>: users whose role is a consultant (resourcer) user.</li>\n<li><code>director</code>, <code>manager</code> and <code>owner</code>: users with the director flag (<code>syu_director</code> = on).</li>\n<li><code>payroll</code>, <code>callcentre</code> and <code>timesheetauthoriser</code>: accepted, but no filter is applied (every user is returned).</li>\n</ul>\n<p>There is no <code>ext_id</code> filter: to find a user by <code>ext_id</code>, filter the results yourself.</p>\n<p><strong>Service:</strong> <code>fetchUsers</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>usertype</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>all</code></td>\n<td><code>all</code>, <code>resourcer</code>, <code>consultant</code>, <code>payroll</code>, <code>callcentre</code>, <code>timesheetauthoriser</code>, <code>director</code>, <code>manager</code>, <code>owner</code></td>\n<td>See the description for what each value returns.</td>\n</tr>\n<tr>\n<td><code>syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one user.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>includeFKData</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>on adds an FKData object with the names of linked records.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>syu_fullname</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>syu_id</code></td>\n<td>int</td>\n<td>terse and verbose.</td>\n</tr>\n<tr>\n<td><code>syu_fullname</code></td>\n<td>string</td>\n<td>terse and verbose; first name and surname.</td>\n</tr>\n<tr>\n<td><code>syu_active</code></td>\n<td>enum('on','off')</td>\n<td>terse and verbose.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>terse and verbose.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>With includeFKData = on: sbag_name, syu_resr_sbbr_name, syu_cons_sbbr_name.</td>\n</tr>\n<tr>\n<td><code>verbose fields</code></td>\n<td>various</td>\n<td>syu_id, sbag_id, syu_firstname, syu_surname, syu_profile_picture_path, syu_email, syu_phone, syu_mobile, syu_daterequested, syu_username, syrol_id, syu_messaging, the syu_cando_mess_* flags and *_recipients_limit values, syu_active, syu_lastused, syu_title, address fields, syu_initials, syu_job_title, syu_dutygroup_access, syu_team_access, syu_manager, syu_director, syu_resr_sbbr_id, syu_cons_sbbr_id, syu_sharedhotlist_limit, syu_created, syu_updated, syu_last_login, syu_can_api, syu_outlook_integration_enabled, ext_id, syu_avail_display_mode, syu_phone_prefix, syu_mobile_prefix, syu_task_management_can_assign_all_users, plus syu_shift_resourcer and syu_shift_consultant (worked out from the role).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Booking user and consultant settings on each role (Roles)</strong>: Decide which users usertype resourcer and consultant return, and the values of syu_shift_resourcer and syu_shift_consultant.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'usertype' must be in this list: [\"all\",\"resourcer\",\"consultant\",\"payroll\",\"callcentre\",\"timesheetauthoriser\",\"director\",\"manager\",\"owner\"]</code></li>\n<li><code>User with Panther Id '&lt;syu_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"23f33a59-e492-45f4-8af4-972cbb1f6ba4","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUsers\",\n        \"usertype\": \"consultant\",\n        \"datalevel\": \"verbose\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 20\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUsers\",\n        \"usertype\": \"consultant\",\n        \"datalevel\": \"verbose\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 20,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"syu_id\": 5,\n            \"sbag_id\": 1,\n            \"syu_firstname\": \"Sam\",\n            \"syu_surname\": \"Sample\",\n            \"syu_profile_picture_path\": null,\n            \"syu_email\": \"sam.sample@example.com\",\n            \"syu_phone\": \"07700 900301\",\n            \"syu_mobile\": \"07700 900302\",\n            \"syu_daterequested\": 0,\n            \"syu_username\": \"ssample\",\n            \"syrol_id\": 2,\n            \"syu_messaging\": \"on\",\n            \"syu_cando_mess_text\": \"on\",\n            \"syu_mess_text_recipients_limit\": 0,\n            \"syu_cando_mess_email\": \"on\",\n            \"syu_mess_email_recipients_limit\": 0,\n            \"syu_cando_mess_client_conf_email\": \"on\",\n            \"syu_mess_client_conf_email_recipients_limit\": 0,\n            \"syu_cando_mess_cand_conf_email\": \"on\",\n            \"syu_mess_cand_conf_email_recipients_limit\": 0,\n            \"syu_active\": \"on\",\n            \"syu_lastused\": \"2026-03-02 08:59:00\",\n            \"syu_title\": \"Ms\",\n            \"syu_address1\": \"1 Sample Street\",\n            \"syu_address2\": \"\",\n            \"syu_town\": \"Exampleton\",\n            \"syu_county\": \"Sampleshire\",\n            \"syu_postcode\": \"AB1 2CD\",\n            \"syu_country\": \"United Kingdom\",\n            \"syu_initials\": \"SS\",\n            \"syu_job_title\": \"Consultant\",\n            \"syu_dutygroup_access\": \"All\",\n            \"syu_team_access\": \"All\",\n            \"syu_manager\": \"off\",\n            \"syu_director\": \"off\",\n            \"syu_resr_sbbr_id\": 4,\n            \"syu_cons_sbbr_id\": 4,\n            \"syu_sharedhotlist_limit\": 0,\n            \"syu_created\": \"2026-01-05 09:00:00\",\n            \"syu_updated\": \"2026-03-01 17:00:00\",\n            \"syu_last_login\": \"2026-03-02 08:58:00\",\n            \"syu_can_api\": \"off\",\n            \"syu_outlook_integration_enabled\": 0,\n            \"ext_id\": \"\",\n            \"syu_avail_display_mode\": \"\",\n            \"syu_phone_prefix\": \"+44\",\n            \"syu_mobile_prefix\": \"+44\",\n            \"syu_task_management_can_assign_all_users\": 0,\n            \"syu_fullname\": \"Sam Sample\",\n            \"syu_shift_resourcer\": \"off\",\n            \"syu_shift_consultant\": \"on\",\n            \"FKData\": {\n                \"sbag_name\": \"Example Staffing\",\n                \"syu_resr_sbbr_name\": \"Exampleton\",\n                \"syu_cons_sbbr_name\": \"Exampleton\"\n            }\n        }\n    ]\n}"}],"_postman_id":"e1145922-3db3-40d6-a2e8-ebdfd992239a"},{"name":"Fetch Regions","id":"49cffde2-a9b6-44e3-af04-d5e79bb68fc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRegions\",\n        \"orderby\": \"syr_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's regions, sorted by <code>syr_name</code> unless you send <code>orderby</code>. Send <code>syr_id</code> in the header to fetch one record; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchRegions</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>syr_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>syr_name</code></td>\n<td>varchar(100)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>syr_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>syr_created</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>syr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Region with Panther Id '&lt;syr_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"d6434292-4869-4c66-9e6f-020aea871013","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRegions\",\n        \"orderby\": \"syr_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchRegions\",\n        \"orderby\": \"syr_name\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"syr_id\": 1,\n            \"syr_name\": \"London\",\n            \"syr_active\": \"on\",\n            \"syr_created\": \"2026-01-05 09:00:00\",\n            \"syr_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"49cffde2-a9b6-44e3-af04-d5e79bb68fc6"},{"name":"Fetch Master Routes","id":"9db5eaaf-cf11-4136-92f6-b97964f63c1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchMasterRoutes\",\n        \"orderby\": \"sbrt_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's master routes, sorted by <code>sbrt_name</code> unless you send <code>orderby</code>. Send <code>sbrt_id</code> in the header to fetch one record; an error is returned if it does not exist. Fetch Depots is another name for this service. The not-found message says 'Depot' rather than 'Master Route'.</p>\n<p><strong>Service:</strong> <code>fetchMasterRoutes</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbrt_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>sbrt_code</code></td>\n<td>varchar(40)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrt_name</code></td>\n<td>varchar(60)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrt_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrt_created</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrt_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Depot with Panther Id '&lt;sbrt_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"32e48a49-a242-42dc-ad51-e96d8e83c55e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchMasterRoutes\",\n        \"orderby\": \"sbrt_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchMasterRoutes\",\n        \"orderby\": \"sbrt_name\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbrt_id\": 1,\n            \"sbrt_code\": \"R001\",\n            \"sbrt_name\": \"Route 1\",\n            \"sbrt_active\": \"on\",\n            \"sbrt_created\": \"2026-01-05 09:00:00\",\n            \"sbrt_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"9db5eaaf-cf11-4136-92f6-b97964f63c1c"},{"name":"Fetch Depots","id":"6b5f128e-e322-43b1-8da8-5bda450cf2bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchDepots\",\n        \"sbrt_id\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Another name for Fetch Master Routes: returns the same master routes, with the same <code>sbrt_id</code> filter and the same default order (<code>sbrt_name</code>).</p>\n<p><strong>Service:</strong> <code>fetchDepots</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this route.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbrt_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbrt_id, sbrt_code, sbrt_name, sbrt_active, sbrt_created, sbrt_updated</code></td>\n<td></td>\n<td>As Fetch Master Routes.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Depot with Panther Id '&lt;sbrt_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"b90148d5-5b4d-445c-bb43-f45659a3199c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchDepots\",\n        \"sbrt_id\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchDepots\",\n        \"sbrt_id\": 1,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbrt_id\": 1,\n            \"sbrt_code\": \"D001\",\n            \"sbrt_name\": \"North Depot\",\n            \"sbrt_active\": \"on\",\n            \"sbrt_created\": \"2026-01-05 09:00:00\",\n            \"sbrt_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"6b5f128e-e322-43b1-8da8-5bda450cf2bc"},{"name":"Fetch Activities","id":"0aacb8d6-0fed-4d56-a55b-c2ab49134430","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchActivities\",\n        \"orderby\": \"sba_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's activities, sorted by <code>sba_name</code> unless you send <code>orderby</code>. Send <code>sba_id</code> in the header to fetch one record; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchActivities</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sba_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sba_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sba_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>sba_name</code></td>\n<td>varchar(50)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sba_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sba_created</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sba_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Activity with Panther Id '&lt;sba_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"8486e0ed-a82a-4f79-85a9-e52db65c396c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchActivities\",\n        \"orderby\": \"sba_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchActivities\",\n        \"orderby\": \"sba_name\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sba_id\": 1,\n            \"sba_name\": \"Example maintenance activity\",\n            \"sba_active\": \"on\",\n            \"sba_created\": \"2026-01-05 09:00:00\",\n            \"sba_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"0aacb8d6-0fed-4d56-a55b-c2ab49134430"},{"name":"Fetch Weeks For Year","id":"e1a88197-2daf-4a4c-9a22-9af500d25978","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchWeeksForYear\",\n        \"syy_year\": 2026\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Lists the weeks of one of your system's shift years: the week number and the date the week ends. Use it to turn the year and week numbers used by shifts (<code>sbt_year</code>, <code>sbt_week</code>) into dates. Week 1 ends six days after the year's start date.</p>\n<p>Not paginated: <code>orderby</code>, <code>offset</code> and <code>maxrows</code> are ignored.</p>\n<p><strong>Service:</strong> <code>fetchWeeksForYear</code></p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>syy_year</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>The shift year, for example 2026.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>week</code></td>\n<td>int</td>\n<td>Week number, from 1.</td>\n</tr>\n<tr>\n<td><code>ends</code></td>\n<td>date (Y-m-d)</td>\n<td>Last day of the week (YYYY-MM-DD).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Shift years and Shift Week Start (system settings; ask your account manager)</strong>: Each year's start date, number of weeks and the first day of the week decide the dates returned.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Year [syy_year] is required</code></li>\n<li><code>Year &lt;syy_year&gt; does not exist</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"0b0bc13e-3501-4c7c-87cf-f17103b73324","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchWeeksForYear\",\n        \"syy_year\": 2026\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchWeeksForYear\",\n        \"syy_year\": 2026,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"week\": 1,\n            \"ends\": \"2026-04-10\"\n        },\n        {\n            \"week\": 2,\n            \"ends\": \"2026-04-17\"\n        },\n        {\n            \"week\": 3,\n            \"ends\": \"2026-04-24\"\n        }\n    ]\n}"}],"_postman_id":"e1a88197-2daf-4a4c-9a22-9af500d25978"}],"id":"13ac7b41-9978-4bdf-b66a-19ca94357a71","_postman_id":"13ac7b41-9978-4bdf-b66a-19ca94357a71","description":""},{"name":"Employees","item":[{"name":"Employee Contracts","item":[{"name":"Add Employee Contract","id":"8682494b-8b28-49b2-8bd6-5238ad85131c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeContract\"\n    },\n    \"body\": [\n        {\n            \"prc_name\": \"Standard Weekly\",\n            \"prc_maxhourswk\": 48,\n            \"prc_minhourswk\": 16,\n            \"prc_shiftmaxsrow\": 6,\n            \"prc_shiftmaxhours\": 12,\n            \"prc_shiftminhours\": 4,\n            \"prc_weekends\": \"on\",\n            \"prc_weeknights\": \"on\",\n            \"prc_active\": \"on\",\n            \"ext_id\": \"CON-001\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more employee contracts. An employee contract holds working-time limits (maximum hours, shifts in a row, weekends, midweek nights and so on) that are checked when booking.</p>\n<p>Each body row is one contract. Every key must be a contract field, and values are checked against the field's type. <code>prc_name</code> is required, must not be blank and must be unique. <code>ext_id</code>, when not blank, must not be used by another contract. All rows are saved together: if one row fails, none is saved. Returns <code>prc_id</code> (a string) for each row, in the order sent.</p>\n<p><strong>Service:</strong> <code>addEmployeeContract</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prc_name</code></td>\n<td>varchar(60)</td>\n<td>Yes</td>\n<td>Contract name. Unique per system; cannot be blank.</td>\n</tr>\n<tr>\n<td><code>prc_maxhourstotal</code></td>\n<td>int</td>\n<td>No</td>\n<td>Max hours (total)...</td>\n</tr>\n<tr>\n<td><code>prc_maxhourstotalrange</code></td>\n<td>int</td>\n<td>No</td>\n<td>... in this many weeks.</td>\n</tr>\n<tr>\n<td><code>prc_maxshiftstotal</code></td>\n<td>int</td>\n<td>No</td>\n<td>Max shifts...</td>\n</tr>\n<tr>\n<td><code>prc_maxshiftstotalrange</code></td>\n<td>int</td>\n<td>No</td>\n<td>... over this many days.</td>\n</tr>\n<tr>\n<td><code>prc_averagehourswk</code></td>\n<td>int</td>\n<td>No</td>\n<td>Average hours in a week...</td>\n</tr>\n<tr>\n<td><code>prc_averagehourswkrange</code></td>\n<td>int</td>\n<td>No</td>\n<td>... over this many weeks.</td>\n</tr>\n<tr>\n<td><code>prc_minhourswk</code></td>\n<td>int(11)</td>\n<td>No</td>\n<td>Minimum working hours per week. Fetch Employees (verbose) shows it as the employee's pre_contracted_hours.</td>\n</tr>\n<tr>\n<td><code>prc_maxhourswk</code></td>\n<td>int</td>\n<td>No</td>\n<td>Max hours in a week.</td>\n</tr>\n<tr>\n<td><code>prc_maxhourswk_exceeded</code></td>\n<td>enum('alert','block')</td>\n<td>No</td>\n<td>What happens when the weekly maximum hours are exceeded: alert (default) or block.</td>\n</tr>\n<tr>\n<td><code>prc_shiftmaxsrow</code></td>\n<td>int</td>\n<td>No</td>\n<td>Max shifts in a row.</td>\n</tr>\n<tr>\n<td><code>prc_shiftmaxhours</code></td>\n<td>int</td>\n<td>No</td>\n<td>Max hours per shift.</td>\n</tr>\n<tr>\n<td><code>prc_shiftminhours</code></td>\n<td>int</td>\n<td>No</td>\n<td>Min hours per shift.</td>\n</tr>\n<tr>\n<td><code>prc_maxshiftswk</code></td>\n<td>int</td>\n<td>No</td>\n<td>Max shifts per week.</td>\n</tr>\n<tr>\n<td><code>prc_weekends</code></td>\n<td>enum('on','off')</td>\n<td>No</td>\n<td>Allow weekends: on or off.</td>\n</tr>\n<tr>\n<td><code>prc_numberofweekends</code></td>\n<td>int</td>\n<td>No</td>\n<td>Number of weekends...</td>\n</tr>\n<tr>\n<td><code>prc_numberofweekendsrange</code></td>\n<td>int</td>\n<td>No</td>\n<td>... over this many weeks.</td>\n</tr>\n<tr>\n<td><code>prc_maxdoubles</code></td>\n<td>int</td>\n<td>No</td>\n<td>Max doubles.</td>\n</tr>\n<tr>\n<td><code>prc_maxsingles</code></td>\n<td>int</td>\n<td>No</td>\n<td>Max singles.</td>\n</tr>\n<tr>\n<td><code>prc_maxdoublessinglesrange</code></td>\n<td>int</td>\n<td>No</td>\n<td>... over this many weekends.</td>\n</tr>\n<tr>\n<td><code>prc_weeknights</code></td>\n<td>enum('on','off')</td>\n<td>No</td>\n<td>Allow midweek nights: on or off.</td>\n</tr>\n<tr>\n<td><code>prc_numberofmidweeks</code></td>\n<td>int</td>\n<td>No</td>\n<td>Number of midweek nights...</td>\n</tr>\n<tr>\n<td><code>prc_numberofmidweeksrange</code></td>\n<td>int</td>\n<td>No</td>\n<td>... in this many weeks.</td>\n</tr>\n<tr>\n<td><code>prc_active</code></td>\n<td>enum('on','off')</td>\n<td>No</td>\n<td>Active flag.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prc_id</code></td>\n<td>string (numeric)</td>\n<td>New contract id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Employee Contract Name [prc_name] is required</code></li>\n<li><code>Employee Contract Name [prc_name] cannot be blank</code></li>\n<li><code>An Employee Contract already exists with the name '&lt;name&gt;</code></li>\n<li><code>External Id '&lt;ext_id&gt;' [ext_id] is already assigned to Employee Contract '&lt;name&gt;'</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n<li><code>Illegal action: It is not possible to update the field '&lt;field&gt;'</code></li>\n<li><code>&lt;field&gt; must be one of: on,off</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"aa5b7a6d-06b5-4c00-86c7-0880a0d104b9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeContract\"\n    },\n    \"body\": [\n        {\n            \"prc_name\": \"Standard Weekly\",\n            \"prc_maxhourswk\": 48,\n            \"prc_minhourswk\": 16,\n            \"prc_shiftmaxsrow\": 6,\n            \"prc_shiftmaxhours\": 12,\n            \"prc_shiftminhours\": 4,\n            \"prc_weekends\": \"on\",\n            \"prc_weeknights\": \"on\",\n            \"prc_active\": \"on\",\n            \"ext_id\": \"CON-001\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addEmployeeContract\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prc_id\": \"12\"\n        }\n    ]\n}"}],"_postman_id":"8682494b-8b28-49b2-8bd6-5238ad85131c"},{"name":"Update Employee Contract","id":"adfac18c-1196-42ea-8108-0934a384fe27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateEmployeeContract\"\n    },\n    \"body\": [\n        {\n            \"prc_id\": 12,\n            \"prc_maxhourswk\": 40,\n            \"prc_active\": \"off\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more employee contracts. Each row needs <code>prc_id</code> and at least one other field to change. A new <code>prc_name</code> must be unique and not blank; a non-blank <code>ext_id</code> must not be used by another contract. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateEmployeeContract</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Contract to update.</td>\n</tr>\n<tr>\n<td><code>(any contract field)</code></td>\n<td>per column</td>\n<td>No</td>\n<td>Same fields as Add Employee Contract. *_created and *_updated cannot be set.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Employee Contract's Panther Id [prc_id] is required</code></li>\n<li><code>No Employee Contract exists with Panther Id '&lt;prc_id&gt;'</code></li>\n<li><code>An Employee Contract already exists with the name '&lt;name&gt;'</code></li>\n<li><code>External Id '&lt;ext_id&gt;' is already assigned to Employee Contract '&lt;name&gt;'</code></li>\n<li><code>Employee Contract Name [prc_name] cannot be blank</code></li>\n<li><code>You must update at least one field</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"a79be7cd-2cdb-4427-a40e-d12f281474db","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateEmployeeContract\"\n    },\n    \"body\": [\n        {\n            \"prc_id\": 12,\n            \"prc_maxhourswk\": 40,\n            \"prc_active\": \"off\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateEmployeeContract\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"adfac18c-1196-42ea-8108-0934a384fe27"},{"name":"Delete Employee Contract","id":"a97fa09b-3729-483b-be2e-748ba019e644","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteEmployeeContract\"\n    },\n    \"body\": [\n        {\n            \"prc_id\": 12\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more employee contracts by <code>prc_id</code>. A contract allocated to any employee cannot be deleted. All rows are deleted together: if one row fails, none is deleted. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteEmployeeContract</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Contract to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Contract's Panther Id [prc_id] is required</code></li>\n<li><code>No Employee Contract exists with Panther Id '&lt;prc_id&gt;'</code></li>\n<li><code>Contract with Panther Id '&lt;prc_id&gt;' cannot be deleted. It has been allocated to at least one employee.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"9ef395b8-9dc7-44af-8547-cee10e931725","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteEmployeeContract\"\n    },\n    \"body\": [\n        {\n            \"prc_id\": 12\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteEmployeeContract\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"a97fa09b-3729-483b-be2e-748ba019e644"},{"name":"Fetch Employee Contracts","id":"470fa770-3644-4fc2-993f-8bd245ad5978","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployeeContracts\",\n        \"datalevel\": \"terse\",\n        \"orderby\": \"prc_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns employee contracts. <code>datalevel: terse</code> (default) returns <code>prc_id</code>, <code>prc_name</code>, <code>prc_active</code> and <code>ext_id</code>; <code>verbose</code> returns every contract field. Send <code>prc_id</code> or <code>ext_id</code> (not both) to fetch one contract; an error is returned if it is not found. Sorted by <code>prc_name</code> unless you send <code>orderby</code>.</p>\n<p><strong>Service:</strong> <code>fetchEmployeeContracts</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>datalevel</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>prc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one contract. Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one contract by your external id. Not with prc_id.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prc_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>prc_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>prc_active</code></td>\n<td>on|off</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>(verbose) all contract fields</code></td>\n<td></td>\n<td>The fields listed under Add Employee Contract, plus prc_created and prc_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>prc_id and ext_id are mutually exclusive</code></li>\n<li><code>Contract with Panther Id '&lt;prc_id&gt;' not found</code></li>\n<li><code>Contract with External Id '&lt;ext_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"3d9a4e48-5001-4d6d-a76a-35c8069fc30c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployeeContracts\",\n        \"datalevel\": \"terse\",\n        \"orderby\": \"prc_name\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchEmployeeContracts\",\n        \"datalevel\": \"terse\",\n        \"orderby\": \"prc_name\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prc_id\": 12,\n            \"prc_name\": \"Standard Weekly\",\n            \"prc_active\": \"on\",\n            \"ext_id\": \"CON-001\"\n        },\n        {\n            \"prc_id\": 14,\n            \"prc_name\": \"Zero Hours\",\n            \"prc_active\": \"on\",\n            \"ext_id\": \"\"\n        }\n    ]\n}"}],"_postman_id":"470fa770-3644-4fc2-993f-8bd245ad5978"},{"name":"Fetch Updated Employee Contracts","id":"106f232e-a702-4d90-a7fc-614e535ce55e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedEmployeeContracts\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns employee contracts changed on or after <code>updatesSince</code>, with the same terse and verbose fields as Fetch Employee Contracts. Deleted contracts are not reported.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedEmployeeContracts</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime 'YYYY-MM-DD HH:MM:SS'</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prc_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Fetch Employee Contracts)</code></td>\n<td></td>\n<td>Same fields as Fetch Employee Contracts.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"efb30699-c9c1-429b-80bf-afa3631fe944","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedEmployeeContracts\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedEmployeeContracts\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prc_id\": 12,\n            \"prc_name\": \"Standard Weekly\",\n            \"prc_active\": \"on\",\n            \"ext_id\": \"CON-001\"\n        }\n    ]\n}"}],"_postman_id":"106f232e-a702-4d90-a7fc-614e535ce55e"}],"id":"999ff9d5-2374-4107-8d6a-408a1972333e","_postman_id":"999ff9d5-2374-4107-8d6a-408a1972333e","description":""},{"name":"Employees","item":[{"name":"Add Employee","id":"9446c991-ab87-4aa8-b37d-1b5177421342","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployee\"\n    },\n    \"body\": [\n        {\n            \"pre_first_name\": \"Alex\",\n            \"pre_last_name\": \"Example\",\n            \"sbag_id\": 3,\n            \"pre_email\": \"alex.example@example.com\",\n            \"pre_phone\": \"07700 900123\",\n            \"pre_pcode\": \"AB1 2CD\",\n            \"prst_id\": 5,\n            \"prc_id\": 12,\n            \"pre_timesheet_emails_enabled\": \"default\",\n            \"ext_id\": \"EMP-1001\",\n            \"duties\": [\n                {\n                    \"prd_id\": 40,\n                    \"pred_valid_from\": \"2026-01-01\",\n                    \"pred_valid_to\": \"2026-12-31\",\n                    \"pred_certificate_number\": \"CERT-0001\"\n                }\n            ],\n            \"extradata\": [\n                {\n                    \"pree_label\": \"Shoe size\",\n                    \"pree_value\": \"9\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more employees. Your system's screens call employees <strong>Candidates</strong>.</p>\n<p>Each body row is one employee. Every key must be an employee field or one of the sections below, and values are checked against the field's type. Required: <code>pre_first_name</code>, <code>pre_last_name</code> and <code>sbag_id</code>. Don't send <code>pre_name</code> or <code>pre_alias_name</code>: they are built from the name fields. Linked ids, when supplied and not 0, must exist: <code>sbag_id</code>, <code>sbpt_id</code>, <code>prst_id</code>, <code>sbdi_id</code>, <code>sbbr_id</code>, <code>sbte_id</code>, <code>preg_id</code>, <code>prps_id</code>, <code>sbau_id</code>, <code>sbau_id_2</code>, <code>prc_id</code>, <code>prf_id</code>. All rows are added together: if one row fails, none is added. Returns <code>pre_id</code> (a string) for each row.</p>\n<p>Optional sections in each row:</p>\n<ul>\n<li><code>duties</code>: array of duties. Each item: <code>prd_id</code> (required), <code>action</code> A, U or D (default A), <code>pred_valid_from</code>, <code>pred_valid_to</code>, <code>pred_certificate_number</code>. A and U add the duty, or update it if the employee already has it; D removes it. The key is your system's plural word for duties in lower case without spaces (<code>duties</code> by default, for example <code>specialisms</code>).</li>\n<li><code>payschemes</code>: array of <code>{prps_id, action}</code> with action A, U or D.</li>\n<li><code>payschemedata</code>: object with the employee's PAYE or umbrella pay scheme details, such as bank details. <code>pruc_id</code> must be a valid umbrella company.</li>\n<li><code>extradata</code>: array of <code>{pree_label, pree_value, pree_source, action}</code>. <code>pree_label</code> is required; A and U add or update by label, D removes.</li>\n</ul>\n<p><code>shiftdata</code> and <code>extraopt</code> are accepted but ignored.</p>\n<p>When <code>pre_pcode</code> or <code>pre_temp_pcode</code> is sent, the postcode is looked up and the location fields (<code>pre_location</code>, <code>pre_longlat</code>, or the temporary ones) are set. If the postcode cannot be found, the location is left blank.</p>\n<p>Team, owner and division returned by Fetch Employees come from the candidate's primary ownership, which is set in your system's screens. <code>sbdi_id</code>, <code>sbte_id</code> and <code>pre_owner_syu_id</code> sent here are saved on the employee but do not change it.</p>\n<p><strong>Matching by your own reference (<code>unique_type</code>).</strong> Send one row only, with <code>unique_type</code> set to the name of your source system and a field of that name holding your reference for the employee (up to 10 characters), for example <code>\"unique_type\": \"hrsystem\", \"hrsystem\": \"HR1001\"</code>. The source name is saved in <code>pre_addtype</code> and the reference in <code>pre_adaptref</code>. In this form an <code>FKData</code> object can set linked ids by name instead of by id: keys starting <code>prf_id:</code>, <code>prps_id:</code>, <code>sbte_id:</code> and <code>sbpt_id:</code> take a pay frequency label, pay scheme name, team name or pay type description (a name that is not found sets the id to 0). If an employee already exists with the same source and reference, the add is refused. This form needs the request to be sent without a root element, which is the form these docs use.</p>\n<p><strong>Service:</strong> <code>addEmployee</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_first_name</code></td>\n<td>varchar(255)</td>\n<td>Yes</td>\n<td>Cannot be blank.</td>\n</tr>\n<tr>\n<td><code>pre_middle_name</code></td>\n<td>varchar(255)</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>pre_last_name</code></td>\n<td>varchar(255)</td>\n<td>Yes</td>\n<td>Cannot be blank.</td>\n</tr>\n<tr>\n<td><code>sbag_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Agency id (fetchAgencies). Must exist.</td>\n</tr>\n<tr>\n<td><code>pre_alias_first_name / pre_alias_last_name</code></td>\n<td>varchar(255)</td>\n<td>No</td>\n<td>Alias (preferred) names.</td>\n</tr>\n<tr>\n<td><code>pre_email, pre_email_work</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>pre_email_restrictions</code></td>\n<td>enum</td>\n<td>No</td>\n<td>'All uses allowed', 'No marketing/mailing lists' or 'Do not email'.</td>\n</tr>\n<tr>\n<td><code>pre_phone, pre_phone_secondary, pre_phone_home, pre_phone_2 (+ *_prefix)</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Phone numbers; each has a matching *_prefix field for the dialling code.</td>\n</tr>\n<tr>\n<td><code>pre_address1, pre_address2, pre_town, pre_county, pre_pcode</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Address. pre_pcode is looked up to set the location.</td>\n</tr>\n<tr>\n<td><code>pre_temp_pcode, pre_pcode_src</code></td>\n<td>varchar(10), enum('Primary','Temporary')</td>\n<td>No</td>\n<td>Temporary postcode (looked up like pre_pcode) and which postcode is used: Primary or Temporary.</td>\n</tr>\n<tr>\n<td><code>pre_dob</code></td>\n<td>date</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>pre_ninumber</code></td>\n<td>varchar(10)</td>\n<td>No</td>\n<td>National Insurance number, up to 10 characters.</td>\n</tr>\n<tr>\n<td><code>pre_empno</code></td>\n<td>varchar(40)</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>pre_job_title</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>prc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Employee contract (Fetch Employee Contracts). Must exist.</td>\n</tr>\n<tr>\n<td><code>prf_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Pay frequency (Fetch Pay Frequencies). Must exist.</td>\n</tr>\n<tr>\n<td><code>prps_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Pay scheme (Fetch Pay Schemes). Must exist.</td>\n</tr>\n<tr>\n<td><code>sbpt_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Pay type (Fetch Pay Types). Must exist.</td>\n</tr>\n<tr>\n<td><code>prst_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Status (Fetch Statuses). Must exist.</td>\n</tr>\n<tr>\n<td><code>preg_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Gender: a prg_id from Fetch Genders. Must exist.</td>\n</tr>\n<tr>\n<td><code>prso_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Source (Fetch Sources). Send an id that exists.</td>\n</tr>\n<tr>\n<td><code>sbbr_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Branch (Fetch Branches). Must exist.</td>\n</tr>\n<tr>\n<td><code>sbdi_id, sbte_id, pre_owner_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Saved on the employee, but Fetch Employees returns team, owner and division from the primary ownership (see description).</td>\n</tr>\n<tr>\n<td><code>sbau_id, sbau_id_2</code></td>\n<td>int</td>\n<td>No</td>\n<td>Client contacts. Must exist.</td>\n</tr>\n<tr>\n<td><code>pre_timesheet_emails_enabled</code></td>\n<td>enum('default','on','off')</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>pre_allowaddshifts, pre_alloweditshifts, pre_allowpausetimesheets</code></td>\n<td>enum('default','on','off')</td>\n<td>No</td>\n<td>default (the default), on or off.</td>\n</tr>\n<tr>\n<td><code>pre_timesheet_prd_id, pre_timesheet_sbc_id, pre_timesheet_sbcl_id, pre_timesheet_sbclc_id, pre_timesheet_sbcsl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Timesheet defaults: duty, client, location, location contract and sub-location. Send ids that exist.</td>\n</tr>\n<tr>\n<td><code>pre_preferred_hospital</code></td>\n<td>int</td>\n<td>No</td>\n<td>Preferred location (sbcl_id). Send an id that exists.</td>\n</tr>\n<tr>\n<td><code>pre_leaver / pre_leaving_date / pre_start_date</code></td>\n<td>enum('yes','no') / date / date</td>\n<td>No</td>\n<td>Leaver flag (yes or no), leaving date and start date.</td>\n</tr>\n<tr>\n<td><code>pre_emergency_* / pre_emergency2_*</code></td>\n<td>text; *_relationship enum</td>\n<td>No</td>\n<td>Two emergency contacts. Relationship: Spouse, Partner, Mother, Father, Son, Daughter, Sibling, Grandparent, Friend, Guardian or Other.</td>\n</tr>\n<tr>\n<td><code>pre_notes</code></td>\n<td>text</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>duties</code></td>\n<td>array</td>\n<td>No</td>\n<td>Array of duties; see description. The key is your system's plural word for duties.</td>\n</tr>\n<tr>\n<td><code>payschemes</code></td>\n<td>array</td>\n<td>No</td>\n<td>Array of {prps_id, action}; see description.</td>\n</tr>\n<tr>\n<td><code>payschemedata</code></td>\n<td>object</td>\n<td>No</td>\n<td>PAYE or umbrella pay scheme details, for example bank details, and the override employee number fields prepsd_paye_override_empno(_value) and pruc_payscheme_override_empno(_value).</td>\n</tr>\n<tr>\n<td><code>extradata</code></td>\n<td>array</td>\n<td>No</td>\n<td>See description.</td>\n</tr>\n<tr>\n<td><code>unique_type, &lt;unique_type value&gt;, FKData</code></td>\n<td>string / string / object</td>\n<td>No</td>\n<td>Only for matching by your own reference; see description.</td>\n</tr>\n<tr>\n<td><code>pre_name, pre_alias_name</code></td>\n<td>read-only</td>\n<td>No</td>\n<td>Don't send: built from the name fields.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>string (numeric)</td>\n<td>New employee id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: The plural word for duties sets the key of the duties array (lower case, spaces removed; duties by default). Other terms change the wording of some error messages.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Employee First Name [pre_first_name] is required</code></li>\n<li><code>Employee Last Name [pre_last_name] is required</code></li>\n<li><code>Agency Id [sbag_id] is required</code></li>\n<li><code>Employee First Name [pre_first_name] cannot be blank</code></li>\n<li><code>An Employee exists with Panther Id '&lt;id&gt;' [pre_id]</code></li>\n<li><code>External Id '&lt;ext_id&gt;' [ext_id] is already assigned to Employee '&lt;name&gt;'</code></li>\n<li><code>No Agency [sbag_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Employee Status [sbpt_id] exists with Panther Id '&lt;prst_id&gt;'</code></li>\n<li><code>No Employee Contract [prc_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Specialism exists with Panther Id '&lt;prd_id&gt;'</code></li>\n<li><code>prd_id must be specfied in the 'duties' section</code></li>\n<li><code>'action' must be (A)dd, U(pdate) or D(elete) in the 'duties' section</code></li>\n<li><code>No Pay Scheme exists with Panther Id '&lt;prps_id&gt;'</code></li>\n<li><code>No Umbrella Company exists with Panther Id '&lt;pruc_id&gt;'</code></li>\n<li><code>Extra Details Label [pree_label] must be specfied in the 'extradata' section</code></li>\n<li><code>You may only send one record at a time via this method</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"d9e4a573-3b08-4082-89b7-09c71ffb8f80","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployee\"\n    },\n    \"body\": [\n        {\n            \"pre_first_name\": \"Alex\",\n            \"pre_last_name\": \"Example\",\n            \"sbag_id\": 3,\n            \"pre_email\": \"alex.example@example.com\",\n            \"pre_phone\": \"07700 900123\",\n            \"pre_pcode\": \"AB1 2CD\",\n            \"prst_id\": 5,\n            \"prc_id\": 12,\n            \"pre_timesheet_emails_enabled\": \"default\",\n            \"ext_id\": \"EMP-1001\",\n            \"duties\": [\n                {\n                    \"prd_id\": 40,\n                    \"pred_valid_from\": \"2026-01-01\",\n                    \"pred_valid_to\": \"2026-12-31\",\n                    \"pred_certificate_number\": \"CERT-0001\"\n                }\n            ],\n            \"extradata\": [\n                {\n                    \"pree_label\": \"Shoe size\",\n                    \"pree_value\": \"9\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addEmployee\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": \"2051\"\n        }\n    ]\n}"}],"_postman_id":"9446c991-ab87-4aa8-b37d-1b5177421342"},{"name":"Update Employee","id":"b184386b-94ed-46ec-94a2-3847ced7c1c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateEmployee\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"pre_email\": \"alex.example@example.com\",\n            \"prst_id\": 6,\n            \"duties\": [\n                {\n                    \"action\": \"A\",\n                    \"prd_id\": 41,\n                    \"pred_valid_from\": \"2026-02-01\",\n                    \"pred_valid_to\": \"2026-12-31\"\n                },\n                {\n                    \"action\": \"U\",\n                    \"prd_id\": 40,\n                    \"pred_certificate_number\": \"CERT-0002\"\n                },\n                {\n                    \"action\": \"D\",\n                    \"prd_id\": 39\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more employees (Candidates). Each row needs <code>pre_id</code> and at least one ordinary employee field: a row with only sections (<code>duties</code>, <code>payschemes</code>, <code>payschemedata</code>, <code>extradata</code>) fails with 'You must update at least one field'. Fields, checks and sections are as for Add Employee. Duties, pay schemes and extra data are changed item by item with <code>action</code> A, U or D; items you don't send are left as they are. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p>To find the employee by your own reference instead of <code>pre_id</code>, use the <code>unique_type</code> form described under Add Employee (one row; the employee is matched on source and reference, and <code>FKData</code> names are resolved the same way).</p>\n<p><strong>Service:</strong> <code>updateEmployee</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee to update (or use the unique_type form).</td>\n</tr>\n<tr>\n<td><code>(any employee field)</code></td>\n<td>per column</td>\n<td>No</td>\n<td>As Add Employee. Send at least one, even when you also send sections.</td>\n</tr>\n<tr>\n<td><code>duties, payschemes, payschemedata, extradata</code></td>\n<td></td>\n<td>No</td>\n<td>As Add Employee.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: The plural word for duties sets the key of the duties array (lower case, spaces removed; duties by default). Other terms change the wording of some error messages.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Employee's Panther Id [pre_id] is required</code></li>\n<li><code>No Employee exists with Panther Id '&lt;id&gt;' [pre_id]</code></li>\n<li><code>External Id '&lt;ext_id&gt;' is already assigned to Employee '&lt;name&gt;'</code></li>\n<li><code>You must update at least one field</code></li>\n<li><code>You may only send one record at a time via this method</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"f914100b-bc4f-4ea3-8317-45780be8d86e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateEmployee\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"pre_email\": \"alex.example@example.com\",\n            \"prst_id\": 6,\n            \"duties\": [\n                {\n                    \"action\": \"A\",\n                    \"prd_id\": 41,\n                    \"pred_valid_from\": \"2026-02-01\",\n                    \"pred_valid_to\": \"2026-12-31\"\n                },\n                {\n                    \"action\": \"U\",\n                    \"prd_id\": 40,\n                    \"pred_certificate_number\": \"CERT-0002\"\n                },\n                {\n                    \"action\": \"D\",\n                    \"prd_id\": 39\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateEmployee\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"b184386b-94ed-46ec-94a2-3847ced7c1c8"},{"name":"Delete Employee","id":"5dd3d822-7ca8-4719-a9d1-5f3f04b2df1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteEmployee\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more employees by <code>pre_id</code>. An employee who has ever been booked on a shift cannot be deleted. Deleting also removes the employee's duties, links, equipment, extra data, machines, tabs, skills, types, pay schemes, pay scheme data and NMC PIN check results. All rows are deleted together: if one row fails, none is deleted. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteEmployee</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Employee's Panther Id [pre_id] is required</code></li>\n<li><code>No Employee exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Employee with Panther Id '&lt;id&gt;' cannot be deleted. Shifts have been booked.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"f3d88fb7-c1ee-4fcf-abc1-d6023a51cdde","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteEmployee\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteEmployee\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"5dd3d822-7ca8-4719-a9d1-5f3f04b2df1d"},{"name":"Fetch Employees","id":"a1e7e6f4-d05d-4aab-8517-a4e3e768a296","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployees\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"includeemployeeduties\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns employees (Candidates). <code>datalevel</code> chooses the terse or verbose field list; <code>includeFKData: on</code> adds an <code>FKData</code> object with the names of linked records. The include* headers add arrays to each employee. Send <code>pre_id</code> or <code>ext_id</code> (not both) for one employee. Sorted by <code>pre_name</code> unless you send <code>orderby</code>.</p>\n<p>Team (<code>sbte_id</code>) and owner (<code>pre_owner_syu_id</code>) come from the candidate's primary ownership, and division (<code>sbdi_id</code>) from that team. In verbose output, <code>pre_contracted_hours</code> is the minimum weekly hours of the employee's contract (<code>prc_minhourswk</code>).</p>\n<p>Every row also has six calculated fields: <code>pre_lastpaid</code>, <code>pre_lastcontacted</code>, <code>pre_firstshift</code>, <code>pre_lastshift</code>, <code>pre_travelrange</code> and <code>pre_numshifts</code>. These are not populated with live values; ignore them. Use <code>pre_first_shift_date</code>, <code>pre_last_shift_date</code> and <code>pre_total_shift_count</code> (verbose) instead.</p>\n<p><strong>Service:</strong> <code>fetchEmployees</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>datalevel</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>includeFKData</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>on adds an FKData object with the names of linked records.</td>\n</tr>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one employee. Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one employee by your external id. Not with pre_id.</td>\n</tr>\n<tr>\n<td><code>includeemployeeduties</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds an array of duties. Its key is your system's plural word for duties (duties by default).</td>\n</tr>\n<tr>\n<td><code>includeemployeeskills</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds skills.</td>\n</tr>\n<tr>\n<td><code>includeemployeelevels</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds levels (compliance levels).</td>\n</tr>\n<tr>\n<td><code>includeemployeepayschemes</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds payschemes.</td>\n</tr>\n<tr>\n<td><code>includeemployeepayschemedata</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds payschemedata: the employee's pay scheme details, including bank details.</td>\n</tr>\n<tr>\n<td><code>includeemployeeextradata</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds extradata.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>pre_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>terse</code></td>\n<td></td>\n<td>pre_id, pre_name, pre_first_name, pre_middle_name, pre_last_name, sbag_id, prc_id, prf_id, sbdi_id, prps_id, sbte_id, prst_id, sbpt_id, preg_id, ext_id, pre_updated, pre_updatedby_syu_id, right_to_work_id, right_to_work_name.</td>\n</tr>\n<tr>\n<td><code>verbose</code></td>\n<td></td>\n<td>pre_id, sbag_id, pre_empno, pre_name, pre_first/middle/last_name, pre_companyreg, pre_companyname, pre_email, pre_email_work, pre_email_restrictions, pre_dob, pre_ninumber, pre_utr, pre_adaptref, pre_compliance, pre_sentinel, pre_phone, pre_phone_secondary, pre_ap_id, pre_address1, pre_address2, pre_town, pre_county, pre_countrycode (nationality code), pre_pcode_src, pre_pcode, pre_longlat ('lat,lng'), pre_location, pre_temp_pcode, pre_temp_longlat, pre_temp_location, pre_phone_home, pre_phone_2, pre_extref, pre_cms_rail/tfl/dlr/highways/nonpts, pre_level, pre_pin, pre_ispayslips, pre_isqse, pre_timesheet_emails_enabled, sbpt_id, prst_id, pre_notes, pre_created, pre_updated, pre_updatedby_syu_id, pre_legacyid, sbdi_id, sbbr_id, sbte_id, pre_total_shift_count, pre_first_shift_date, pre_last_shift_date, pre_travel_range, preg_id, pre_preferred_hospital, pre_createdby_syu_id, pre_owner_syu_id, prps_id, sbau_id, prc_id, pre_allowaddshifts, pre_alloweditshifts, pre_allowpausetimesheets, pre_timesheet_prd_id/sbc_id/sbcl_id/sbclc_id/sbcsl_id, prf_id, pre_contracted_hours, ext_id, prso_id, pre_linkedin_url, pre_manager_syu_id, pre_director_syu_id, right_to_work_id, right_to_work_name.</td>\n</tr>\n<tr>\n<td><code>calculated (both levels)</code></td>\n<td></td>\n<td>pre_lastpaid, pre_travelrange, pre_lastcontacted, pre_firstshift, pre_lastshift, pre_numshifts. Not populated with live values; ignore them.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbag_name, prc_name, prf_desc, sbdi_name, prps_name, sbte_name, prst_name, sbpt_desc, prg_desc, prso_desc, pre_preferred_hospital_name, pre_owner_syu_fullname, pre_updatedby_syu_fullname, pre_timesheet_prd_desc, pre_timesheet_sbc_name, pre_timesheet_sbcl_name, pre_timesheet_sbclc_name, pre_timesheet_sbcsl_name.</td>\n</tr>\n<tr>\n<td><code>duties[]</code></td>\n<td>array</td>\n<td>prd_id, ext_id, prd_desc, prd_desc_tenant, pred_valid_from, pred_valid_to, pred_certificate_number, pred_created, pred_updated.</td>\n</tr>\n<tr>\n<td><code>skills[]</code></td>\n<td>array</td>\n<td>prsk_id, prsk_name, presk_updated.</td>\n</tr>\n<tr>\n<td><code>levels[]</code></td>\n<td>array</td>\n<td>col_id, col_name, col_desc, col_adapt_code.</td>\n</tr>\n<tr>\n<td><code>payschemes[]</code></td>\n<td>array</td>\n<td>prps_id, prps_name, prps_type, preps_updated.</td>\n</tr>\n<tr>\n<td><code>payschemedata</code></td>\n<td>object</td>\n<td>PAYE or umbrella pay scheme details, or the limited company's details for limited-company pay schemes, including bank details. Certificate and bank proof files are not included.</td>\n</tr>\n<tr>\n<td><code>extradata[]</code></td>\n<td>array</td>\n<td>pree_label, pree_value, pree_source.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: The plural word for duties sets the key of the duties array (lower case, spaces removed; duties by default). Other terms change the wording of some error messages.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'pre_id' and 'ext_id' are mutually exclusive</code></li>\n<li><code>Employee with Panther Id '&lt;id&gt;' not found</code></li>\n<li><code>Employee with External Id '&lt;ext_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"995e0413-3655-4179-ae25-28dc0f55d1f0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployees\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"includeemployeeduties\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchEmployees\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"includeemployeeduties\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"pre_name\": \"Alex Example\",\n            \"pre_first_name\": \"Alex\",\n            \"pre_middle_name\": null,\n            \"pre_last_name\": \"Example\",\n            \"sbag_id\": 3,\n            \"prc_id\": 12,\n            \"prf_id\": 2,\n            \"sbdi_id\": 4,\n            \"prps_id\": 7,\n            \"sbte_id\": 9,\n            \"prst_id\": 5,\n            \"sbpt_id\": 1,\n            \"preg_id\": 2,\n            \"ext_id\": \"EMP-1001\",\n            \"pre_updated\": \"2026-03-02 10:15:00\",\n            \"pre_updatedby_syu_id\": 17,\n            \"right_to_work_id\": 1,\n            \"right_to_work_name\": \"British Citizen\",\n            \"pre_lastpaid\": \"2026-03-01\",\n            \"pre_travelrange\": 50,\n            \"pre_lastcontacted\": \"2026-02-28\",\n            \"pre_firstshift\": \"2026-02-10\",\n            \"pre_lastshift\": \"2026-02-15\",\n            \"pre_numshifts\": 27,\n            \"FKData\": {\n                \"sbag_name\": \"Example Agency\",\n                \"prc_name\": \"Standard Weekly\",\n                \"prf_desc\": \"Weekly\",\n                \"sbdi_name\": \"North\",\n                \"prps_name\": \"PAYE\",\n                \"sbte_name\": \"Team A\",\n                \"prst_name\": \"Active\",\n                \"sbpt_desc\": \"PAYE\",\n                \"prg_desc\": \"Female\",\n                \"prso_desc\": \"Website\",\n                \"pre_preferred_hospital_name\": null,\n                \"pre_owner_syu_fullname\": \"Sam Sample\",\n                \"pre_updatedby_syu_fullname\": \"Sam Sample\",\n                \"pre_timesheet_prd_desc\": null,\n                \"pre_timesheet_sbc_name\": null,\n                \"pre_timesheet_sbcl_name\": null,\n                \"pre_timesheet_sbclc_name\": null,\n                \"pre_timesheet_sbcsl_name\": null\n            },\n            \"duties\": [\n                {\n                    \"prd_id\": 40,\n                    \"ext_id\": \"\",\n                    \"prd_desc\": \"Care Assistant\",\n                    \"prd_desc_tenant\": \"Care Assistant\",\n                    \"pred_valid_from\": \"2026-01-01\",\n                    \"pred_valid_to\": \"2026-12-31\",\n                    \"pred_certificate_number\": \"CERT-0001\",\n                    \"pred_created\": \"2026-01-05 09:00:00\",\n                    \"pred_updated\": \"2026-01-05 09:00:00\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"a1e7e6f4-d05d-4aab-8517-a4e3e768a296"},{"name":"Fetch Updated Employees","id":"afeebef1-f549-4f74-9a51-6ec5a1fa0ef5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedEmployees\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\",\n        \"includeemployeeduties\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns employees changed on or after <code>updatesSince</code>, with the same fields and <code>FKData</code> as Fetch Employees, including the six calculated fields (not populated with live values; ignore them). Supports includeemployeeduties, includeemployeeskills, includeemployeelevels, includeemployeepayschemes and includeemployeepayschemedata, but not includeemployeeextradata. Deleted employees are not reported.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedEmployees</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>includeFKData</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>on adds an FKData object with the names of linked records.</td>\n</tr>\n<tr>\n<td><code>includeemployeeduties / includeemployeeskills / includeemployeelevels / includeemployeepayschemes / includeemployeepayschemedata</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>As Fetch Employees.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>pre_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Fetch Employees)</code></td>\n<td></td>\n<td>Same fields as Fetch Employees, without extradata.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"64ebf395-f161-4db7-9331-4e6a19035673","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedEmployees\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\",\n        \"includeemployeeduties\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedEmployees\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\",\n        \"includeemployeeduties\": \"on\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"pre_name\": \"Alex Example\",\n            \"pre_first_name\": \"Alex\",\n            \"pre_middle_name\": null,\n            \"pre_last_name\": \"Example\",\n            \"sbag_id\": 3,\n            \"prc_id\": 12,\n            \"prf_id\": 2,\n            \"sbdi_id\": 4,\n            \"prps_id\": 7,\n            \"sbte_id\": 9,\n            \"prst_id\": 5,\n            \"sbpt_id\": 1,\n            \"preg_id\": 2,\n            \"ext_id\": \"EMP-1001\",\n            \"pre_updated\": \"2026-03-02 10:15:00\",\n            \"pre_updatedby_syu_id\": 17,\n            \"right_to_work_id\": 1,\n            \"right_to_work_name\": \"British Citizen\",\n            \"pre_lastpaid\": \"2026-03-01\",\n            \"pre_travelrange\": 50,\n            \"pre_lastcontacted\": \"2026-02-28\",\n            \"pre_firstshift\": \"2026-02-10\",\n            \"pre_lastshift\": \"2026-02-15\",\n            \"pre_numshifts\": 27,\n            \"duties\": []\n        }\n    ]\n}"}],"_postman_id":"afeebef1-f549-4f74-9a51-6ec5a1fa0ef5"}],"id":"a534edfa-5f7e-42e5-9957-106ef4e8546f","_postman_id":"a534edfa-5f7e-42e5-9957-106ef4e8546f","description":""},{"name":"Employee Compliance","item":[{"name":"Fetch Employee Compliance","id":"7fe09e71-916d-40f7-9e6e-692b63d954ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployeeCompliance\",\n        \"pre_id\": 2051,\n        \"includecompliancechecks\": \"on\",\n        \"includeexpirytypes\": \"expired,expiring\",\n        \"expiringindays\": 60\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns employees with their compliance documents (document library) and, with <code>includecompliancechecks: on</code>, each document's compliance checks. Each check is classed <code>expired</code> (expiry before <code>expiringfromdate</code>), <code>expiring</code> (expiry within <code>expiringindays</code> days after <code>expiringfromdate</code>) or <code>valid</code> (later or no expiry). With <code>includeexpirytypes</code> other than <code>all</code>, only matching checks are returned, and documents and employees with no matching checks are left out.</p>\n<p>Paging applies to employees: send <code>offset</code> (maxrows then defaults to 10), with or without <code>maxrows</code>; <code>maxrows</code> alone is ignored. Checks do not include <code>coedic_id</code>; keep the id returned by Add Employee Compliance Check if you need to update a check later.</p>\n<p><strong>Service:</strong> <code>fetchEmployeeCompliance</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>One employee. Not with ext_id. If not found, the body is empty.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>One employee by your external id. Not with pre_id.</td>\n</tr>\n<tr>\n<td><code>includecompliancechecks</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>includeexpirytypes</code></td>\n<td>comma list</td>\n<td>No</td>\n<td><code>all</code></td>\n<td><code>all</code>, <code>expired</code>, <code>expiring</code>, <code>valid</code></td>\n<td>Comma-separated list. 'all' must be sent on its own. Only used when includecompliancechecks is on.</td>\n</tr>\n<tr>\n<td><code>expiringindays</code></td>\n<td>int</td>\n<td>No</td>\n<td><code>30</code></td>\n<td></td>\n<td>Number of days after expiringfromdate that counts as expiring. Default 30.</td>\n</tr>\n<tr>\n<td><code>expiringfromdate</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td><code>today</code></td>\n<td></td>\n<td>Date (YYYY-MM-DD) the expiry classes are worked out from. Default: today.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>pre_name</code></td>\n<td></td>\n<td>pre_id or pre_name, optionally followed by ASC or DESC.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging of employees. Send offset (maxrows defaults to 10); maxrows alone is ignored.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id, pre_name</code></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>documents[]</code></td>\n<td>array</td>\n<td>coed_id, coed_name, coed_storedfile, coed_size (bytes, or null if the file is missing), coed_uploaded_on, coed_uploaded_by (user name), coed_updated_on, coed_updated_by (user name), coed_archived, coed_no_document.</td>\n</tr>\n<tr>\n<td><code>documents[].checks[]</code></td>\n<td>array</td>\n<td>coi_id, coi_name, coedic_issue_date, coedic_expiry_date (null when not set), coedic_number, coedic_archived, expiry_type.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'pre_id' and 'ext_id' are mutually exclusive</code></li>\n<li><code>'&lt;type&gt;' is not in this list: all,expired,expiring,valid</code></li>\n<li><code>If you specify 'all' in 'includeexpirytypes' it must be declared on its own</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"a53adff0-cc94-4b07-9389-b29940915048","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployeeCompliance\",\n        \"pre_id\": 2051,\n        \"includecompliancechecks\": \"on\",\n        \"includeexpirytypes\": \"expired,expiring\",\n        \"expiringindays\": 60\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchEmployeeCompliance\",\n        \"pre_id\": 2051,\n        \"includecompliancechecks\": \"on\",\n        \"includeexpirytypes\": \"expired,expiring\",\n        \"expiringindays\": 60,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"pre_name\": \"Alex Example\",\n            \"documents\": [\n                {\n                    \"coed_id\": 310,\n                    \"coed_name\": \"Passport.pdf\",\n                    \"coed_storedfile\": \"20260301_101500_a1b2c3.pdf\",\n                    \"coed_size\": 204800,\n                    \"coed_uploaded_on\": \"2026-03-01 10:15:00\",\n                    \"coed_uploaded_by\": \"Sam Sample\",\n                    \"coed_updated_on\": null,\n                    \"coed_updated_by\": null,\n                    \"coed_archived\": \"off\",\n                    \"coed_no_document\": \"off\",\n                    \"checks\": [\n                        {\n                            \"coi_id\": 22,\n                            \"coi_name\": \"Passport\",\n                            \"coedic_issue_date\": \"2021-04-01\",\n                            \"coedic_expiry_date\": \"2026-04-10\",\n                            \"coedic_number\": \"123456789\",\n                            \"coedic_archived\": \"off\",\n                            \"expiry_type\": \"expiring\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"7fe09e71-916d-40f7-9e6e-692b63d954ab"},{"name":"Fetch Employee Compliance Document","id":"d21ef240-849f-4e9e-98df-36247463a9b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployeeComplianceDocument\",\n        \"coed_id\": 310\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns one compliance document's details and its file as base64. Get <code>coed_id</code> from Fetch Employee Compliance or Upload Employee Document. <code>file_contents</code> is an empty string when no file is stored (for example for 'no document' entries).</p>\n<p><strong>Service:</strong> <code>fetchEmployeeComplianceDocument</code></p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>coed_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Document id.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>coed_id, coed_name, coed_storedfile, coed_no_document</code></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>file_contents</code></td>\n<td>base64 string</td>\n<td>The file as base64; empty when no file is stored.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The Document Id [coed_id] must be supplied</code></li>\n<li><code>No Employee Document exists with Panther Id '&lt;coed_id&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"173a2e99-c0cb-4fc4-a4d4-394cae0694df","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployeeComplianceDocument\",\n        \"coed_id\": 310\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchEmployeeComplianceDocument\",\n        \"coed_id\": 310,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": {\n        \"coed_id\": 310,\n        \"coed_name\": \"Passport.pdf\",\n        \"coed_storedfile\": \"20260301_101500_a1b2c3.pdf\",\n        \"coed_no_document\": \"off\",\n        \"file_contents\": \"JVBERi0xLjQKJcfsj6IK\"\n    }\n}"}],"_postman_id":"d21ef240-849f-4e9e-98df-36247463a9b5"},{"name":"Upload Employee Document","id":"bc887e4e-0771-437c-a2de-2b47c53c4be7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"uploadEmployeeDocument\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"file\": \"https://files.example.com/alex-example-passport.pdf\",\n            \"filename\": \"Passport.pdf\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more files to employees' document libraries. The file is not sent in the request: <code>file</code> is the URL of the file, which your system downloads (useful with Zapier). The URL must be a public https address; up to 3 redirects are followed. The file can be up to 50 MB, and its type (detected from the content) must be one of: pdf, jpg, png, gif, bmp, tiff, webp, svg, doc, docx, xls, xlsx, ppt, pptx, zip, txt, csv. <code>filename</code> becomes the document name.</p>\n<p>Returns the new <code>coed_id</code> for each row; use Add Employee Compliance Check to attach compliance checks to it. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<p><strong>Service:</strong> <code>uploadEmployeeDocument</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee. Must exist.</td>\n</tr>\n<tr>\n<td><code>file</code></td>\n<td>URL</td>\n<td>Yes</td>\n<td>URL of the file: a public https address.</td>\n</tr>\n<tr>\n<td><code>filename</code></td>\n<td>string (max 150)</td>\n<td>Yes</td>\n<td>Document name, up to 150 characters.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>coed_id</code></td>\n<td>string (numeric)</td>\n<td>New document id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The pre_id field is required.</code></li>\n<li><code>Employee record with ID &lt;pre_id&gt; does not exist.</code></li>\n<li><code>No file was uploaded.</code></li>\n<li><code>No filename was provided for the uploaded file.</code></li>\n<li><code>The file URL provided is not valid.</code></li>\n<li><code>The contents of the file at URL \"&lt;url&gt;\" could not be retrieved. Please make sure it is a public https address, it is accessible, and the file is under 50MB in size.</code></li>\n<li><code>The file at URL \"&lt;url&gt;\" is not a permitted file type.</code></li>\n<li><code>Failed to save file from URL \"&lt;url&gt;\".</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"7181404f-452a-4d85-b43b-8d0222e5c010","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"uploadEmployeeDocument\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"file\": \"https://files.example.com/alex-example-passport.pdf\",\n            \"filename\": \"Passport.pdf\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"uploadEmployeeDocument\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"coed_id\": \"310\"\n        }\n    ]\n}"}],"_postman_id":"bc887e4e-0771-437c-a2de-2b47c53c4be7"},{"name":"Add Employee Compliance Check","id":"c4c0bd7a-5b41-4c7f-886e-12ffc8deceac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeComplianceCheck\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"coed_id\": 310,\n            \"coi_id\": 22,\n            \"coedic_issue_date\": \"2021-04-01\",\n            \"coedic_expiry\": \"2031-04-01\",\n            \"coedic_number\": \"123456789\",\n            \"coedic_archived\": false\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds compliance checks: each links one of an employee's documents to a compliance item, with issue date, expiry date and reference number. Make sure <code>coed_id</code> is a document of the same employee. Returns the new <code>coedic_id</code> for each row; keep it, because Update Employee Compliance Check needs it and Fetch Employee Compliance does not return it. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<p><strong>Service:</strong> <code>addEmployeeComplianceCheck</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee. Must exist.</td>\n</tr>\n<tr>\n<td><code>coed_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Document (from Upload Employee Document or Fetch Employee Compliance). Must exist.</td>\n</tr>\n<tr>\n<td><code>coi_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Compliance item. Must exist. Fetch Employee Compliance shows coi_id and coi_name on existing checks.</td>\n</tr>\n<tr>\n<td><code>coedic_issue_date</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td>Issue date (YYYY-MM-DD). Default: not set.</td>\n</tr>\n<tr>\n<td><code>coedic_expiry</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td>Expiry date (YYYY-MM-DD). Default: not set (no expiry).</td>\n</tr>\n<tr>\n<td><code>coedic_number</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td>Reference or certificate number.</td>\n</tr>\n<tr>\n<td><code>coedic_archived</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>Send JSON true or false (default false).</td>\n</tr>\n<tr>\n<td><code>coedic_last_checked</code></td>\n<td>date</td>\n<td>No</td>\n<td>Not saved by this service; set it with Update Employee Compliance Check.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>coedic_id</code></td>\n<td>string (numeric)</td>\n<td>New compliance check id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The pre_id field is required.</code></li>\n<li><code>The coed_id field is required.</code></li>\n<li><code>The coi_id field is required.</code></li>\n<li><code>Employee record with ID &lt;id&gt; does not exist.</code></li>\n<li><code>Document record with ID &lt;id&gt; does not exist.</code></li>\n<li><code>Compliance Item record with ID &lt;id&gt; does not exist.</code></li>\n<li><code>The coedic_issue_date field must be a valid date.</code></li>\n<li><code>The coedic_expiry field must be a valid date.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"20a6d174-b4e0-4a1d-9e4f-ffee0a6cc2d1","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeComplianceCheck\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"coed_id\": 310,\n            \"coi_id\": 22,\n            \"coedic_issue_date\": \"2021-04-01\",\n            \"coedic_expiry\": \"2031-04-01\",\n            \"coedic_number\": \"123456789\",\n            \"coedic_archived\": false\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addEmployeeComplianceCheck\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"coedic_id\": \"4410\"\n        }\n    ]\n}"}],"_postman_id":"c4c0bd7a-5b41-4c7f-886e-12ffc8deceac"},{"name":"Update Employee Compliance Check","id":"7a7d0097-a1f5-48f1-b778-c023c5ed57c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateEmployeeComplianceCheck\"\n    },\n    \"body\": [\n        {\n            \"coedic_id\": 4410,\n            \"coedic_expiry\": \"2031-05-01\",\n            \"coedic_last_checked\": \"2026-03-02\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates compliance checks by <code>coedic_id</code>. Only <code>coedic_number</code>, <code>coedic_expiry</code>, <code>coedic_issue_date</code>, <code>coedic_last_checked</code> and <code>coedic_archived</code> can be changed; other fields are ignored, and a row with none of them is skipped. Returns an empty body. Validation errors are returned with HTTP status 400 and nothing is saved; a successful request returns HTTP status 200.</p>\n<p><strong>Service:</strong> <code>updateEmployeeComplianceCheck</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>coedic_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>From the Add Employee Compliance Check response.</td>\n</tr>\n<tr>\n<td><code>coedic_number</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>coedic_expiry</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>coedic_issue_date</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>coedic_last_checked</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>coedic_archived</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>Send JSON true or false.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The coedic_id field is required.</code></li>\n<li><code>Compliance Check record with ID &lt;id&gt; does not exist.</code></li>\n<li><code>The coedic_issue_date field must be a valid date.</code></li>\n<li><code>The coedic_expiry field must be a valid date.</code></li>\n<li><code>The coedic_last_checked field must be a valid date.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"2334376f-7195-48ce-bb38-7d66d37e3b13","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateEmployeeComplianceCheck\"\n    },\n    \"body\": [\n        {\n            \"coedic_id\": 4410,\n            \"coedic_expiry\": \"2031-05-01\",\n            \"coedic_last_checked\": \"2026-03-02\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateEmployeeComplianceCheck\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"7a7d0097-a1f5-48f1-b778-c023c5ed57c3"}],"id":"e6f7a97b-8eeb-4907-9434-23c2f8d3282e","_postman_id":"e6f7a97b-8eeb-4907-9434-23c2f8d3282e","description":""},{"name":"Settings","item":[{"name":"Miscellaneous","item":[{"name":"Fetch Statuses","id":"101ce002-91ce-48d9-b837-21142d90b849","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchStatuses\",\n        \"orderby\": \"prst_name\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's employee (candidate) statuses, sorted by <code>prst_name</code> unless you send <code>orderby</code>. Send <code>prst_id</code> to fetch one; an error is returned if it does not exist. Use <code>prst_id</code> in Add and Update Employee.</p>\n<p><strong>Service:</strong> <code>fetchStatuses</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prst_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prst_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>status fields</code></td>\n<td></td>\n<td>prst_id, prst_name, prst_desc, prst_group, prst_adapt_code, prst_active, prst_default_status (on or off), prst_showon_bookings, prst_showon_availability, prst_showon_compliance, prst_include_alert, prst_requires_mandatory_fields, prst_showon_messages, prst_showon_updates, prst_showon_hotlists, prst_showon_locations_radius (0 or 1), prst_sync_ext_system (yes or no), prst_created, prst_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Status with Panther Id  '&lt;prst_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"ee277bcd-5db7-481f-bfb3-e742a86b5a8b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchStatuses\",\n        \"orderby\": \"prst_name\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchStatuses\",\n        \"orderby\": \"prst_name\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prst_id\": 5,\n            \"prst_name\": \"Active\",\n            \"prst_desc\": \"\",\n            \"prst_group\": \"ACTIVE\",\n            \"prst_default_status\": \"on\",\n            \"prst_adapt_code\": \"\",\n            \"prst_active\": \"on\",\n            \"prst_showon_bookings\": \"yes\",\n            \"prst_include_alert\": 0,\n            \"prst_requires_mandatory_fields\": 0,\n            \"prst_showon_availability\": \"yes\",\n            \"prst_showon_compliance\": \"yes\",\n            \"prst_showon_messages\": 1,\n            \"prst_showon_updates\": 1,\n            \"prst_showon_hotlists\": 1,\n            \"prst_showon_locations_radius\": 1,\n            \"prst_sync_ext_system\": \"no\",\n            \"prst_created\": \"2026-01-05 09:00:00\",\n            \"prst_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"101ce002-91ce-48d9-b837-21142d90b849"},{"name":"Fetch Availability Reasons","id":"0edbe219-edd4-4d9c-b674-2f01202851a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAvailabilityReasons\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's availability (unavailability and leave) reasons, sorted by <code>sbar_label</code> unless you send <code>orderby</code>. Send <code>sbar_id</code> to fetch one; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchAvailabilityReasons</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbar_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbar_label</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>reason fields</code></td>\n<td></td>\n<td>sbar_id, sbar_type, sbar_label, sbar_allow_edit, sbar_exclude_fatigue, sbar_default_leave_reason, sbar_rest_week, sbacn_id, sbacn_start_time, sbacn_end_time, sbar_active, sbar_created, sbar_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Availability Reason with Panther Id '&lt;sbar_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"9fab4e2f-75f2-4320-8a08-29cb8021694c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAvailabilityReasons\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchAvailabilityReasons\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbar_id\": 4,\n            \"sbar_type\": \"NA\",\n            \"sbar_label\": \"Annual Leave\",\n            \"sbar_allow_edit\": \"off\",\n            \"sbar_exclude_fatigue\": \"off\",\n            \"sbar_default_leave_reason\": \"on\",\n            \"sbar_rest_week\": \"off\",\n            \"sbacn_id\": 0,\n            \"sbacn_start_time\": \"\",\n            \"sbacn_end_time\": \"\",\n            \"sbar_active\": \"on\",\n            \"sbar_created\": \"2026-01-05 09:00:00\",\n            \"sbar_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"0edbe219-edd4-4d9c-b674-2f01202851a8"},{"name":"Fetch Cancellation Reasons","id":"695ccedd-8671-4ba1-85d0-a1695c6550a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchCancellationReasons\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's shift cancellation reasons, sorted by <code>sbcr_label</code> unless you send <code>orderby</code>. Send <code>sbcr_id</code> to fetch one; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchCancellationReasons</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcr_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbcr_label</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>reason fields</code></td>\n<td></td>\n<td>sbcr_id, sbcr_label, sbcr_type, sbcr_active, sbcr_acceptable (yes or no), sbcr_created, sbcr_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Cancellation Reason with Panther Id '&lt;sbcr_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"4898aa6a-433c-406c-b28d-24670e2ee0d0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchCancellationReasons\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchCancellationReasons\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbcr_id\": 7,\n            \"sbcr_label\": \"Illness\",\n            \"sbcr_type\": \"EMPLOYEE\",\n            \"sbcr_active\": \"on\",\n            \"sbcr_acceptable\": \"yes\",\n            \"sbcr_created\": \"2026-01-05 09:00:00\",\n            \"sbcr_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"695ccedd-8671-4ba1-85d0-a1695c6550a3"},{"name":"Fetch Pay Types","id":"0a58e81a-48b6-4011-8714-368b9815e939","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchPayTypes\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's pay types, sorted by <code>sbpt_desc</code> unless you send <code>orderby</code>. Send <code>sbpt_id</code> to fetch one; an error is returned if it does not exist. Use <code>sbpt_id</code> on employees. Your system's screens may use another name for pay types (Terminology Overrides; 'Custom Tag 1' by default), and the not-found message uses that name.</p>\n<p><strong>Service:</strong> <code>fetchPayTypes</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbpt_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbpt_desc</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pay type fields</code></td>\n<td></td>\n<td>sbpt_id, sbpt_desc, sbpt_active, sbpt_created, sbpt_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: The name used for pay types in screens and in the not-found message.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Custom Tag 1 with Panther Id '&lt;sbpt_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"e24c1cee-04c3-425b-bafa-4755d2778b18","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchPayTypes\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchPayTypes\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbpt_id\": 1,\n            \"sbpt_desc\": \"PAYE Weekly\",\n            \"sbpt_active\": \"on\",\n            \"sbpt_created\": \"2026-01-05 09:00:00\",\n            \"sbpt_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"0a58e81a-48b6-4011-8714-368b9815e939"},{"name":"Fetch Pay Schemes","id":"12b44666-9366-409c-befc-a3599659ba8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchPaySchemes\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's pay schemes, sorted by <code>prps_name</code> unless you send <code>orderby</code>. Send <code>prps_id</code> to fetch one; an error is returned if it does not exist. <code>prps_type</code> tells you which pay scheme details apply to an employee: PAYE, umbrella or limited company.</p>\n<p><strong>Service:</strong> <code>fetchPaySchemes</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prps_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prps_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pay scheme fields</code></td>\n<td></td>\n<td>prps_id, prps_name, prps_type (NONE, PAYE, LTD, UMBRELLA or EXPENSE), prps_default (on or off), prps_empno_prefixes, prps_empno_suffixes, prps_allow_pdf_timesheets, prps_active, prps_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Pay Scheme with Panther Id '&lt;prps_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"fadc7580-4bb9-4c22-9536-6ddaa64ce3cd","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchPaySchemes\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchPaySchemes\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prps_id\": 7,\n            \"prps_name\": \"PAYE\",\n            \"prps_type\": \"PAYE\",\n            \"prps_empno_prefixes\": \"\",\n            \"prps_empno_suffixes\": \"\",\n            \"prps_allow_pdf_timesheets\": \"on\",\n            \"prps_default\": \"on\",\n            \"prps_active\": \"on\",\n            \"prps_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"12b44666-9366-409c-befc-a3599659ba8d"},{"name":"Fetch Pay Frequencies","id":"ae1a2aaa-9948-4796-af16-2506e1f5d9d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchPayFrequencies\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's pay frequencies, sorted by <code>prf_desc</code> unless you send <code>orderby</code>. Send <code>prf_id</code> to fetch one; an error is returned if it does not exist. Use <code>prf_id</code> on employees. Your system's screens may use another name for pay frequencies (Terminology Overrides; 'Custom Tag 2' by default), and the not-found message uses that name.</p>\n<p><strong>Service:</strong> <code>fetchPayFrequencies</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prf_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prf_desc</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pay frequency fields</code></td>\n<td></td>\n<td>prf_id, prf_label, prf_desc, prf_active, prf_created, prf_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: The name used for pay frequencies in screens and in the not-found message.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Custom Tag 2 with Panther Id '&lt;prf_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"5d84dafc-27df-4261-9760-b6079b14ddd2","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchPayFrequencies\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchPayFrequencies\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prf_id\": 2,\n            \"prf_label\": \"Weekly\",\n            \"prf_desc\": \"Pay weekly\",\n            \"prf_active\": \"on\",\n            \"prf_created\": \"2026-01-05 09:00:00\",\n            \"prf_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"ae1a2aaa-9948-4796-af16-2506e1f5d9d9"},{"name":"Fetch Genders","id":"55fcfd6a-d5b4-4fc8-8716-86040caea3f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchGenders\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's genders, sorted by <code>prg_desc</code> unless you send <code>orderby</code>. Send <code>prg_id</code> to fetch one; an error is returned if it does not exist. On employees the field is called <code>preg_id</code> but holds a <code>prg_id</code>.</p>\n<p><strong>Service:</strong> <code>fetchGenders</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prg_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prg_desc</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>gender fields</code></td>\n<td></td>\n<td>prg_id, prg_desc, prg_active, prg_created.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Gender with Panther Id '&lt;prg_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"942d2413-9ad0-46f8-8672-fd2755283083","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchGenders\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchGenders\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prg_id\": 1,\n            \"prg_desc\": \"Female\",\n            \"prg_active\": \"on\",\n            \"prg_created\": \"2026-01-05 09:00:00\"\n        },\n        {\n            \"prg_id\": 2,\n            \"prg_desc\": \"Male\",\n            \"prg_active\": \"on\",\n            \"prg_created\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"55fcfd6a-d5b4-4fc8-8716-86040caea3f5"},{"name":"Fetch Skills","id":"9a69869f-5f22-413b-ada1-4f10c542a616","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchSkills\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's skills, each with its skills group fields, sorted by <code>prsk_name</code> unless you send <code>orderby</code>. Send <code>prsk_id</code> to fetch one; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchSkills</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prsk_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prsk_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>skill and group fields</code></td>\n<td></td>\n<td>prsk_id, prskg_id, prsk_category, prsk_name, prsk_active, prsk_created, prsk_updated, prskg_name, prskg_controlled_by, prskg_skill_on_booking (on or off), prskg_active, prskg_created, prskg_updated. Where a skill and its group share a field name, the group's value is returned.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Skill with Panther Id '&lt;prsk_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"e31a4023-55c2-4b93-9f76-fef857701c8f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchSkills\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchSkills\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prsk_id\": 17,\n            \"prskg_id\": 6,\n            \"prsk_category\": \"Expertise\",\n            \"prsk_name\": \"Manual Handling\",\n            \"prsk_active\": \"on\",\n            \"prsk_created\": \"2026-01-05 09:00:00\",\n            \"prsk_updated\": \"2026-01-05 09:00:00\",\n            \"prskg_name\": \"Practical Skills\",\n            \"prskg_skill_on_booking\": \"off\",\n            \"prskg_active\": \"on\",\n            \"prskg_created\": \"2026-01-05 09:00:00\",\n            \"prskg_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"9a69869f-5f22-413b-ada1-4f10c542a616"},{"name":"Fetch Skills Groups","id":"b8843aaa-ace7-4744-89fa-1376c2b39fa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchSkillsGroups\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's skills groups, sorted by <code>prskg_name</code> unless you send <code>orderby</code>. Send <code>prskg_id</code> to fetch one; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchSkillsGroups</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prskg_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prskg_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>group fields</code></td>\n<td></td>\n<td>prskg_id, prskg_name, prskg_controlled_by, prskg_skill_on_booking (on or off), prskg_active, prskg_created, prskg_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Skill Group with Panther Id '&lt;prskg_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"12803653-b86f-47ac-b99c-497f33dd8419","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchSkillsGroups\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchSkillsGroups\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prskg_id\": 6,\n            \"prskg_name\": \"Practical Skills\",\n            \"prskg_skill_on_booking\": \"off\",\n            \"prskg_active\": \"on\",\n            \"prskg_created\": \"2026-01-05 09:00:00\",\n            \"prskg_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"b8843aaa-ace7-4744-89fa-1376c2b39fa8"},{"name":"Fetch Sources","id":"c5d291b6-8838-423a-84c9-f51c6401dd97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchSources\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's candidate sources (where a candidate came from, for example a job board), sorted by <code>prso_desc</code> unless you send <code>orderby</code>. Send <code>prso_id</code> to fetch one; an error is returned if it does not exist. Use <code>prso_id</code> on employees.</p>\n<p><strong>Service:</strong> <code>fetchSources</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prso_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this record.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prso_desc</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n<tr>\n<td><code>offset / maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Paging: row offset and maximum number of rows. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>source fields</code></td>\n<td></td>\n<td>prso_id, prso_desc (unique), prso_active, and created and updated date-times.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Source with Panther Id '&lt;prso_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"d0f36914-ee44-49b7-a095-d26e52afc050","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchSources\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchSources\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prso_id\": 3,\n            \"prso_desc\": \"Website\",\n            \"prso_active\": \"on\"\n        }\n    ]\n}"}],"_postman_id":"c5d291b6-8838-423a-84c9-f51c6401dd97"}],"id":"1ec68b07-18df-4cc2-8f7d-85800f6cc5c6","_postman_id":"1ec68b07-18df-4cc2-8f7d-85800f6cc5c6","description":""},{"name":"Duties","item":[{"name":"Add Duty","id":"daf30cf9-61ea-4f22-b0d3-285fe93a720e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addDuty\"\n    },\n    \"body\": [\n        {\n            \"prd_desc\": \"Registered Nurse\",\n            \"prd_code\": \"RN\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"EXT-RN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more duties. Each body row is one duty. All rows are added together: if one row fails, none is added. Returns <code>prd_id</code> (a string) for each row, and <code>ext_id</code> when you supplied one. <code>prd_created</code> and <code>prd_updated</code> cannot be set.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>addDuty</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_desc</code></td>\n<td>varchar(60)</td>\n<td>Yes</td>\n<td>Description. Required on add; must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>prd_desc_tenant</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Your own description.</td>\n</tr>\n<tr>\n<td><code>prd_code</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Duty group id (Fetch Duty Groups). Must exist unless 0.</td>\n</tr>\n<tr>\n<td><code>prd_active</code></td>\n<td>enum</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_1_sylku_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Fee deduction 1 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_2_sylku_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Fee deduction 2 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>(any other duty column)</code></td>\n<td></td>\n<td>No</td>\n<td>Any other column of the duty table, except *_created and *_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>string</td>\n<td>New duty id (a string).</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>Echoed when supplied and not blank.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Description [prd_desc] is required</code></li>\n<li><code>A Specialism already exists with the description '&lt;prd_desc&gt;</code></li>\n<li><code>External Id '&lt;ext_id&gt;' [ext_id] is already assigned to Specialism '&lt;prd_desc&gt;'</code></li>\n<li><code>Code '&lt;prd_code&gt;' [prd_code] has alreay been allocated to Specialism '&lt;prd_desc&gt;'</code></li>\n<li><code>Specialism Description [prd_desc] cannot be blank</code></li>\n<li><code>No Specialism Group [prdg_id] exists with Panther Id '&lt;prdg_id&gt;'</code></li>\n<li><code>Illegal action: It is not possible to update the field 'prd_created'</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n<li><code>prd_desc cannot be longer than 60 characters</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"0438ea2f-4e23-4660-9aa8-ca8b2f07800e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addDuty\"\n    },\n    \"body\": [\n        {\n            \"prd_desc\": \"Registered Nurse\",\n            \"prd_code\": \"RN\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"EXT-RN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addDuty\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": \"12\",\n            \"ext_id\": \"EXT-RN\"\n        }\n    ]\n}"}],"_postman_id":"daf30cf9-61ea-4f22-b0d3-285fe93a720e"},{"name":"Update Duty","id":"829595f5-7f17-4144-960b-036255a23d6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateDuty\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12,\n            \"prd_desc\": \"Registered Nurse (Adult)\",\n            \"prdg_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more duties. Each row needs <code>prd_id</code> and at least one field to change. <code>prd_desc</code>, <code>prd_code</code> and <code>ext_id</code> must stay unique. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>updateDuty</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Duty to update.</td>\n</tr>\n<tr>\n<td><code>prd_desc</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Description. Must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>prd_desc_tenant</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Your own description.</td>\n</tr>\n<tr>\n<td><code>prd_code</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Duty group id (Fetch Duty Groups). Must exist unless 0.</td>\n</tr>\n<tr>\n<td><code>prd_active</code></td>\n<td>enum</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_1_sylku_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Fee deduction 1 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_2_sylku_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Fee deduction 2 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>(any other duty column)</code></td>\n<td></td>\n<td>No</td>\n<td>Any other column of the duty table, except *_created and *_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism's Panther Id [prd_id] is required</code></li>\n<li><code>No Specialism exists with Panther Id '&lt;prd_id&gt;'</code></li>\n<li><code>A Specialism already exists with the name '&lt;prd_desc&gt;'</code></li>\n<li><code>External Id '&lt;ext_id&gt;' is already assigned to Specialism '&lt;prd_desc&gt;'</code></li>\n<li><code>Code '&lt;prd_code&gt;' has alreay been allocated to Specialism '&lt;prd_desc&gt;'</code></li>\n<li><code>Specialism Description [prd_desc] cannot be blank</code></li>\n<li><code>No Specialism Group [prdg_id] exists with Panther Id '&lt;prdg_id&gt;'</code></li>\n<li><code>You must update at least one field</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"0c8d8a75-2387-4805-a4cc-dd6b03220221","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateDuty\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12,\n            \"prd_desc\": \"Registered Nurse (Adult)\",\n            \"prdg_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateDuty\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"829595f5-7f17-4144-960b-036255a23d6c"},{"name":"Delete Duty","id":"8bb8f730-0ced-4eb6-b969-6e2528201434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteDuty\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more duties by <code>prd_id</code>. A duty used by any shift cannot be deleted. Employees who have the duty keep it on their record; remove it from them first (Update Employee, action D) if needed. All rows are deleted together: if one row fails, none is deleted. Returns an empty body.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>deleteDuty</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Duty to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism's Panther Id [prd_id] is required</code></li>\n<li><code>No Specialism exists with Panther Id '&lt;prd_id&gt;'</code></li>\n<li><code>Specialism with Panther Id '&lt;prd_id&gt;' cannot be deleted. Shifts have been booked.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"72cb1f51-5f92-4494-a316-7b9415b738a7","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteDuty\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteDuty\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"8bb8f730-0ced-4eb6-b969-6e2528201434"},{"name":"Fetch Duties","id":"00ae290d-8caf-42b6-87fc-c2c56d4a9c99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchDuties\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's duties. <code>datalevel: terse</code> (default) gives <code>prd_id</code>, <code>prd_desc</code>, <code>prdg_id</code>, <code>prd_active</code> and <code>ext_id</code>; <code>verbose</code> gives every duty field. <code>includeFKData: on</code> adds the group name. Send <code>prd_id</code> for one duty. There is no <code>ext_id</code> filter: to find a duty by <code>ext_id</code>, filter the results yourself.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>fetchDuties</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one duty.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>includeFKData</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>on adds an FKData object with the names of linked records.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prd_desc</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>prd_desc</code></td>\n<td>varchar(60)</td>\n<td>Description (unique).</td>\n</tr>\n<tr>\n<td><code>prd_desc_tenant</code></td>\n<td>varchar(60)</td>\n<td>Your own description.</td>\n</tr>\n<tr>\n<td><code>prd_code</code></td>\n<td>varchar(30)</td>\n<td>Code (unique when not blank).</td>\n</tr>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Duty group id; 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>External id (unique when not blank).</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_1_sylku_id</code></td>\n<td>int</td>\n<td>Fee deduction 1 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_2_sylku_id</code></td>\n<td>int</td>\n<td>Fee deduction 2 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_updated</code></td>\n<td>timestamp|null</td>\n<td>When the duty was last changed; null until its first change.</td>\n</tr>\n<tr>\n<td><code>prd_created</code></td>\n<td>datetime</td>\n<td>When the duty was added.</td>\n</tr>\n<tr>\n<td><code>prd_createdby_syu_id</code></td>\n<td>int|null</td>\n<td>User who added the duty, or null.</td>\n</tr>\n<tr>\n<td><code>prd_overridden, prd_jobworkload, prd_jobattention, prd_breakfrequency, prd_breakaveragelength, prd_continuousworklength, prd_breakaftercontinuous</code></td>\n<td>various</td>\n<td>Fatigue and risk settings (verbose).</td>\n</tr>\n<tr>\n<td><code>FKData.prdg_name</code></td>\n<td>string</td>\n<td>With includeFKData = on.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism with Panther Id '&lt;prd_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"96a07e48-159a-44d9-8d1e-ea9d4df5d984","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchDuties\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchDuties\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12,\n            \"prd_desc\": \"Registered Nurse\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"EXT-RN\",\n            \"FKData\": {\n                \"prdg_name\": \"Clinical\"\n            }\n        },\n        {\n            \"prd_id\": 13,\n            \"prd_desc\": \"Healthcare Assistant\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"\",\n            \"FKData\": {\n                \"prdg_name\": \"Clinical\"\n            }\n        }\n    ]\n}"}],"_postman_id":"00ae290d-8caf-42b6-87fc-c2c56d4a9c99"},{"name":"Fetch Updated Duties","id":"89bd0f16-def5-4101-83ad-8114372d394d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedDuties\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns duties changed on or after <code>updatesSince</code>, with the same fields, <code>datalevel</code> and <code>includeFKData</code> options as Fetch Duties. A newly added duty is returned only after its first change. Deleted duties are not reported.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedDuties</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>includeFKData</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>on adds an FKData object with the names of linked records.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prd_desc</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Fetch Duties)</code></td>\n<td></td>\n<td>Same fields as Fetch Duties.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"015abd3c-d764-43f0-bbaa-bdaf56b10937","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedDuties\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedDuties\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12,\n            \"prd_desc\": \"Registered Nurse\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"EXT-RN\"\n        }\n    ]\n}"}],"_postman_id":"89bd0f16-def5-4101-83ad-8114372d394d"},{"name":"Add Competency","id":"e1abe93e-ca4a-410f-8127-1fdc062eb006","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addCompetency\"\n    },\n    \"body\": [\n        {\n            \"prd_desc\": \"Registered Nurse\",\n            \"prd_code\": \"RN\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"EXT-RN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more duties. Each body row is one duty. All rows are added together: if one row fails, none is added. Returns <code>prd_id</code> (a string) for each row, and <code>ext_id</code> when you supplied one. <code>prd_created</code> and <code>prd_updated</code> cannot be set.</p>\n<p>This service is an alias of <strong>Add Duty</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>addCompetency</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_desc</code></td>\n<td>varchar(60)</td>\n<td>Yes</td>\n<td>Description. Required on add; must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>prd_desc_tenant</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Your own description.</td>\n</tr>\n<tr>\n<td><code>prd_code</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Duty group id (Fetch Duty Groups). Must exist unless 0.</td>\n</tr>\n<tr>\n<td><code>prd_active</code></td>\n<td>enum</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_1_sylku_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Fee deduction 1 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_2_sylku_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Fee deduction 2 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>(any other duty column)</code></td>\n<td></td>\n<td>No</td>\n<td>Any other column of the duty table, except *_created and *_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>string</td>\n<td>New duty id (a string).</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>Echoed when supplied and not blank.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Description [prd_desc] is required</code></li>\n<li><code>A Specialism already exists with the description '&lt;prd_desc&gt;</code></li>\n<li><code>External Id '&lt;ext_id&gt;' [ext_id] is already assigned to Specialism '&lt;prd_desc&gt;'</code></li>\n<li><code>Code '&lt;prd_code&gt;' [prd_code] has alreay been allocated to Specialism '&lt;prd_desc&gt;'</code></li>\n<li><code>Specialism Description [prd_desc] cannot be blank</code></li>\n<li><code>No Specialism Group [prdg_id] exists with Panther Id '&lt;prdg_id&gt;'</code></li>\n<li><code>Illegal action: It is not possible to update the field 'prd_created'</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n<li><code>prd_desc cannot be longer than 60 characters</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"6d6b2e0a-f231-4a26-9992-2f7f9a5195ac","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addCompetency\"\n    },\n    \"body\": [\n        {\n            \"prd_desc\": \"Registered Nurse\",\n            \"prd_code\": \"RN\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"EXT-RN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addCompetency\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": \"12\",\n            \"ext_id\": \"EXT-RN\"\n        }\n    ]\n}"}],"_postman_id":"e1abe93e-ca4a-410f-8127-1fdc062eb006"},{"name":"Update Competency","id":"af2bbc09-015f-4865-9a42-dce0d859c34a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateCompetency\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12,\n            \"prd_desc\": \"Registered Nurse (Adult)\",\n            \"prdg_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more duties. Each row needs <code>prd_id</code> and at least one field to change. <code>prd_desc</code>, <code>prd_code</code> and <code>ext_id</code> must stay unique. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p>This service is an alias of <strong>Update Duty</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>updateCompetency</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Duty to update.</td>\n</tr>\n<tr>\n<td><code>prd_desc</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Description. Must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>prd_desc_tenant</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Your own description.</td>\n</tr>\n<tr>\n<td><code>prd_code</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Duty group id (Fetch Duty Groups). Must exist unless 0.</td>\n</tr>\n<tr>\n<td><code>prd_active</code></td>\n<td>enum</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_1_sylku_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Fee deduction 1 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_2_sylku_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Fee deduction 2 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>(any other duty column)</code></td>\n<td></td>\n<td>No</td>\n<td>Any other column of the duty table, except *_created and *_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism's Panther Id [prd_id] is required</code></li>\n<li><code>No Specialism exists with Panther Id '&lt;prd_id&gt;'</code></li>\n<li><code>A Specialism already exists with the name '&lt;prd_desc&gt;'</code></li>\n<li><code>External Id '&lt;ext_id&gt;' is already assigned to Specialism '&lt;prd_desc&gt;'</code></li>\n<li><code>Code '&lt;prd_code&gt;' has alreay been allocated to Specialism '&lt;prd_desc&gt;'</code></li>\n<li><code>Specialism Description [prd_desc] cannot be blank</code></li>\n<li><code>No Specialism Group [prdg_id] exists with Panther Id '&lt;prdg_id&gt;'</code></li>\n<li><code>You must update at least one field</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"e4ee6b25-27d6-451b-8fd4-9b32d095f73d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateCompetency\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12,\n            \"prd_desc\": \"Registered Nurse (Adult)\",\n            \"prdg_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateCompetency\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"af2bbc09-015f-4865-9a42-dce0d859c34a"},{"name":"Delete Competency","id":"7a66a5d0-8305-474e-aea4-525c4dd2ed87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteCompetency\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more duties by <code>prd_id</code>. A duty used by any shift cannot be deleted. Employees who have the duty keep it on their record; remove it from them first (Update Employee, action D) if needed. All rows are deleted together: if one row fails, none is deleted. Returns an empty body.</p>\n<p>This service is an alias of <strong>Delete Duty</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>deleteCompetency</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Duty to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism's Panther Id [prd_id] is required</code></li>\n<li><code>No Specialism exists with Panther Id '&lt;prd_id&gt;'</code></li>\n<li><code>Specialism with Panther Id '&lt;prd_id&gt;' cannot be deleted. Shifts have been booked.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"f3c0709f-a0fe-4bda-9f32-c1c9a4bed69c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteCompetency\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteCompetency\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"7a66a5d0-8305-474e-aea4-525c4dd2ed87"},{"name":"Fetch Competencies","id":"62889d03-6016-4ae5-8ea8-dd2eda483afb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchCompetencies\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's duties. <code>datalevel: terse</code> (default) gives <code>prd_id</code>, <code>prd_desc</code>, <code>prdg_id</code>, <code>prd_active</code> and <code>ext_id</code>; <code>verbose</code> gives every duty field. <code>includeFKData: on</code> adds the group name. Send <code>prd_id</code> for one duty. There is no <code>ext_id</code> filter: to find a duty by <code>ext_id</code>, filter the results yourself.</p>\n<p>This service is an alias of <strong>Fetch Duties</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>fetchCompetencies</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one duty.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>includeFKData</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>on adds an FKData object with the names of linked records.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prd_desc</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>prd_desc</code></td>\n<td>varchar(60)</td>\n<td>Description (unique).</td>\n</tr>\n<tr>\n<td><code>prd_desc_tenant</code></td>\n<td>varchar(60)</td>\n<td>Your own description.</td>\n</tr>\n<tr>\n<td><code>prd_code</code></td>\n<td>varchar(30)</td>\n<td>Code (unique when not blank).</td>\n</tr>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Duty group id; 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_active</code></td>\n<td>enum('on','off')</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>External id (unique when not blank).</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_1_sylku_id</code></td>\n<td>int</td>\n<td>Fee deduction 1 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_fee_deduction_2_sylku_id</code></td>\n<td>int</td>\n<td>Fee deduction 2 (lookup id); 0 = none.</td>\n</tr>\n<tr>\n<td><code>prd_updated</code></td>\n<td>timestamp|null</td>\n<td>When the duty was last changed; null until its first change.</td>\n</tr>\n<tr>\n<td><code>prd_created</code></td>\n<td>datetime</td>\n<td>When the duty was added.</td>\n</tr>\n<tr>\n<td><code>prd_createdby_syu_id</code></td>\n<td>int|null</td>\n<td>User who added the duty, or null.</td>\n</tr>\n<tr>\n<td><code>prd_overridden, prd_jobworkload, prd_jobattention, prd_breakfrequency, prd_breakaveragelength, prd_continuousworklength, prd_breakaftercontinuous</code></td>\n<td>various</td>\n<td>Fatigue and risk settings (verbose).</td>\n</tr>\n<tr>\n<td><code>FKData.prdg_name</code></td>\n<td>string</td>\n<td>With includeFKData = on.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism with Panther Id '&lt;prd_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"93140851-a10b-450c-ac9b-370e80e44cf9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchCompetencies\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchCompetencies\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12,\n            \"prd_desc\": \"Registered Nurse\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"EXT-RN\",\n            \"FKData\": {\n                \"prdg_name\": \"Clinical\"\n            }\n        },\n        {\n            \"prd_id\": 13,\n            \"prd_desc\": \"Healthcare Assistant\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"\",\n            \"FKData\": {\n                \"prdg_name\": \"Clinical\"\n            }\n        }\n    ]\n}"}],"_postman_id":"62889d03-6016-4ae5-8ea8-dd2eda483afb"},{"name":"Fetch Updated Competencies","id":"daf18dde-abc2-40de-87cb-2862c71def2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedCompetencies\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns duties changed on or after <code>updatesSince</code>, with the same fields, <code>datalevel</code> and <code>includeFKData</code> options as Fetch Duties. A newly added duty is returned only after its first change. Deleted duties are not reported.</p>\n<p>This service is an alias of <strong>Fetch Updated Duties</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duties <strong>Specialisms</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedCompetencies</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>includeFKData</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>on adds an FKData object with the names of linked records.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prd_desc</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Fetch Duties)</code></td>\n<td></td>\n<td>Same fields as Fetch Duties.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"c1048e92-d0e4-4465-ad7c-8d5a5fd36eb6","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedCompetencies\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedCompetencies\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prd_id\": 12,\n            \"prd_desc\": \"Registered Nurse\",\n            \"prdg_id\": 3,\n            \"prd_active\": \"on\",\n            \"ext_id\": \"EXT-RN\"\n        }\n    ]\n}"}],"_postman_id":"daf18dde-abc2-40de-87cb-2862c71def2f"}],"id":"e1fde95c-2b0e-4e66-bfd2-276955086d8e","_postman_id":"e1fde95c-2b0e-4e66-bfd2-276955086d8e","description":""},{"name":"Duty Groups","item":[{"name":"Add Duty Group","id":"c247cf70-7c36-4de3-ad97-d4d7d727d033","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addDutyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_name\": \"Clinical\",\n            \"prdg_code\": \"CLIN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more duty groups. <code>prdg_name</code> is required and must be unique; <code>prdg_code</code> must be unique when not blank. <code>prdg_created</code> is set for you. All rows are added together: if one row fails, none is added. Returns <code>prdg_id</code> (a string) for each row.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>addDutyGroup</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_name</code></td>\n<td>varchar(60)</td>\n<td>Yes</td>\n<td>Group name. Required; must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>prdg_code</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>string</td>\n<td>New group id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Group Description [prdg_name] is required</code></li>\n<li><code>A Specialism Group already exists with the description '&lt;prdg_name&gt;</code></li>\n<li><code>Code '' [prdg_code] has alreay been allocated to Specialism Group'&lt;prdg_name&gt;'</code></li>\n<li><code>Specialism Group Name [prdg_name] cannot be blank</code></li>\n<li><code>Illegal action: It is not possible to update the field 'prdg_created'</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"ac993acc-d76a-42f3-b6a5-171614c821ba","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addDutyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_name\": \"Clinical\",\n            \"prdg_code\": \"CLIN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addDutyGroup\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": \"3\"\n        }\n    ]\n}"}],"_postman_id":"c247cf70-7c36-4de3-ad97-d4d7d727d033"},{"name":"Update Duty Group","id":"f8a58c8f-5c27-440b-814a-83091d100ec8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateDutyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3,\n            \"prdg_name\": \"Clinical Roles\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more duty groups by <code>prdg_id</code>. Name and code must stay unique. Returns an empty body.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>updateDutyGroup</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Group to update.</td>\n</tr>\n<tr>\n<td><code>prdg_name</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>prdg_code</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Must be unique when not blank.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Group's Panther Id [prdg_id] is required</code></li>\n<li><code>No Specialism Group exists with Panther Id '&lt;prdg_id&gt;'</code></li>\n<li><code>A Specialism Group already exists with the name '&lt;prdg_name&gt;'</code></li>\n<li><code>Code '&lt;prdg_code&gt;' has alreay been allocated to Specialism Group '&lt;prdg_name&gt;'</code></li>\n<li><code>Specialism Group Name [prdg_name] cannot be blank</code></li>\n<li><code>You must update at least one field</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"dbaa6874-3ed1-4371-b959-9151003a0ecf","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateDutyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3,\n            \"prdg_name\": \"Clinical Roles\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateDutyGroup\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"f8a58c8f-5c27-440b-814a-83091d100ec8"},{"name":"Delete Duty Group","id":"96219052-56a9-490f-9d61-30d1cb10779b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteDutyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more duty groups by <code>prdg_id</code>. A group that internal users are restricted to cannot be deleted. Duties in the group are not changed and keep the group id; move them to another group first if needed. Returns an empty body.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>deleteDutyGroup</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Group to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Group's Panther Id [prdg_id] is required</code></li>\n<li><code>No Specialism Group exists with Panther Id '&lt;prdg_id&gt;'</code></li>\n<li><code>Specialism Group with Panther Id '&lt;prdg_id&gt;' cannot be deleted. This Group has users allocated to it.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"61999bbf-76e1-4ae1-9f10-d189cb0a1de8","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteDutyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteDutyGroup\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"96219052-56a9-490f-9d61-30d1cb10779b"},{"name":"Fetch Duty Groups","id":"fdfb826d-038f-47fb-a945-99f855507b07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchDutyGroups\",\n        \"orderby\": \"prdg_name\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's duty groups, sorted by <code>prdg_name</code> unless you send <code>orderby</code>. Send <code>prdg_id</code> in the header to fetch one record; an error is returned if it does not exist. <code>datalevel</code> and <code>includeFKData</code> have no effect.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>fetchDutyGroups</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this group.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prdg_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>prdg_code</code></td>\n<td>varchar(60)</td>\n<td>Code (unique when not blank).</td>\n</tr>\n<tr>\n<td><code>prdg_name</code></td>\n<td>varchar(60)</td>\n<td>Name (unique).</td>\n</tr>\n<tr>\n<td><code>prdg_created</code></td>\n<td>datetime</td>\n<td>When the group was added.</td>\n</tr>\n<tr>\n<td><code>prdg_updated</code></td>\n<td>datetime/timestamp</td>\n<td>When the group was last changed.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Group with Panther Id '&lt;prdg_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"7e4bf958-3d81-4247-901e-bbcad85c9188","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchDutyGroups\",\n        \"orderby\": \"prdg_name\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchDutyGroups\",\n        \"orderby\": \"prdg_name\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3,\n            \"prdg_code\": \"CLIN\",\n            \"prdg_name\": \"Clinical\",\n            \"prdg_created\": \"2026-01-05 09:00:00\",\n            \"prdg_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"fdfb826d-038f-47fb-a945-99f855507b07"},{"name":"Fetch Updated Duty Groups","id":"4ce26048-8b8a-40e9-b073-068c6d0b97a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedDutyGroups\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns duty groups changed on or after <code>updatesSince</code>. Deleted groups are not reported.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedDutyGroups</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prdg_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>prdg_code</code></td>\n<td>varchar(60)</td>\n<td>Code (unique when not blank).</td>\n</tr>\n<tr>\n<td><code>prdg_name</code></td>\n<td>varchar(60)</td>\n<td>Name (unique).</td>\n</tr>\n<tr>\n<td><code>prdg_created</code></td>\n<td>datetime</td>\n<td>When the group was added.</td>\n</tr>\n<tr>\n<td><code>prdg_updated</code></td>\n<td>datetime/timestamp</td>\n<td>When the group was last changed.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"020d82ae-fc1a-4dd2-8bed-16cb39f9f8c4","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedDutyGroups\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedDutyGroups\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3,\n            \"prdg_code\": \"CLIN\",\n            \"prdg_name\": \"Clinical\",\n            \"prdg_created\": \"2026-01-05 09:00:00\",\n            \"prdg_updated\": \"2026-03-02 10:00:00\"\n        }\n    ]\n}"}],"_postman_id":"4ce26048-8b8a-40e9-b073-068c6d0b97a8"},{"name":"Add Competency Group","id":"c31b1e32-84dc-4c61-91da-f6ef66a6fd67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addCompetencyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_name\": \"Clinical\",\n            \"prdg_code\": \"CLIN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more duty groups. <code>prdg_name</code> is required and must be unique; <code>prdg_code</code> must be unique when not blank. <code>prdg_created</code> is set for you. All rows are added together: if one row fails, none is added. Returns <code>prdg_id</code> (a string) for each row.</p>\n<p>This service is an alias of <strong>Add Duty Group</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>addCompetencyGroup</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_name</code></td>\n<td>varchar(60)</td>\n<td>Yes</td>\n<td>Group name. Required; must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>prdg_code</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>string</td>\n<td>New group id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Group Description [prdg_name] is required</code></li>\n<li><code>A Specialism Group already exists with the description '&lt;prdg_name&gt;</code></li>\n<li><code>Code '' [prdg_code] has alreay been allocated to Specialism Group'&lt;prdg_name&gt;'</code></li>\n<li><code>Specialism Group Name [prdg_name] cannot be blank</code></li>\n<li><code>Illegal action: It is not possible to update the field 'prdg_created'</code></li>\n<li><code>Unknown field: '&lt;field&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"22d2b9d6-0840-43b3-8262-72cd3ee0db7a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addCompetencyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_name\": \"Clinical\",\n            \"prdg_code\": \"CLIN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addCompetencyGroup\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": \"3\"\n        }\n    ]\n}"}],"_postman_id":"c31b1e32-84dc-4c61-91da-f6ef66a6fd67"},{"name":"Update Competency Group","id":"4c56dd78-dd8f-468b-ae47-18681ff59c93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateCompetencyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3,\n            \"prdg_name\": \"Clinical Roles\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more duty groups by <code>prdg_id</code>. Name and code must stay unique. Returns an empty body.</p>\n<p>This service is an alias of <strong>Update Duty Group</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>updateCompetencyGroup</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Group to update.</td>\n</tr>\n<tr>\n<td><code>prdg_name</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>prdg_code</code></td>\n<td>varchar(60)</td>\n<td>No</td>\n<td>Must be unique when not blank.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Group's Panther Id [prdg_id] is required</code></li>\n<li><code>No Specialism Group exists with Panther Id '&lt;prdg_id&gt;'</code></li>\n<li><code>A Specialism Group already exists with the name '&lt;prdg_name&gt;'</code></li>\n<li><code>Code '&lt;prdg_code&gt;' has alreay been allocated to Specialism Group '&lt;prdg_name&gt;'</code></li>\n<li><code>Specialism Group Name [prdg_name] cannot be blank</code></li>\n<li><code>You must update at least one field</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"f4b7a053-cb23-4b65-81fe-ff2dff0811a9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateCompetencyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3,\n            \"prdg_name\": \"Clinical Roles\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateCompetencyGroup\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"4c56dd78-dd8f-468b-ae47-18681ff59c93"},{"name":"Delete Competency Group","id":"cbdb844d-8220-44a1-ae74-48e28b8d386f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteCompetencyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more duty groups by <code>prdg_id</code>. A group that internal users are restricted to cannot be deleted. Duties in the group are not changed and keep the group id; move them to another group first if needed. Returns an empty body.</p>\n<p>This service is an alias of <strong>Delete Duty Group</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>deleteCompetencyGroup</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Group to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Group's Panther Id [prdg_id] is required</code></li>\n<li><code>No Specialism Group exists with Panther Id '&lt;prdg_id&gt;'</code></li>\n<li><code>Specialism Group with Panther Id '&lt;prdg_id&gt;' cannot be deleted. This Group has users allocated to it.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"32238435-4bbc-4ba8-850c-1be1b87c9ab2","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteCompetencyGroup\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteCompetencyGroup\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"cbdb844d-8220-44a1-ae74-48e28b8d386f"},{"name":"Fetch Competency Groups","id":"87e8afad-3067-4639-b2fb-0ec0d3d946c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchCompetencyGroups\",\n        \"orderby\": \"prdg_name\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's duty groups, sorted by <code>prdg_name</code> unless you send <code>orderby</code>. Send <code>prdg_id</code> in the header to fetch one record; an error is returned if it does not exist. <code>datalevel</code> and <code>includeFKData</code> have no effect.</p>\n<p>This service is an alias of <strong>Fetch Duty Groups</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>fetchCompetencyGroups</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return just this group.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prdg_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>prdg_code</code></td>\n<td>varchar(60)</td>\n<td>Code (unique when not blank).</td>\n</tr>\n<tr>\n<td><code>prdg_name</code></td>\n<td>varchar(60)</td>\n<td>Name (unique).</td>\n</tr>\n<tr>\n<td><code>prdg_created</code></td>\n<td>datetime</td>\n<td>When the group was added.</td>\n</tr>\n<tr>\n<td><code>prdg_updated</code></td>\n<td>datetime/timestamp</td>\n<td>When the group was last changed.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Specialism Group with Panther Id '&lt;prdg_id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"22f77e4c-ba94-456b-9dfa-f736204b6b57","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchCompetencyGroups\",\n        \"orderby\": \"prdg_name\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchCompetencyGroups\",\n        \"orderby\": \"prdg_name\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3,\n            \"prdg_code\": \"CLIN\",\n            \"prdg_name\": \"Clinical\",\n            \"prdg_created\": \"2026-01-05 09:00:00\",\n            \"prdg_updated\": \"2026-01-05 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"87e8afad-3067-4639-b2fb-0ec0d3d946c0"},{"name":"Fetch Updated Competency Groups","id":"c384a11a-f4e0-423b-9ab1-fedec8e221e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedCompetencyGroups\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns duty groups changed on or after <code>updatesSince</code>. Deleted groups are not reported.</p>\n<p>This service is an alias of <strong>Fetch Updated Duty Groups</strong> and works the same way; the 'Competency' name is older wording.</p>\n<p>Your system's screens may call duty groups <strong>Specialism Groups</strong> (the wording can be changed in Terminology Overrides on the Configuration screen). Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedCompetencyGroups</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Row offset for paging. If you send offset without maxrows, maxrows defaults to 10.</td>\n</tr>\n<tr>\n<td><code>maxrows</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Maximum number of rows to return.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prdg_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prdg_id</code></td>\n<td>int</td>\n<td>Primary key</td>\n</tr>\n<tr>\n<td><code>prdg_code</code></td>\n<td>varchar(60)</td>\n<td>Code (unique when not blank).</td>\n</tr>\n<tr>\n<td><code>prdg_name</code></td>\n<td>varchar(60)</td>\n<td>Name (unique).</td>\n</tr>\n<tr>\n<td><code>prdg_created</code></td>\n<td>datetime</td>\n<td>When the group was added.</td>\n</tr>\n<tr>\n<td><code>prdg_updated</code></td>\n<td>datetime/timestamp</td>\n<td>When the group was last changed.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"171bc61c-6e9f-4ca0-9e1c-ba539318ff7a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedCompetencyGroups\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedCompetencyGroups\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prdg_id\": 3,\n            \"prdg_code\": \"CLIN\",\n            \"prdg_name\": \"Clinical\",\n            \"prdg_created\": \"2026-01-05 09:00:00\",\n            \"prdg_updated\": \"2026-03-02 10:00:00\"\n        }\n    ]\n}"}],"_postman_id":"c384a11a-f4e0-423b-9ab1-fedec8e221e6"}],"id":"c3782dff-8d1e-4758-8d3c-20cb21c4f9ba","_postman_id":"c3782dff-8d1e-4758-8d3c-20cb21c4f9ba","description":""}],"id":"d4cbcd39-23c2-4db6-9ac6-d91ddca4fef7","_postman_id":"d4cbcd39-23c2-4db6-9ac6-d91ddca4fef7","description":""},{"name":"Employee Activity","item":[{"name":"Add Employee Note","id":"6d7e422c-a3e3-4db1-95ee-0efa71061c99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeNote\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"prn_text\": \"Spoke to Alex about weekend availability.\",\n            \"prn_date\": \"2026-03-02\",\n            \"prn_time\": \"14:30:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more notes to employees' activity history. Each note is recorded as made by the API user. <code>prn_date</code> and <code>prn_time</code> default to the current date and time.</p>\n<p>All rows are checked before anything is saved; checking stops at the first row with an error. Unknown fields are ignored. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<p><strong>Service:</strong> <code>addEmployeeNote</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee. Must exist.</td>\n</tr>\n<tr>\n<td><code>prn_text</code></td>\n<td>text</td>\n<td>Yes</td>\n<td>Text. Cannot be empty.</td>\n</tr>\n<tr>\n<td><code>prn_date</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td>Date (YYYY-MM-DD). Default: today.</td>\n</tr>\n<tr>\n<td><code>prn_time</code></td>\n<td>time HH:MM:SS</td>\n<td>No</td>\n<td>Time (HH:MM:SS). Default: now.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prn_id</code></td>\n<td>string (numeric)</td>\n<td>New note id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The pre_id field is required.</code></li>\n<li><code>The prn_text field is required.</code></li>\n<li><code>Employee record with ID &lt;pre_id&gt; does not exist.</code></li>\n<li><code>The prn_date field must be a valid date.</code></li>\n<li><code>The prn_time field must be a valid time.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"aec4dc43-f912-414e-aa82-921ef0f48b76","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeNote\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"prn_text\": \"Spoke to Alex about weekend availability.\",\n            \"prn_date\": \"2026-03-02\",\n            \"prn_time\": \"14:30:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addEmployeeNote\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prn_id\": \"8812\"\n        }\n    ]\n}"}],"_postman_id":"6d7e422c-a3e3-4db1-95ee-0efa71061c99"},{"name":"Add Employee Call","id":"770e9092-dfc5-49bd-b7ec-6fde247a55ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeCall\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"prn_text\": \"Called to confirm Monday's shift. No answer, left voicemail.\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Logs one or more calls in employees' activity history, as made by the API user. Same fields, defaults, checks and responses as Add Employee Note. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<p><strong>Service:</strong> <code>addEmployeeCall</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee. Must exist.</td>\n</tr>\n<tr>\n<td><code>prn_text</code></td>\n<td>text</td>\n<td>Yes</td>\n<td>Call notes. Cannot be empty.</td>\n</tr>\n<tr>\n<td><code>prn_date</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td>Date (YYYY-MM-DD). Default: today.</td>\n</tr>\n<tr>\n<td><code>prn_time</code></td>\n<td>time HH:MM:SS</td>\n<td>No</td>\n<td>Time (HH:MM:SS). Default: now.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prn_id</code></td>\n<td>string (numeric)</td>\n<td>New entry id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The pre_id field is required.</code></li>\n<li><code>The prn_text field is required.</code></li>\n<li><code>Employee record with ID &lt;pre_id&gt; does not exist.</code></li>\n<li><code>The prn_date field must be a valid date.</code></li>\n<li><code>The prn_time field must be a valid time.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"8b990886-8876-4d19-bfe2-bd5b30d8f280","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeCall\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"prn_text\": \"Called to confirm Monday's shift. No answer, left voicemail.\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addEmployeeCall\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prn_id\": \"8813\"\n        }\n    ]\n}"}],"_postman_id":"770e9092-dfc5-49bd-b7ec-6fde247a55ad"},{"name":"Add Employee Reminder","id":"c90f7ef3-8370-46a5-8f2b-2573f3cd6bc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeReminder\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"prn_text\": \"Chase updated DBS certificate.\",\n            \"prn_date\": \"2026-04-01\",\n            \"prn_time\": \"09:00:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more reminders against employees for the API user. <code>prn_date</code> and <code>prn_time</code> are when the reminder is due (default: now). Same checks and responses as Add Employee Note. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<p><strong>Service:</strong> <code>addEmployeeReminder</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee. Must exist.</td>\n</tr>\n<tr>\n<td><code>prn_text</code></td>\n<td>text</td>\n<td>Yes</td>\n<td>Reminder text. Cannot be empty.</td>\n</tr>\n<tr>\n<td><code>prn_date</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td>Due date (YYYY-MM-DD). Default: today.</td>\n</tr>\n<tr>\n<td><code>prn_time</code></td>\n<td>time HH:MM:SS</td>\n<td>No</td>\n<td>Due time (HH:MM:SS). Default: now.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prn_id</code></td>\n<td>string (numeric)</td>\n<td>New reminder id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The pre_id field is required.</code></li>\n<li><code>The prn_text field is required.</code></li>\n<li><code>Employee record with ID &lt;pre_id&gt; does not exist.</code></li>\n<li><code>The prn_date field must be a valid date.</code></li>\n<li><code>The prn_time field must be a valid time.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"50f53141-5fab-4c4d-aadb-ba92d43c76c3","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addEmployeeReminder\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"prn_text\": \"Chase updated DBS certificate.\",\n            \"prn_date\": \"2026-04-01\",\n            \"prn_time\": \"09:00:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addEmployeeReminder\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prn_id\": \"8814\"\n        }\n    ]\n}"}],"_postman_id":"c90f7ef3-8370-46a5-8f2b-2573f3cd6bc9"},{"name":"Send Employee Email","id":"98105d91-29d0-4093-9b4b-78d1a334254f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"sendEmployeeEmail\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"subject\": \"Your shift on Monday\",\n            \"content\": \"<p>Hi Alex, please confirm your shift on Monday 9 March 2026.</p>\",\n            \"from\": \"Booking Notifications\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Sends an email to one or more employees as the API user, and records it in the candidate's message history. <code>from</code> chooses which of your system's sender addresses is used, by its label. Emails are sent row by row: if a row fails, the request stops with an error, but emails for earlier rows have already been sent. Returns an empty body. Validation errors are returned with HTTP status 400 and nothing is saved; a successful request returns HTTP status 200.</p>\n<p><strong>Service:</strong> <code>sendEmployeeEmail</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee to email. Must exist.</td>\n</tr>\n<tr>\n<td><code>subject</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Email subject.</td>\n</tr>\n<tr>\n<td><code>content</code></td>\n<td>string (HTML allowed)</td>\n<td>Yes</td>\n<td>Email body. HTML is allowed.</td>\n</tr>\n<tr>\n<td><code>from</code></td>\n<td>enum</td>\n<td>Yes</td>\n<td>One of: 'General Notifications', 'Booking Notifications', 'Availability Notifications', 'Timesheet Notifications', 'Compliance Notifications', 'Candidate Notifications', 'Internal Reminder Notifications'.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Sender email addresses (Configuration)</strong>: Which email address each 'from' label sends from.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The pre_id field is required.</code></li>\n<li><code>The subject field is required.</code></li>\n<li><code>The content field is required.</code></li>\n<li><code>The from field is required.</code></li>\n<li><code>Employee record with ID &lt;id&gt; does not exist.</code></li>\n<li><code>The \"from\" email provided (&lt;value&gt;) is invalid.</code></li>\n<li><code>Failed to send email to employee ID &lt;id&gt;.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"3af04d6d-bc8f-497b-a9d1-a537e42bd44a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"sendEmployeeEmail\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"subject\": \"Your shift on Monday\",\n            \"content\": \"<p>Hi Alex, please confirm your shift on Monday 9 March 2026.</p>\",\n            \"from\": \"Booking Notifications\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"sendEmployeeEmail\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"98105d91-29d0-4093-9b4b-78d1a334254f"},{"name":"Send Employee SMS","id":"1cdb7943-9f20-4a2c-9d52-87a223db7ce5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"sendEmployeeSMS\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"content\": \"Hi Alex, can you work Monday 9 March 07:00-19:00? Reply YES to accept.\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Sends a text message to one or more employees as the API user, using your system's text message service. Employees who use the app also get a push notification. Messages are sent row by row: if a row fails, the request stops with an error, but earlier messages have already been sent. Returns an empty body. Validation errors are returned with HTTP status 400 and nothing is saved; a successful request returns HTTP status 200.</p>\n<p><strong>Service:</strong> <code>sendEmployeeSMS</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee. Must exist.</td>\n</tr>\n<tr>\n<td><code>content</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Message text.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Text message provider (ask your account manager)</strong>: A text message provider must be set up for messages to be delivered.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The pre_id field is required.</code></li>\n<li><code>The content field is required.</code></li>\n<li><code>Employee record with ID &lt;id&gt; does not exist.</code></li>\n<li><code>Failed to send SMS to employee ID &lt;id&gt;.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"f609f23c-9aaa-4677-ab69-e47ea2359cbb","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"sendEmployeeSMS\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 2051,\n            \"content\": \"Hi Alex, can you work Monday 9 March 07:00-19:00? Reply YES to accept.\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"sendEmployeeSMS\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"1cdb7943-9f20-4a2c-9d52-87a223db7ce5"}],"id":"09c29508-4eb7-4f56-8e2e-0f9da3ecf619","_postman_id":"09c29508-4eb7-4f56-8e2e-0f9da3ecf619","description":""}],"id":"8af8ff5a-377e-490f-9a7d-8e3d6f0bf4ed","description":"<p>Employees are the people you book on shifts. Your system's screens call them <strong>Candidates</strong>, and call duties <strong>Specialisms</strong>; both words can be changed in Terminology Overrides on the Configuration screen. The API keeps the names used here: employee services, <code>pre_</code> fields for employees and <code>prd_</code> fields for duties. Some error messages use your system's wording, so they may say Candidate or Specialism.</p>\n","_postman_id":"8af8ff5a-377e-490f-9a7d-8e3d6f0bf4ed"},{"name":"Clients","item":[{"name":"Clients","item":[{"name":"Add Client","id":"47a7506c-46ff-46a8-85ad-5c334d7bf4f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addClient\"\n    },\n    \"body\": [\n        {\n            \"sbc_name\": \"Example Rail Ltd\",\n            \"sbc_code\": \"EXR01\",\n            \"sbs_id\": 2,\n            \"syr_id\": 1,\n            \"ext_id\": \"CRM-1001\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more clients. Each body row is one client. Every key must be a client field, and values are checked against the field's type. All rows are added together: if one row fails, none is added. Returns <code>sbc_id</code> (a string) for each row, and <code>ext_id</code> when you supplied one.</p>\n<p>Ownership (primary owner and team) is set in your system's screens and cannot be set through the API. Client options such as minimum billing or pay hours are not client fields and cannot be set here.</p>\n<p><strong>Service:</strong> <code>addClient</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_name</code></td>\n<td>varchar(100)</td>\n<td>Yes</td>\n<td>Client name. Required on add; must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Shift pattern id (Fetch Shift Patterns). Required on add; 0 is allowed on update.</td>\n</tr>\n<tr>\n<td><code>sbc_code</code></td>\n<td>varchar(20)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank; echoed back by Add Client.</td>\n</tr>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Region id (Fetch Regions); 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Division id (Fetch Divisions; your system's screens call divisions Team Groups by default); 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbete_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>External team id.</td>\n</tr>\n<tr>\n<td><code>sbc_director_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>User id of a user flagged as director; 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbc_manager_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>User id of a user flagged as manager; 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbcs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Client status id.</td>\n</tr>\n<tr>\n<td><code>sbc_default_break_policy</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, NO BREAK, ALWAYS DEDUCT M or DEDUCT M IF WORKED H.</td>\n</tr>\n<tr>\n<td><code>sbc_default_break_policy_m / _h / _m_2 / _h_2</code></td>\n<td>int / decimal</td>\n<td>No</td>\n<td>Break minutes and the hours worked after which they apply, in two tiers; used with DEDUCT M IF WORKED H.</td>\n</tr>\n<tr>\n<td><code>sbc_timesheet_format</code></td>\n<td>enum</td>\n<td>No</td>\n<td>default, digital, paper or none.</td>\n</tr>\n<tr>\n<td><code>sbc_pono_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>PO number mandatory: default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbc_polino_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>PO line number mandatory: default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbc_bref_mand / sbc_sublocation_mand and their *_shifts_batch flags</code></td>\n<td>enum('on','off')</td>\n<td>No</td>\n<td>Booking reference or sub-location mandatory (on or off), and whether shifts missing them are held back from the timesheet batch export.</td>\n</tr>\n<tr>\n<td><code>sbc_email, sbc_email_timesheets, sbc_email_contract, sbc_email_invoice</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Email addresses.</td>\n</tr>\n<tr>\n<td><code>sbc_contact_name, sbc_contact_phone</code></td>\n<td>varchar</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_notes, sbc_booking_notes</code></td>\n<td>text</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrc_id, sbrc_hours</code></td>\n<td>int</td>\n<td>No</td>\n<td>Rate contract and its weekly hours.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>string (numeric)</td>\n<td>New client id (a string).</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>Only when supplied.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages (for example Client or Location). Field names never change.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Client Name [sbc_name] is required</code></li>\n<li><code>A Client already exists with the name 'X</code></li>\n<li><code>External Id 'X' [ext_id] is already assigned to Client 'Y'</code></li>\n<li><code>Code 'X' [sbc_code] has alreay been allocated to Client 'Y'</code></li>\n<li><code>Shift Pattern [sbs_id] is required</code></li>\n<li><code>Client Name [sbc_name] cannot be blank</code></li>\n<li><code>No Shift Pattern [sbs_id] exists with Panther Id 'X'</code></li>\n<li><code>No Team Group [sbdi_id] exists with Panther Id 'X'</code></li>\n<li><code>No Manager [sbc_manager_syu_id] exists with Panther Id 'X'</code></li>\n<li><code>No Director [sbc_director_syu_id] exists with Panther Id 'X'</code></li>\n<li><code>No Region [syr_id] exists with Panther Id 'X'</code></li>\n<li><code>Default Break Policy [sbc_default_break_policy] must be in this list: DEFAULT,NO BREAK,ALWAYS DEDUCT M,DEDUCT M IF WORKED H</code></li>\n<li><code>Timesheet Format [sbc_timesheet_format] must be in this list: default,digital,paper,none</code></li>\n<li><code>PO Number Mandatory [sbc_pono_mand] must be in this list: default,on,off</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbc_created'</code></li>\n<li><code>Unknown field: 'x'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"b30237d6-6d64-4a18-b445-835d746ba166","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addClient\"\n    },\n    \"body\": [\n        {\n            \"sbc_name\": \"Example Rail Ltd\",\n            \"sbc_code\": \"EXR01\",\n            \"sbs_id\": 2,\n            \"syr_id\": 1,\n            \"ext_id\": \"CRM-1001\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addClient\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": \"41\",\n            \"ext_id\": \"CRM-1001\"\n        }\n    ]\n}"}],"_postman_id":"47a7506c-46ff-46a8-85ad-5c334d7bf4f0"},{"name":"Update Client","id":"0b83a8a1-69f8-4a5e-bfed-9066f8e5163f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateClient\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbc_pono_mand\": \"on\",\n            \"sbc_email_invoice\": \"accounts@example.com\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more clients. Each row needs <code>sbc_id</code> and the fields to change. The field rules are as for Add Client; name, code and <code>ext_id</code> must stay unique. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateClient</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client to update.</td>\n</tr>\n<tr>\n<td><code>sbc_name</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td>Must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Shift pattern id (Fetch Shift Patterns). Required on add; 0 is allowed on update.</td>\n</tr>\n<tr>\n<td><code>sbc_code</code></td>\n<td>varchar(20)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank; echoed back by Add Client.</td>\n</tr>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Region id (Fetch Regions); 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Division id (Fetch Divisions; your system's screens call divisions Team Groups by default); 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbete_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>External team id.</td>\n</tr>\n<tr>\n<td><code>sbc_director_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>User id of a user flagged as director; 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbc_manager_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>User id of a user flagged as manager; 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbcs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Client status id.</td>\n</tr>\n<tr>\n<td><code>sbc_default_break_policy</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, NO BREAK, ALWAYS DEDUCT M or DEDUCT M IF WORKED H.</td>\n</tr>\n<tr>\n<td><code>sbc_default_break_policy_m / _h / _m_2 / _h_2</code></td>\n<td>int / decimal</td>\n<td>No</td>\n<td>Break minutes and the hours worked after which they apply, in two tiers; used with DEDUCT M IF WORKED H.</td>\n</tr>\n<tr>\n<td><code>sbc_timesheet_format</code></td>\n<td>enum</td>\n<td>No</td>\n<td>default, digital, paper or none.</td>\n</tr>\n<tr>\n<td><code>sbc_pono_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>PO number mandatory: default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbc_polino_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>PO line number mandatory: default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbc_bref_mand / sbc_sublocation_mand and their *_shifts_batch flags</code></td>\n<td>enum('on','off')</td>\n<td>No</td>\n<td>Booking reference or sub-location mandatory (on or off), and whether shifts missing them are held back from the timesheet batch export.</td>\n</tr>\n<tr>\n<td><code>sbc_email, sbc_email_timesheets, sbc_email_contract, sbc_email_invoice</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Email addresses.</td>\n</tr>\n<tr>\n<td><code>sbc_contact_name, sbc_contact_phone</code></td>\n<td>varchar</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_notes, sbc_booking_notes</code></td>\n<td>text</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrc_id, sbrc_hours</code></td>\n<td>int</td>\n<td>No</td>\n<td>Rate contract and its weekly hours.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages (for example Client or Location). Field names never change.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Client's Panther Id [sbc_id] is required</code></li>\n<li><code>No Client exists with Panther Id 'X'</code></li>\n<li><code>A Client already exists with the name 'X'</code></li>\n<li><code>External Id 'X' is already assigned to Client 'Y'</code></li>\n<li><code>Code 'X' has alreay been allocated to Client 'Y'</code></li>\n<li><code>You must update at least one field</code></li>\n<li><code>Client Name [sbc_name] cannot be blank</code></li>\n<li><code>No Shift Pattern [sbs_id] exists with Panther Id 'X'</code></li>\n<li><code>No Team Group [sbdi_id] exists with Panther Id 'X'</code></li>\n<li><code>No Manager [sbc_manager_syu_id] exists with Panther Id 'X'</code></li>\n<li><code>No Director [sbc_director_syu_id] exists with Panther Id 'X'</code></li>\n<li><code>No Region [syr_id] exists with Panther Id 'X'</code></li>\n<li><code>Default Break Policy [sbc_default_break_policy] must be in this list: DEFAULT,NO BREAK,ALWAYS DEDUCT M,DEDUCT M IF WORKED H</code></li>\n<li><code>Timesheet Format [sbc_timesheet_format] must be in this list: default,digital,paper,none</code></li>\n<li><code>PO Number Mandatory [sbc_pono_mand] must be in this list: default,on,off</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbc_created'</code></li>\n<li><code>Unknown field: 'x'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"dcbcd6bb-aec7-4608-aab2-bf81883ca625","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateClient\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbc_pono_mand\": \"on\",\n            \"sbc_email_invoice\": \"accounts@example.com\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateClient\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"0b83a8a1-69f8-4a5e-bfed-9066f8e5163f"},{"name":"Delete Client","id":"4b2cd445-398e-4058-893f-d94cef1def83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteClient\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more clients by <code>sbc_id</code>. A client with any booked shift cannot be deleted. Otherwise the client's locations are deleted too, with each location's sub-locations, location contracts and location routes, plus the client's levels and extra fields. Rates, contacts, notes and ownership records are kept. All rows are deleted together: if one row fails, none is deleted. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteClient</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages (for example Client or Location). Field names never change.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Client's Panther Id [sbc_id] is required</code></li>\n<li><code>No Client exists with Panther Id 'X'</code></li>\n<li><code>Client with Panther Id 'X' cannot be deleted. Shifts have been booked.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"551850f1-18ef-407e-82de-cdec989da6f9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteClient\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteClient\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"4b2cd445-398e-4058-893f-d94cef1def83"},{"name":"Fetch Clients","id":"9c899ac3-c461-45f9-86d1-9c768b4b5f5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchClients\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns clients. <code>datalevel: terse</code> (default) returns the main fields; <code>verbose</code> returns every client field. Send <code>sbc_id</code> or <code>ext_id</code> (not both) for one client; an error is returned if it is not found. Sorted by <code>sbc_name</code> unless you send <code>orderby</code>. With <code>includeFKData: on</code> each row has an <code>FKData</code> object with the names of linked records, including the primary owner and their team.</p>\n<p><strong>Service:</strong> <code>fetchClients</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>datalevel</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one client. Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one client by your external id. Not with sbc_id.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_code</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Shift pattern.</td>\n</tr>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>Region.</td>\n</tr>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>Division (Team Group).</td>\n</tr>\n<tr>\n<td><code>sbc_director_syu_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_manager_syu_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_address</code></td>\n<td>string</td>\n<td>Only when Enable Invoicing is on: the invoice address from your invoicing settings (location, then client, then your default).</td>\n</tr>\n<tr>\n<td><code>verbose: all client fields</code></td>\n<td></td>\n<td>All client fields, for example sbcs_id, sbete_id, sbc_email*, sbc_contact_name, sbc_contact_phone, sbc_default_break_policy*, sbc_maxshiftsinarow_select, sbc_maxshiftsinarow, sbc_timesheet_format, sbc_proof_work_timesheet, sbc_send_timesheet_copy, sbc_send_timesheet_copy_to, sbc_bref_mand, sbc_pono_mand, sbc_polino_mand, sbc_sublocation_mand (and <em><em>shifts_batch), sbc_pono_override, sbc_notes, sbc_booking_notes, sbc_website, sbc_ltd</em></em>_posting_group, sbc_limit_specialisms, sbc_restrict_booking_missing_compliance, sbc_timesheet_upload_mandatory, sbrc_id, sbrc_hours, country_id, sbc_financial_details, sbc_debtors_balance, sbc_credit_limit, sbc_created, sbc_updated.</td>\n</tr>\n<tr>\n<td><code>FKData (includeFKData on)</code></td>\n<td>object</td>\n<td>sbs_desc, syr_name, sbdi_name, sbte_name (the primary owner's team), sbc_director_name, sbc_manager_name, sbc_owner_name (the primary owner).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Enable Invoicing (Configuration)</strong>: When on, each row includes invoice_address.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'sbc_id' and 'ext_id' are mutually exclusive</code></li>\n<li><code>Client with Panther Id 'X' not found</code></li>\n<li><code>Client with External Id 'X' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"078c9bef-6d86-4d51-ad80-cdcadbe8b19d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchClients\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchClients\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbc_name\": \"Example Rail Ltd\",\n            \"sbc_code\": \"EXR01\",\n            \"sbs_id\": 2,\n            \"syr_id\": 1,\n            \"sbdi_id\": 0,\n            \"sbc_director_syu_id\": 0,\n            \"sbc_manager_syu_id\": 3,\n            \"ext_id\": \"CRM-1001\",\n            \"FKData\": {\n                \"sbs_desc\": \"Standard Week\",\n                \"syr_name\": \"North\",\n                \"sbdi_name\": null,\n                \"sbte_name\": \"Rail Team\",\n                \"sbc_director_name\": null,\n                \"sbc_manager_name\": \"Sam Sample\",\n                \"sbc_owner_name\": \"Alex Example\"\n            }\n        }\n    ]\n}"}],"_postman_id":"9c899ac3-c461-45f9-86d1-9c768b4b5f5a"},{"name":"Fetch Updated Clients","id":"52110412-a00b-485a-b540-a81bad78e359","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedClients\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns clients changed on or after <code>updatesSince</code>, with the same fields as Fetch Clients. Deleted clients are not reported. Sorted by <code>sbc_name</code> unless you send <code>orderby</code>.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedClients</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string 'YYYY-MM-DD HH:MM:SS'</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_code</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Shift pattern.</td>\n</tr>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>Region.</td>\n</tr>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>Division (Team Group).</td>\n</tr>\n<tr>\n<td><code>sbc_director_syu_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_manager_syu_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_address</code></td>\n<td>string</td>\n<td>Only when Enable Invoicing is on: the invoice address from your invoicing settings (location, then client, then your default).</td>\n</tr>\n<tr>\n<td><code>verbose: all client fields</code></td>\n<td></td>\n<td>All client fields, for example sbcs_id, sbete_id, sbc_email*, sbc_contact_name, sbc_contact_phone, sbc_default_break_policy*, sbc_maxshiftsinarow_select, sbc_maxshiftsinarow, sbc_timesheet_format, sbc_proof_work_timesheet, sbc_send_timesheet_copy, sbc_send_timesheet_copy_to, sbc_bref_mand, sbc_pono_mand, sbc_polino_mand, sbc_sublocation_mand (and <em><em>shifts_batch), sbc_pono_override, sbc_notes, sbc_booking_notes, sbc_website, sbc_ltd</em></em>_posting_group, sbc_limit_specialisms, sbc_restrict_booking_missing_compliance, sbc_timesheet_upload_mandatory, sbrc_id, sbrc_hours, country_id, sbc_financial_details, sbc_debtors_balance, sbc_credit_limit, sbc_created, sbc_updated.</td>\n</tr>\n<tr>\n<td><code>FKData (includeFKData on)</code></td>\n<td>object</td>\n<td>sbs_desc, syr_name, sbdi_name, sbte_name (the primary owner's team), sbc_director_name, sbc_manager_name, sbc_owner_name (the primary owner).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Enable Invoicing (Configuration)</strong>: When on, each row includes invoice_address.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"a19e6c10-f411-4104-bfcf-1b02fade7006","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedClients\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedClients\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbc_name\": \"Example Rail Ltd\",\n            \"sbc_code\": \"EXR01\",\n            \"sbs_id\": 2,\n            \"syr_id\": 1,\n            \"sbdi_id\": 0,\n            \"sbc_director_syu_id\": 0,\n            \"sbc_manager_syu_id\": 3,\n            \"ext_id\": \"CRM-1001\",\n            \"FKData\": {\n                \"sbs_desc\": \"Standard Week\",\n                \"syr_name\": \"North\",\n                \"sbdi_name\": null,\n                \"sbte_name\": \"Rail Team\",\n                \"sbc_director_name\": null,\n                \"sbc_manager_name\": \"Sam Sample\",\n                \"sbc_owner_name\": \"Alex Example\"\n            }\n        }\n    ]\n}"}],"_postman_id":"52110412-a00b-485a-b540-a81bad78e359"},{"name":"Fetch Client Rates - by Shift Pattern Slot","id":"76c57ed7-a2a2-4a2d-ae49-109b97727816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchClientRatesByShiftPatternSlot\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns client rates by shift pattern slot: one row per duty, shift pattern (<code>sbs_id</code>) and slot (<code>sbsp_id</code>), with pay and charge rates for each day of the week and for holidays. Filter with <code>sbc_id</code> in the header; if a filter matches nothing, an error is returned instead of an empty list. No default order. <code>includeFKData: on</code> adds the names of linked records.</p>\n<p>Read-only: rates are maintained in your system's screens.</p>\n<p><strong>Service:</strong> <code>fetchClientRatesByShiftPatternSlot</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbr_id</code></td>\n<td>int</td>\n<td>Rate id.</td>\n</tr>\n<tr>\n<td><code>sbr_rtype</code></td>\n<td>string</td>\n<td>CLIENT, LOCATION or LOCCONT.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Client id.</td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Duty id.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbsp_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbr_payrate_1..7, sbr_payrate_h</code></td>\n<td>decimal string</td>\n<td>Pay rate for each day of your shift week (1 = the first day; see Shift Week Start) and h = holiday rate.</td>\n</tr>\n<tr>\n<td><code>sbr_chgrate_1..7, sbr_chgrate_h</code></td>\n<td>decimal string</td>\n<td>Charge rate, same day layout.</td>\n</tr>\n<tr>\n<td><code>sbr_created, sbr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, prd_desc, prd_active, sbs_desc, sbs_active</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Rates found for Client with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"97313b61-5509-44c2-a519-b53a70c9f73f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchClientRatesByShiftPatternSlot\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchClientRatesByShiftPatternSlot\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbr_id\": 310,\n            \"sbr_rtype\": \"CLIENT\",\n            \"sbc_id\": 41,\n            \"prd_id\": 7,\n            \"sbs_id\": 2,\n            \"sbsp_id\": 1,\n            \"sbr_payrate_1\": \"14.50\",\n            \"sbr_payrate_2\": \"14.50\",\n            \"sbr_payrate_3\": \"14.50\",\n            \"sbr_payrate_4\": \"14.50\",\n            \"sbr_payrate_5\": \"14.50\",\n            \"sbr_payrate_6\": \"14.50\",\n            \"sbr_payrate_7\": \"14.50\",\n            \"sbr_payrate_h\": \"14.50\",\n            \"sbr_chgrate_1\": \"19.75\",\n            \"sbr_chgrate_2\": \"19.75\",\n            \"sbr_chgrate_3\": \"19.75\",\n            \"sbr_chgrate_4\": \"19.75\",\n            \"sbr_chgrate_5\": \"19.75\",\n            \"sbr_chgrate_6\": \"19.75\",\n            \"sbr_chgrate_7\": \"19.75\",\n            \"sbr_chgrate_h\": \"19.75\",\n            \"sbr_created\": \"2026-02-01 09:00:00\",\n            \"sbr_updated\": \"2026-02-01 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"76c57ed7-a2a2-4a2d-ae49-109b97727816"},{"name":"Fetch Client Rates - by Core Shift","id":"f1f30763-180e-4d64-82af-f89a651ab0ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchClientRatesByCoreShift\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns client rates by core shift: one row per duty, pay scheme (<code>prps_id</code>) and core shift (<code>sbsc_id</code>), with pay and charge rates for each day of the week and for holidays. Filter with <code>sbc_id</code> in the header; if a filter matches nothing, an error is returned instead of an empty list. No default order. <code>includeFKData: on</code> adds the names of linked records.</p>\n<p>Read-only: rates are maintained in your system's screens.</p>\n<p><strong>Service:</strong> <code>fetchClientRatesByCoreShift</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbr_id</code></td>\n<td>int</td>\n<td>Rate id.</td>\n</tr>\n<tr>\n<td><code>sbr_rtype</code></td>\n<td>string</td>\n<td>CLIENT, LOCATION or LOCCONT.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Client id.</td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Duty id.</td>\n</tr>\n<tr>\n<td><code>prps_id</code></td>\n<td>int</td>\n<td>Pay scheme.</td>\n</tr>\n<tr>\n<td><code>sbsc_id</code></td>\n<td>int</td>\n<td>Core shift.</td>\n</tr>\n<tr>\n<td><code>sbr_payrate_1..7, sbr_payrate_h</code></td>\n<td>decimal string</td>\n<td>Pay rate for each day of your shift week (1 = the first day; see Shift Week Start) and h = holiday rate.</td>\n</tr>\n<tr>\n<td><code>sbr_chgrate_1..7, sbr_chgrate_h</code></td>\n<td>decimal string</td>\n<td>Charge rate, same day layout.</td>\n</tr>\n<tr>\n<td><code>sbr_created, sbr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, prd_desc, prd_active, prps_name, prps_active, sbsc_title, sbsc_active</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Rates found for Client with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"ba5e9b28-9c3b-433c-979e-deb43aa6ea6e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchClientRatesByCoreShift\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchClientRatesByCoreShift\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbr_id\": 310,\n            \"sbr_rtype\": \"CLIENT\",\n            \"sbc_id\": 41,\n            \"prd_id\": 7,\n            \"prps_id\": 3,\n            \"sbsc_id\": 4,\n            \"sbr_payrate_1\": \"14.50\",\n            \"sbr_payrate_2\": \"14.50\",\n            \"sbr_payrate_3\": \"14.50\",\n            \"sbr_payrate_4\": \"14.50\",\n            \"sbr_payrate_5\": \"14.50\",\n            \"sbr_payrate_6\": \"14.50\",\n            \"sbr_payrate_7\": \"14.50\",\n            \"sbr_payrate_h\": \"14.50\",\n            \"sbr_chgrate_1\": \"19.75\",\n            \"sbr_chgrate_2\": \"19.75\",\n            \"sbr_chgrate_3\": \"19.75\",\n            \"sbr_chgrate_4\": \"19.75\",\n            \"sbr_chgrate_5\": \"19.75\",\n            \"sbr_chgrate_6\": \"19.75\",\n            \"sbr_chgrate_7\": \"19.75\",\n            \"sbr_chgrate_h\": \"19.75\",\n            \"sbr_created\": \"2026-02-01 09:00:00\",\n            \"sbr_updated\": \"2026-02-01 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"f1f30763-180e-4d64-82af-f89a651ab0ad"}],"id":"6c7aa637-e2c0-4083-8c87-493b00f86aac","_postman_id":"6c7aa637-e2c0-4083-8c87-493b00f86aac","description":""},{"name":"Route aliases","item":[{"name":"Add Route (alias of Add Client)","id":"a1d57b01-8427-4829-94d8-79686b28c71b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addRoute\"\n    },\n    \"body\": [\n        {\n            \"sbc_name\": \"Example Rail Ltd\",\n            \"sbc_code\": \"EXR01\",\n            \"sbs_id\": 2,\n            \"syr_id\": 1,\n            \"ext_id\": \"CRM-1001\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Add Client.</strong> Despite its name, this service works on clients, not routes, and behaves exactly like Add Client; we recommend using that name. For routes, use Fetch Master Routes and the Location Routes services.</p>\n<p>Adds one or more clients. Each body row is one client. Every key must be a client field, and values are checked against the field's type. All rows are added together: if one row fails, none is added. Returns <code>sbc_id</code> (a string) for each row, and <code>ext_id</code> when you supplied one.</p>\n<p>Ownership (primary owner and team) is set in your system's screens and cannot be set through the API. Client options such as minimum billing or pay hours are not client fields and cannot be set here.</p>\n<p><strong>Service:</strong> <code>addRoute</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_name</code></td>\n<td>varchar(100)</td>\n<td>Yes</td>\n<td>Client name. Required on add; must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Shift pattern id (Fetch Shift Patterns). Required on add; 0 is allowed on update.</td>\n</tr>\n<tr>\n<td><code>sbc_code</code></td>\n<td>varchar(20)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank; echoed back by Add Client.</td>\n</tr>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Region id (Fetch Regions); 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Division id (Fetch Divisions; your system's screens call divisions Team Groups by default); 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbete_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>External team id.</td>\n</tr>\n<tr>\n<td><code>sbc_director_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>User id of a user flagged as director; 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbc_manager_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>User id of a user flagged as manager; 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbcs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Client status id.</td>\n</tr>\n<tr>\n<td><code>sbc_default_break_policy</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, NO BREAK, ALWAYS DEDUCT M or DEDUCT M IF WORKED H.</td>\n</tr>\n<tr>\n<td><code>sbc_default_break_policy_m / _h / _m_2 / _h_2</code></td>\n<td>int / decimal</td>\n<td>No</td>\n<td>Break minutes and the hours worked after which they apply, in two tiers; used with DEDUCT M IF WORKED H.</td>\n</tr>\n<tr>\n<td><code>sbc_timesheet_format</code></td>\n<td>enum</td>\n<td>No</td>\n<td>default, digital, paper or none.</td>\n</tr>\n<tr>\n<td><code>sbc_pono_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>PO number mandatory: default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbc_polino_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>PO line number mandatory: default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbc_bref_mand / sbc_sublocation_mand and their *_shifts_batch flags</code></td>\n<td>enum('on','off')</td>\n<td>No</td>\n<td>Booking reference or sub-location mandatory (on or off), and whether shifts missing them are held back from the timesheet batch export.</td>\n</tr>\n<tr>\n<td><code>sbc_email, sbc_email_timesheets, sbc_email_contract, sbc_email_invoice</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Email addresses.</td>\n</tr>\n<tr>\n<td><code>sbc_contact_name, sbc_contact_phone</code></td>\n<td>varchar</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_notes, sbc_booking_notes</code></td>\n<td>text</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrc_id, sbrc_hours</code></td>\n<td>int</td>\n<td>No</td>\n<td>Rate contract and its weekly hours.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>string (numeric)</td>\n<td>New client id (a string).</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>Only when supplied.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages (for example Client or Location). Field names never change.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Client Name [sbc_name] is required</code></li>\n<li><code>A Client already exists with the name 'X</code></li>\n<li><code>External Id 'X' [ext_id] is already assigned to Client 'Y'</code></li>\n<li><code>Code 'X' [sbc_code] has alreay been allocated to Client 'Y'</code></li>\n<li><code>Shift Pattern [sbs_id] is required</code></li>\n<li><code>Client Name [sbc_name] cannot be blank</code></li>\n<li><code>No Shift Pattern [sbs_id] exists with Panther Id 'X'</code></li>\n<li><code>No Team Group [sbdi_id] exists with Panther Id 'X'</code></li>\n<li><code>No Manager [sbc_manager_syu_id] exists with Panther Id 'X'</code></li>\n<li><code>No Director [sbc_director_syu_id] exists with Panther Id 'X'</code></li>\n<li><code>No Region [syr_id] exists with Panther Id 'X'</code></li>\n<li><code>Default Break Policy [sbc_default_break_policy] must be in this list: DEFAULT,NO BREAK,ALWAYS DEDUCT M,DEDUCT M IF WORKED H</code></li>\n<li><code>Timesheet Format [sbc_timesheet_format] must be in this list: default,digital,paper,none</code></li>\n<li><code>PO Number Mandatory [sbc_pono_mand] must be in this list: default,on,off</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbc_created'</code></li>\n<li><code>Unknown field: 'x'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"cdf508d3-52b6-4ae8-af42-d010309d338f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addRoute\"\n    },\n    \"body\": [\n        {\n            \"sbc_name\": \"Example Rail Ltd\",\n            \"sbc_code\": \"EXR01\",\n            \"sbs_id\": 2,\n            \"syr_id\": 1,\n            \"ext_id\": \"CRM-1001\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addRoute\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": \"41\",\n            \"ext_id\": \"CRM-1001\"\n        }\n    ]\n}"}],"_postman_id":"a1d57b01-8427-4829-94d8-79686b28c71b"},{"name":"Update Route (alias of Update Client)","id":"836fc9e1-ab4d-494e-b2ad-5375bc0d7172","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateRoute\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbc_pono_mand\": \"on\",\n            \"sbc_email_invoice\": \"accounts@example.com\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Update Client.</strong> Despite its name, this service works on clients, not routes, and behaves exactly like Update Client; we recommend using that name. For routes, use Fetch Master Routes and the Location Routes services.</p>\n<p>Updates one or more clients. Each row needs <code>sbc_id</code> and the fields to change. The field rules are as for Add Client; name, code and <code>ext_id</code> must stay unique. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateRoute</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client to update.</td>\n</tr>\n<tr>\n<td><code>sbc_name</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td>Must be unique and not blank.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Shift pattern id (Fetch Shift Patterns). Required on add; 0 is allowed on update.</td>\n</tr>\n<tr>\n<td><code>sbc_code</code></td>\n<td>varchar(20)</td>\n<td>No</td>\n<td>Code. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank; echoed back by Add Client.</td>\n</tr>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Region id (Fetch Regions); 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Division id (Fetch Divisions; your system's screens call divisions Team Groups by default); 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbete_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>External team id.</td>\n</tr>\n<tr>\n<td><code>sbc_director_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>User id of a user flagged as director; 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbc_manager_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>User id of a user flagged as manager; 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbcs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Client status id.</td>\n</tr>\n<tr>\n<td><code>sbc_default_break_policy</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, NO BREAK, ALWAYS DEDUCT M or DEDUCT M IF WORKED H.</td>\n</tr>\n<tr>\n<td><code>sbc_default_break_policy_m / _h / _m_2 / _h_2</code></td>\n<td>int / decimal</td>\n<td>No</td>\n<td>Break minutes and the hours worked after which they apply, in two tiers; used with DEDUCT M IF WORKED H.</td>\n</tr>\n<tr>\n<td><code>sbc_timesheet_format</code></td>\n<td>enum</td>\n<td>No</td>\n<td>default, digital, paper or none.</td>\n</tr>\n<tr>\n<td><code>sbc_pono_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>PO number mandatory: default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbc_polino_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>PO line number mandatory: default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbc_bref_mand / sbc_sublocation_mand and their *_shifts_batch flags</code></td>\n<td>enum('on','off')</td>\n<td>No</td>\n<td>Booking reference or sub-location mandatory (on or off), and whether shifts missing them are held back from the timesheet batch export.</td>\n</tr>\n<tr>\n<td><code>sbc_email, sbc_email_timesheets, sbc_email_contract, sbc_email_invoice</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Email addresses.</td>\n</tr>\n<tr>\n<td><code>sbc_contact_name, sbc_contact_phone</code></td>\n<td>varchar</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_notes, sbc_booking_notes</code></td>\n<td>text</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrc_id, sbrc_hours</code></td>\n<td>int</td>\n<td>No</td>\n<td>Rate contract and its weekly hours.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages (for example Client or Location). Field names never change.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Client's Panther Id [sbc_id] is required</code></li>\n<li><code>No Client exists with Panther Id 'X'</code></li>\n<li><code>A Client already exists with the name 'X'</code></li>\n<li><code>External Id 'X' is already assigned to Client 'Y'</code></li>\n<li><code>Code 'X' has alreay been allocated to Client 'Y'</code></li>\n<li><code>You must update at least one field</code></li>\n<li><code>Client Name [sbc_name] cannot be blank</code></li>\n<li><code>No Shift Pattern [sbs_id] exists with Panther Id 'X'</code></li>\n<li><code>No Team Group [sbdi_id] exists with Panther Id 'X'</code></li>\n<li><code>No Manager [sbc_manager_syu_id] exists with Panther Id 'X'</code></li>\n<li><code>No Director [sbc_director_syu_id] exists with Panther Id 'X'</code></li>\n<li><code>No Region [syr_id] exists with Panther Id 'X'</code></li>\n<li><code>Default Break Policy [sbc_default_break_policy] must be in this list: DEFAULT,NO BREAK,ALWAYS DEDUCT M,DEDUCT M IF WORKED H</code></li>\n<li><code>Timesheet Format [sbc_timesheet_format] must be in this list: default,digital,paper,none</code></li>\n<li><code>PO Number Mandatory [sbc_pono_mand] must be in this list: default,on,off</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbc_created'</code></li>\n<li><code>Unknown field: 'x'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"379f8e34-25e1-410c-a6dd-7acc345a548c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateRoute\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbc_pono_mand\": \"on\",\n            \"sbc_email_invoice\": \"accounts@example.com\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateRoute\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"836fc9e1-ab4d-494e-b2ad-5375bc0d7172"},{"name":"Delete Route (alias of Delete Client)","id":"c973cc58-1d8b-4002-9967-03e2f4c5e383","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteRoute\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Delete Client.</strong> Despite its name, this service works on clients, not routes, and behaves exactly like Delete Client; we recommend using that name. For routes, use Fetch Master Routes and the Location Routes services.</p>\n<p>Deletes one or more clients by <code>sbc_id</code>. A client with any booked shift cannot be deleted. Otherwise the client's locations are deleted too, with each location's sub-locations, location contracts and location routes, plus the client's levels and extra fields. Rates, contacts, notes and ownership records are kept. All rows are deleted together: if one row fails, none is deleted. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteRoute</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages (for example Client or Location). Field names never change.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Client's Panther Id [sbc_id] is required</code></li>\n<li><code>No Client exists with Panther Id 'X'</code></li>\n<li><code>Client with Panther Id 'X' cannot be deleted. Shifts have been booked.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"c6067036-d227-4349-a55c-c1916d779308","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteRoute\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteRoute\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"c973cc58-1d8b-4002-9967-03e2f4c5e383"},{"name":"Fetch Routes (alias of Fetch Clients)","id":"64204ccd-21c0-4fd5-9bb4-06e26608a0d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRoutes\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Fetch Clients.</strong> Despite its name, this service works on clients, not routes, and behaves exactly like Fetch Clients; we recommend using that name. For routes, use Fetch Master Routes and the Location Routes services.</p>\n<p>Returns clients. <code>datalevel: terse</code> (default) returns the main fields; <code>verbose</code> returns every client field. Send <code>sbc_id</code> or <code>ext_id</code> (not both) for one client; an error is returned if it is not found. Sorted by <code>sbc_name</code> unless you send <code>orderby</code>. With <code>includeFKData: on</code> each row has an <code>FKData</code> object with the names of linked records, including the primary owner and their team.</p>\n<p><strong>Service:</strong> <code>fetchRoutes</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>datalevel</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one client. Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Return one client by your external id. Not with sbc_id.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_code</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Shift pattern.</td>\n</tr>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>Region.</td>\n</tr>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>Division (Team Group).</td>\n</tr>\n<tr>\n<td><code>sbc_director_syu_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_manager_syu_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_address</code></td>\n<td>string</td>\n<td>Only when Enable Invoicing is on: the invoice address from your invoicing settings (location, then client, then your default).</td>\n</tr>\n<tr>\n<td><code>verbose: all client fields</code></td>\n<td></td>\n<td>All client fields, for example sbcs_id, sbete_id, sbc_email*, sbc_contact_name, sbc_contact_phone, sbc_default_break_policy*, sbc_maxshiftsinarow_select, sbc_maxshiftsinarow, sbc_timesheet_format, sbc_proof_work_timesheet, sbc_send_timesheet_copy, sbc_send_timesheet_copy_to, sbc_bref_mand, sbc_pono_mand, sbc_polino_mand, sbc_sublocation_mand (and <em><em>shifts_batch), sbc_pono_override, sbc_notes, sbc_booking_notes, sbc_website, sbc_ltd</em></em>_posting_group, sbc_limit_specialisms, sbc_restrict_booking_missing_compliance, sbc_timesheet_upload_mandatory, sbrc_id, sbrc_hours, country_id, sbc_financial_details, sbc_debtors_balance, sbc_credit_limit, sbc_created, sbc_updated.</td>\n</tr>\n<tr>\n<td><code>FKData (includeFKData on)</code></td>\n<td>object</td>\n<td>sbs_desc, syr_name, sbdi_name, sbte_name (the primary owner's team), sbc_director_name, sbc_manager_name, sbc_owner_name (the primary owner).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Enable Invoicing (Configuration)</strong>: When on, each row includes invoice_address.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'sbc_id' and 'ext_id' are mutually exclusive</code></li>\n<li><code>Client with Panther Id 'X' not found</code></li>\n<li><code>Client with External Id 'X' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"1a5426f0-0931-4782-88e9-2b4c8536071f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRoutes\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchRoutes\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"offset\": 0,\n        \"maxrows\": 50,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbc_name\": \"Example Rail Ltd\",\n            \"sbc_code\": \"EXR01\",\n            \"sbs_id\": 2,\n            \"syr_id\": 1,\n            \"sbdi_id\": 0,\n            \"sbc_director_syu_id\": 0,\n            \"sbc_manager_syu_id\": 3,\n            \"ext_id\": \"CRM-1001\",\n            \"FKData\": {\n                \"sbs_desc\": \"Standard Week\",\n                \"syr_name\": \"North\",\n                \"sbdi_name\": null,\n                \"sbte_name\": \"Rail Team\",\n                \"sbc_director_name\": null,\n                \"sbc_manager_name\": \"Sam Sample\",\n                \"sbc_owner_name\": \"Alex Example\"\n            }\n        }\n    ]\n}"}],"_postman_id":"64204ccd-21c0-4fd5-9bb4-06e26608a0d1"},{"name":"Fetch Updated Routes (alias of Fetch Updated Clients)","id":"ac658537-278f-4be1-8d61-4ba83809a03f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedRoutes\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Fetch Updated Clients.</strong> Despite its name, this service works on clients, not routes, and behaves exactly like Fetch Updated Clients; we recommend using that name. For routes, use Fetch Master Routes and the Location Routes services.</p>\n<p>Returns clients changed on or after <code>updatesSince</code>, with the same fields as Fetch Clients. Deleted clients are not reported. Sorted by <code>sbc_name</code> unless you send <code>orderby</code>.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedRoutes</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string 'YYYY-MM-DD HH:MM:SS'</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_code</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Shift pattern.</td>\n</tr>\n<tr>\n<td><code>syr_id</code></td>\n<td>int</td>\n<td>Region.</td>\n</tr>\n<tr>\n<td><code>sbdi_id</code></td>\n<td>int</td>\n<td>Division (Team Group).</td>\n</tr>\n<tr>\n<td><code>sbc_director_syu_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_manager_syu_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_address</code></td>\n<td>string</td>\n<td>Only when Enable Invoicing is on: the invoice address from your invoicing settings (location, then client, then your default).</td>\n</tr>\n<tr>\n<td><code>verbose: all client fields</code></td>\n<td></td>\n<td>All client fields, for example sbcs_id, sbete_id, sbc_email*, sbc_contact_name, sbc_contact_phone, sbc_default_break_policy*, sbc_maxshiftsinarow_select, sbc_maxshiftsinarow, sbc_timesheet_format, sbc_proof_work_timesheet, sbc_send_timesheet_copy, sbc_send_timesheet_copy_to, sbc_bref_mand, sbc_pono_mand, sbc_polino_mand, sbc_sublocation_mand (and <em><em>shifts_batch), sbc_pono_override, sbc_notes, sbc_booking_notes, sbc_website, sbc_ltd</em></em>_posting_group, sbc_limit_specialisms, sbc_restrict_booking_missing_compliance, sbc_timesheet_upload_mandatory, sbrc_id, sbrc_hours, country_id, sbc_financial_details, sbc_debtors_balance, sbc_credit_limit, sbc_created, sbc_updated.</td>\n</tr>\n<tr>\n<td><code>FKData (includeFKData on)</code></td>\n<td>object</td>\n<td>sbs_desc, syr_name, sbdi_name, sbte_name (the primary owner's team), sbc_director_name, sbc_manager_name, sbc_owner_name (the primary owner).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Enable Invoicing (Configuration)</strong>: When on, each row includes invoice_address.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"4420afe6-db6a-4368-89d7-05d6aaf86129","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedRoutes\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedRoutes\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"terse\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbc_name\": \"Example Rail Ltd\",\n            \"sbc_code\": \"EXR01\",\n            \"sbs_id\": 2,\n            \"syr_id\": 1,\n            \"sbdi_id\": 0,\n            \"sbc_director_syu_id\": 0,\n            \"sbc_manager_syu_id\": 3,\n            \"ext_id\": \"CRM-1001\",\n            \"FKData\": {\n                \"sbs_desc\": \"Standard Week\",\n                \"syr_name\": \"North\",\n                \"sbdi_name\": null,\n                \"sbte_name\": \"Rail Team\",\n                \"sbc_director_name\": null,\n                \"sbc_manager_name\": \"Sam Sample\",\n                \"sbc_owner_name\": \"Alex Example\"\n            }\n        }\n    ]\n}"}],"_postman_id":"ac658537-278f-4be1-8d61-4ba83809a03f"},{"name":"Fetch Route Rates - by Shift Pattern Slot (alias)","id":"7b40c8b2-7b63-46b1-95c8-9fa885c21dca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRouteRatesByShiftPatternSlot\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Fetch Client Rates - by Shift Pattern Slot.</strong> Despite its name, this service works on clients, not routes, and behaves exactly like Fetch Client Rates - by Shift Pattern Slot; we recommend using that name. For routes, use Fetch Master Routes and the Location Routes services.</p>\n<p>Returns client rates by shift pattern slot: one row per duty, shift pattern (<code>sbs_id</code>) and slot (<code>sbsp_id</code>), with pay and charge rates for each day of the week and for holidays. Filter with <code>sbc_id</code> in the header; if a filter matches nothing, an error is returned instead of an empty list. No default order. <code>includeFKData: on</code> adds the names of linked records.</p>\n<p>Read-only: rates are maintained in your system's screens.</p>\n<p><strong>Service:</strong> <code>fetchRouteRatesByShiftPatternSlot</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbr_id</code></td>\n<td>int</td>\n<td>Rate id.</td>\n</tr>\n<tr>\n<td><code>sbr_rtype</code></td>\n<td>string</td>\n<td>CLIENT, LOCATION or LOCCONT.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Client id.</td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Duty id.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbsp_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbr_payrate_1..7, sbr_payrate_h</code></td>\n<td>decimal string</td>\n<td>Pay rate for each day of your shift week (1 = the first day; see Shift Week Start) and h = holiday rate.</td>\n</tr>\n<tr>\n<td><code>sbr_chgrate_1..7, sbr_chgrate_h</code></td>\n<td>decimal string</td>\n<td>Charge rate, same day layout.</td>\n</tr>\n<tr>\n<td><code>sbr_created, sbr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, prd_desc, prd_active, sbs_desc, sbs_active</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Rates found for Client with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"0fe01e86-5d62-42da-bd5d-baf83ad0c412","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRouteRatesByShiftPatternSlot\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchRouteRatesByShiftPatternSlot\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbr_id\": 310,\n            \"sbr_rtype\": \"CLIENT\",\n            \"sbc_id\": 41,\n            \"prd_id\": 7,\n            \"sbs_id\": 2,\n            \"sbsp_id\": 1,\n            \"sbr_payrate_1\": \"14.50\",\n            \"sbr_payrate_2\": \"14.50\",\n            \"sbr_payrate_3\": \"14.50\",\n            \"sbr_payrate_4\": \"14.50\",\n            \"sbr_payrate_5\": \"14.50\",\n            \"sbr_payrate_6\": \"14.50\",\n            \"sbr_payrate_7\": \"14.50\",\n            \"sbr_payrate_h\": \"14.50\",\n            \"sbr_chgrate_1\": \"19.75\",\n            \"sbr_chgrate_2\": \"19.75\",\n            \"sbr_chgrate_3\": \"19.75\",\n            \"sbr_chgrate_4\": \"19.75\",\n            \"sbr_chgrate_5\": \"19.75\",\n            \"sbr_chgrate_6\": \"19.75\",\n            \"sbr_chgrate_7\": \"19.75\",\n            \"sbr_chgrate_h\": \"19.75\",\n            \"sbr_created\": \"2026-02-01 09:00:00\",\n            \"sbr_updated\": \"2026-02-01 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"7b40c8b2-7b63-46b1-95c8-9fa885c21dca"},{"name":"Fetch Route Rates - by Core Shift (alias)","id":"52481190-d381-447d-b70e-6bc3e8c657df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRouteRatesByCoreShift\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Fetch Client Rates - by Core Shift.</strong> Despite its name, this service works on clients, not routes, and behaves exactly like Fetch Client Rates - by Core Shift; we recommend using that name. For routes, use Fetch Master Routes and the Location Routes services.</p>\n<p>Returns client rates by core shift: one row per duty, pay scheme (<code>prps_id</code>) and core shift (<code>sbsc_id</code>), with pay and charge rates for each day of the week and for holidays. Filter with <code>sbc_id</code> in the header; if a filter matches nothing, an error is returned instead of an empty list. No default order. <code>includeFKData: on</code> adds the names of linked records.</p>\n<p>Read-only: rates are maintained in your system's screens.</p>\n<p><strong>Service:</strong> <code>fetchRouteRatesByCoreShift</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbr_id</code></td>\n<td>int</td>\n<td>Rate id.</td>\n</tr>\n<tr>\n<td><code>sbr_rtype</code></td>\n<td>string</td>\n<td>CLIENT, LOCATION or LOCCONT.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Client id.</td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Duty id.</td>\n</tr>\n<tr>\n<td><code>prps_id</code></td>\n<td>int</td>\n<td>Pay scheme.</td>\n</tr>\n<tr>\n<td><code>sbsc_id</code></td>\n<td>int</td>\n<td>Core shift.</td>\n</tr>\n<tr>\n<td><code>sbr_payrate_1..7, sbr_payrate_h</code></td>\n<td>decimal string</td>\n<td>Pay rate for each day of your shift week (1 = the first day; see Shift Week Start) and h = holiday rate.</td>\n</tr>\n<tr>\n<td><code>sbr_chgrate_1..7, sbr_chgrate_h</code></td>\n<td>decimal string</td>\n<td>Charge rate, same day layout.</td>\n</tr>\n<tr>\n<td><code>sbr_created, sbr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, prd_desc, prd_active, prps_name, prps_active, sbsc_title, sbsc_active</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Rates found for Client with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"a867fbf8-55ad-46c8-8e4b-7f5b9f9c080a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRouteRatesByCoreShift\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchRouteRatesByCoreShift\",\n        \"sbc_id\": 41,\n        \"includeFKData\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbr_id\": 310,\n            \"sbr_rtype\": \"CLIENT\",\n            \"sbc_id\": 41,\n            \"prd_id\": 7,\n            \"prps_id\": 3,\n            \"sbsc_id\": 4,\n            \"sbr_payrate_1\": \"14.50\",\n            \"sbr_payrate_2\": \"14.50\",\n            \"sbr_payrate_3\": \"14.50\",\n            \"sbr_payrate_4\": \"14.50\",\n            \"sbr_payrate_5\": \"14.50\",\n            \"sbr_payrate_6\": \"14.50\",\n            \"sbr_payrate_7\": \"14.50\",\n            \"sbr_payrate_h\": \"14.50\",\n            \"sbr_chgrate_1\": \"19.75\",\n            \"sbr_chgrate_2\": \"19.75\",\n            \"sbr_chgrate_3\": \"19.75\",\n            \"sbr_chgrate_4\": \"19.75\",\n            \"sbr_chgrate_5\": \"19.75\",\n            \"sbr_chgrate_6\": \"19.75\",\n            \"sbr_chgrate_7\": \"19.75\",\n            \"sbr_chgrate_h\": \"19.75\",\n            \"sbr_created\": \"2026-02-01 09:00:00\",\n            \"sbr_updated\": \"2026-02-01 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"52481190-d381-447d-b70e-6bc3e8c657df"}],"id":"db1ba3cd-30e9-41e8-8c0e-22b2a80649e4","_postman_id":"db1ba3cd-30e9-41e8-8c0e-22b2a80649e4","description":""},{"name":"Locations","item":[{"name":"Add Location","id":"9409f994-8fea-4bb0-a925-e6e3725d6eb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocation\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbcl_name\": \"Northgate Depot\",\n            \"sbcl_code\": \"NGD\",\n            \"sbs_id\": 2,\n            \"sbcl_pcode\": \"AB1 2CD\",\n            \"sbcl_contact_name\": \"Sam Sample\",\n            \"ext_id\": \"LOC-77\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more locations to existing clients. Every key must be a location field, and values are checked against the field's type. <code>sbc_id</code>, <code>sbcl_name</code>, <code>sbs_id</code> and <code>sbcl_pcode</code> are required, and the name must be unique within the client. All rows are added together: if one row fails, none is added. Returns <code>sbcl_id</code> (a string) for each row, and <code>ext_id</code> when you supplied one.</p>\n<p><strong>Service:</strong> <code>addLocation</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client. Required on add; cannot be changed on update.</td>\n</tr>\n<tr>\n<td><code>sbcl_name</code></td>\n<td>varchar(100)</td>\n<td>Yes</td>\n<td>Location name. Required on add; cannot be blank. On add it must be unique within the client; on update it must be unique across all your locations.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Shift pattern id. Required on add.</td>\n</tr>\n<tr>\n<td><code>sbcl_pcode</code></td>\n<td>char(10)</td>\n<td>Yes</td>\n<td>Postcode. Required on add; cannot be blank.</td>\n</tr>\n<tr>\n<td><code>sbcl_code</code></td>\n<td>varchar(20)</td>\n<td>No</td>\n<td>Code. Checked for uniqueness on update.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank; echoed back by Add Location.</td>\n</tr>\n<tr>\n<td><code>sbcl_default_break_policy</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, NO BREAK, ALWAYS DEDUCT M or DEDUCT M IF WORKED H, with the _m, _h, _m_2 and _h_2 fields as for clients.</td>\n</tr>\n<tr>\n<td><code>sbcl_timesheet_format</code></td>\n<td>enum</td>\n<td>No</td>\n<td>default, digital, paper or none.</td>\n</tr>\n<tr>\n<td><code>sbcl_complex_location</code></td>\n<td>enum</td>\n<td>No</td>\n<td>on or off.</td>\n</tr>\n<tr>\n<td><code>sbcl_pono_mand / sbcl_polino_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbcl_sublocation_mand, sbcl_bref_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, on or off (and the matching *_shifts_batch fields: on or off).</td>\n</tr>\n<tr>\n<td><code>sbcl_contact_name, sbcl_internal_contact_name, sbcl_email, sbcl_email_timesheets</code></td>\n<td>varchar</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_notes, sbcl_booking_notes, sbcl_website, syr_id, sbcs_id, country_id</code></td>\n<td>various</td>\n<td>No</td>\n<td>sbcs_id is the location status.</td>\n</tr>\n<tr>\n<td><code>sbcl_invoice_address</code></td>\n<td>enum('none','client','location')</td>\n<td>No</td>\n<td>Which invoice address the location uses: none, client or location.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>string (numeric)</td>\n<td>New location id (a string).</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>Only when supplied.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages (for example Client or Location). Field names never change.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Client Panther Id [sbc_id] is required</code></li>\n<li><code>No Client exists with Panther Id 'X'</code></li>\n<li><code>Location Name [sbcl_name] is required</code></li>\n<li><code>A Location already exists with the name 'X' against Client 'Y'</code></li>\n<li><code>External Id 'X' is already assigned to Location 'Y'</code></li>\n<li><code>Shift Pattern [sbs_id] is required</code></li>\n<li><code>Postcode [sbcl_pcode] is required</code></li>\n<li><code>Location Name [sbcl_name] cannot be blank</code></li>\n<li><code>No Shift Pattern [sbs_id] exists with Panther Id 'X'</code></li>\n<li><code>Postcode [sbcl_pcode] cannot be blank</code></li>\n<li><code>Default Break Policy [sbcl_default_break_policy] must be in this list: DEFAULT,NO BREAK,ALWAYS DEDUCT M,DEDUCT M IF WORKED H</code></li>\n<li><code>Timesheet Format [sbcl_timesheet_format] must be in this list: default,digital,paper,none</code></li>\n<li><code>Complex Location [sbcl_complex_location] must be 'on' or 'off</code></li>\n<li><code>PO Number Mandatory [sbcl_pono_mand] must be in this list: default,on,off</code></li>\n<li><code>Unknown field: 'x'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"2a57bd70-281a-4851-8479-930baef20dfa","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocation\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbcl_name\": \"Northgate Depot\",\n            \"sbcl_code\": \"NGD\",\n            \"sbs_id\": 2,\n            \"sbcl_pcode\": \"AB1 2CD\",\n            \"sbcl_contact_name\": \"Sam Sample\",\n            \"ext_id\": \"LOC-77\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addLocation\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": \"120\",\n            \"ext_id\": \"LOC-77\"\n        }\n    ]\n}"}],"_postman_id":"9409f994-8fea-4bb0-a925-e6e3725d6eb7"},{"name":"Update Location","id":"0b6b6bd0-0fd4-406b-a9a9-86618c1e4063","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateLocation\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120,\n            \"sbcl_default_break_policy\": \"DEDUCT M IF WORKED H\",\n            \"sbcl_default_break_policy_m\": 30,\n            \"sbcl_default_break_policy_h\": 6\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more locations. Each row needs <code>sbcl_id</code> and the fields to change; <code>sbc_id</code> cannot be changed. On update the name must be unique across all your locations (on add it only has to be unique within the client), and <code>sbcl_code</code> must be unique. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateLocation</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Location to update.</td>\n</tr>\n<tr>\n<td><code>sbcl_name</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td>Must be unique across all your locations; cannot be blank.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Shift pattern id. Required on add.</td>\n</tr>\n<tr>\n<td><code>sbcl_pcode</code></td>\n<td>char(10)</td>\n<td>No</td>\n<td>Postcode. Required on add; cannot be blank.</td>\n</tr>\n<tr>\n<td><code>sbcl_code</code></td>\n<td>varchar(20)</td>\n<td>No</td>\n<td>Code. Must be unique.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your external id. Must be unique when not blank.</td>\n</tr>\n<tr>\n<td><code>sbcl_default_break_policy</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, NO BREAK, ALWAYS DEDUCT M or DEDUCT M IF WORKED H, with the _m, _h, _m_2 and _h_2 fields as for clients.</td>\n</tr>\n<tr>\n<td><code>sbcl_timesheet_format</code></td>\n<td>enum</td>\n<td>No</td>\n<td>default, digital, paper or none.</td>\n</tr>\n<tr>\n<td><code>sbcl_complex_location</code></td>\n<td>enum</td>\n<td>No</td>\n<td>on or off.</td>\n</tr>\n<tr>\n<td><code>sbcl_pono_mand / sbcl_polino_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>default, on or off.</td>\n</tr>\n<tr>\n<td><code>sbcl_sublocation_mand, sbcl_bref_mand</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, on or off (and the matching *_shifts_batch fields: on or off).</td>\n</tr>\n<tr>\n<td><code>sbcl_contact_name, sbcl_internal_contact_name, sbcl_email, sbcl_email_timesheets</code></td>\n<td>varchar</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_notes, sbcl_booking_notes, sbcl_website, syr_id, sbcs_id, country_id</code></td>\n<td>various</td>\n<td>No</td>\n<td>sbcs_id is the location status.</td>\n</tr>\n<tr>\n<td><code>sbcl_invoice_address</code></td>\n<td>enum('none','client','location')</td>\n<td>No</td>\n<td>Which invoice address the location uses: none, client or location.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages (for example Client or Location). Field names never change.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Location's Panther Id [sbcl_id] is required</code></li>\n<li><code>No Location exists with Panther Id 'X'</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbc_id'</code></li>\n<li><code>A Location already exists with the name 'X'</code></li>\n<li><code>Code 'X' has alreay been allocated to Location 'Y'</code></li>\n<li><code>You must update at least one field</code></li>\n<li><code>No Shift Pattern [sbs_id] exists with Panther Id 'X'</code></li>\n<li><code>Postcode [sbcl_pcode] cannot be blank</code></li>\n<li><code>Default Break Policy [sbcl_default_break_policy] must be in this list: DEFAULT,NO BREAK,ALWAYS DEDUCT M,DEDUCT M IF WORKED H</code></li>\n<li><code>Timesheet Format [sbcl_timesheet_format] must be in this list: default,digital,paper,none</code></li>\n<li><code>Complex Location [sbcl_complex_location] must be 'on' or 'off</code></li>\n<li><code>PO Number Mandatory [sbcl_pono_mand] must be in this list: default,on,off</code></li>\n<li><code>Unknown field: 'x'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"cf606bbc-7951-466e-b802-ccd2b541dab2","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateLocation\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120,\n            \"sbcl_default_break_policy\": \"DEDUCT M IF WORKED H\",\n            \"sbcl_default_break_policy_m\": 30,\n            \"sbcl_default_break_policy_h\": 6\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateLocation\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"0b6b6bd0-0fd4-406b-a9a9-86618c1e4063"},{"name":"Delete Location","id":"5b9f7daa-23ea-4e66-8a90-e62480936709","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocation\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more locations by <code>sbcl_id</code>. A location with any booked shift cannot be deleted. Otherwise its sub-locations, location contracts and location routes are deleted too. Rates, contacts and extra fields are kept. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteLocation</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Location to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages (for example Client or Location). Field names never change.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Location's Panther Id [sbcl_id] is required</code></li>\n<li><code>No Location exists with Panther Id 'X'</code></li>\n<li><code>Location with Panther Id 'X' cannot be deleted. Shifts have been booked.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"6e8c7472-9ddc-424c-92bf-53c2aab09dfe","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocation\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteLocation\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"5b9f7daa-23ea-4e66-8a90-e62480936709"},{"name":"Fetch Locations","id":"b21e8118-05de-4e51-9852-c6a7aaf4e154","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocations\",\n        \"datalevel\": \"verbose\",\n        \"sbc_id\": 41\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns locations. Header filters: <code>sbc_id</code> (all locations of a client), or <code>sbcl_id</code> or <code>ext_id</code> (one location; an error is returned if it is not found). Sorted by <code>sbc_id</code>, <code>sbcl_name</code> unless you send <code>orderby</code>. <code>datalevel: terse</code> (default) returns the main fields; <code>verbose</code> returns every location field. There is no filter on the client's external id: look up the client's <code>sbc_id</code> first.</p>\n<p><strong>Service:</strong> <code>fetchLocations</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>datalevel</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>One location. Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>One location by your external id. Not with sbcl_id.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_id,sbcl_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_code</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_address</code></td>\n<td>string</td>\n<td>With Enable Invoicing on: the invoice address text (location, then client, then your default). Otherwise: which address the location uses (none, client or location).</td>\n</tr>\n<tr>\n<td><code>verbose: all location fields</code></td>\n<td></td>\n<td>All location fields, for example sbcl_pcode, sbcl_longlat ('lat,long' text), sbcl_location, sbcl_contact_name, sbcl_internal_contact_name, sbcl_email, sbcl_email_timesheets, sbcl_default_break_policy*, sbcl_complex_location, sbcl_timesheet_format, sbcl_proof_work_timesheet, sbcl_pono_mand, sbcl_polino_mand, sbcl_sublocation_mand, sbcl_bref_mand (and *_shifts_batch), sbcl_notes, sbcl_booking_notes, sbcl_website, sbcl_ownership_override, sbcs_id, syr_id, country_id, sbcl_compliance_override, sbcl_created, sbcl_updated.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, sbs_desc</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Enable Invoicing (Configuration)</strong>: When on, each row includes invoice_address.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>sbcl_id and ext_id are mutually exclusive</code></li>\n<li><code>Location with Panther Id 'X' not found</code></li>\n<li><code>Location with External Id 'X' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"5056c38b-22b7-4ce8-b7ff-e7d4f841e7c0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocations\",\n        \"datalevel\": \"verbose\",\n        \"sbc_id\": 41\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchLocations\",\n        \"datalevel\": \"verbose\",\n        \"sbc_id\": 41,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120,\n            \"sbcl_name\": \"Northgate Depot\",\n            \"sbcl_code\": \"NGD\",\n            \"sbc_id\": 41,\n            \"sbs_id\": 2,\n            \"ext_id\": \"LOC-77\",\n            \"invoice_address\": \"none\",\n            \"FKData\": {\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbs_desc\": \"Standard Week\"\n            }\n        }\n    ]\n}"}],"_postman_id":"b21e8118-05de-4e51-9852-c6a7aaf4e154"},{"name":"Fetch Updated Locations","id":"766fe56a-e9ce-4d8d-a551-750185887154","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocations\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"verbose\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns locations changed on or after <code>updatesSince</code>, with the same fields as Fetch Locations. Deleted locations are not reported. Sorted by <code>sbcl_name</code> unless you send <code>orderby</code>.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedLocations</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string 'YYYY-MM-DD HH:MM:SS'</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>datalevel</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>terse</code></td>\n<td><code>terse</code>, <code>verbose</code></td>\n<td>terse (default) returns the main columns; verbose returns all columns.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbcl_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_code</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_address</code></td>\n<td>string</td>\n<td>With Enable Invoicing on: the invoice address text (location, then client, then your default). Otherwise: which address the location uses (none, client or location).</td>\n</tr>\n<tr>\n<td><code>verbose: all location fields</code></td>\n<td></td>\n<td>All location fields, for example sbcl_pcode, sbcl_longlat ('lat,long' text), sbcl_location, sbcl_contact_name, sbcl_internal_contact_name, sbcl_email, sbcl_email_timesheets, sbcl_default_break_policy*, sbcl_complex_location, sbcl_timesheet_format, sbcl_proof_work_timesheet, sbcl_pono_mand, sbcl_polino_mand, sbcl_sublocation_mand, sbcl_bref_mand (and *_shifts_batch), sbcl_notes, sbcl_booking_notes, sbcl_website, sbcl_ownership_override, sbcs_id, syr_id, country_id, sbcl_compliance_override, sbcl_created, sbcl_updated.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, sbs_desc</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Enable Invoicing (Configuration)</strong>: When on, each row includes invoice_address.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"81981951-d0c3-4702-8e94-50c30a419169","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocations\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"verbose\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedLocations\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"datalevel\": \"verbose\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120,\n            \"sbcl_name\": \"Northgate Depot\",\n            \"sbcl_code\": \"NGD\",\n            \"sbc_id\": 41,\n            \"sbs_id\": 2,\n            \"ext_id\": \"LOC-77\",\n            \"invoice_address\": \"none\",\n            \"FKData\": {\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbs_desc\": \"Standard Week\"\n            }\n        }\n    ]\n}"}],"_postman_id":"766fe56a-e9ce-4d8d-a551-750185887154"},{"name":"Fetch Location Rates - by Shift Pattern Slot","id":"2468acf4-6983-48f4-8682-e8074bc01b2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationRatesByShiftPatternSlot\",\n        \"sbcl_id\": 120,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns location rates by shift pattern: one row per duty and shift pattern (<code>sbs_id</code>), with pay and charge rates for each day of the week and for holidays. Filter with <code>sbc_id</code> or <code>sbcl_id</code> in the header; if a filter matches nothing, an error is returned instead of an empty list. No default order. <code>includeFKData: on</code> adds the names of linked records.</p>\n<p>Read-only: rates are maintained in your system's screens.</p>\n<p><strong>Service:</strong> <code>fetchLocationRatesByShiftPatternSlot</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbr_id</code></td>\n<td>int</td>\n<td>Rate id.</td>\n</tr>\n<tr>\n<td><code>sbr_rtype</code></td>\n<td>string</td>\n<td>CLIENT, LOCATION or LOCCONT.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Location id.</td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Duty id.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Shift pattern id. Location rates have no slot (sbsp_id).</td>\n</tr>\n<tr>\n<td><code>sbr_payrate_1..7, sbr_payrate_h</code></td>\n<td>decimal string</td>\n<td>Pay rate for each day of your shift week (1 = the first day; see Shift Week Start) and h = holiday rate.</td>\n</tr>\n<tr>\n<td><code>sbr_chgrate_1..7, sbr_chgrate_h</code></td>\n<td>decimal string</td>\n<td>Charge rate, same day layout.</td>\n</tr>\n<tr>\n<td><code>sbr_created, sbr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, sbcl_name, prd_desc, prd_active, sbs_desc, sbs_active</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Rates found for Client with Panther Id 'X'</code></li>\n<li><code>No Rates found for Location with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"c6e5c6b7-8e39-4dc7-9146-3cd1c9717ebf","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationRatesByShiftPatternSlot\",\n        \"sbcl_id\": 120,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchLocationRatesByShiftPatternSlot\",\n        \"sbcl_id\": 120,\n        \"includeFKData\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbr_id\": 310,\n            \"sbr_rtype\": \"LOCATION\",\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"prd_id\": 7,\n            \"sbs_id\": 2,\n            \"sbr_payrate_1\": \"14.50\",\n            \"sbr_payrate_2\": \"14.50\",\n            \"sbr_payrate_3\": \"14.50\",\n            \"sbr_payrate_4\": \"14.50\",\n            \"sbr_payrate_5\": \"14.50\",\n            \"sbr_payrate_6\": \"14.50\",\n            \"sbr_payrate_7\": \"14.50\",\n            \"sbr_payrate_h\": \"14.50\",\n            \"sbr_chgrate_1\": \"19.75\",\n            \"sbr_chgrate_2\": \"19.75\",\n            \"sbr_chgrate_3\": \"19.75\",\n            \"sbr_chgrate_4\": \"19.75\",\n            \"sbr_chgrate_5\": \"19.75\",\n            \"sbr_chgrate_6\": \"19.75\",\n            \"sbr_chgrate_7\": \"19.75\",\n            \"sbr_chgrate_h\": \"19.75\",\n            \"sbr_created\": \"2026-02-01 09:00:00\",\n            \"sbr_updated\": \"2026-02-01 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"2468acf4-6983-48f4-8682-e8074bc01b2e"},{"name":"Fetch Location Rates - by Core Shift","id":"2585c5f5-dc4e-4b49-87c7-cb96b44513c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationRatesByCoreShift\",\n        \"sbcl_id\": 120,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns location rates by core shift: one row per duty, pay scheme (<code>prps_id</code>) and core shift (<code>sbsc_id</code>), with pay and charge rates for each day of the week and for holidays. Filter with <code>sbc_id</code> or <code>sbcl_id</code> in the header; if a filter matches nothing, an error is returned instead of an empty list. No default order. <code>includeFKData: on</code> adds the names of linked records.</p>\n<p>Read-only: rates are maintained in your system's screens.</p>\n<p><strong>Service:</strong> <code>fetchLocationRatesByCoreShift</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbr_id</code></td>\n<td>int</td>\n<td>Rate id.</td>\n</tr>\n<tr>\n<td><code>sbr_rtype</code></td>\n<td>string</td>\n<td>CLIENT, LOCATION or LOCCONT.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Location id.</td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Duty id.</td>\n</tr>\n<tr>\n<td><code>prps_id</code></td>\n<td>int</td>\n<td>Pay Scheme</td>\n</tr>\n<tr>\n<td><code>sbsc_id</code></td>\n<td>int</td>\n<td>Core Shift</td>\n</tr>\n<tr>\n<td><code>sbr_payrate_1..7, sbr_payrate_h</code></td>\n<td>decimal string</td>\n<td>Pay rate for each day of your shift week (1 = the first day; see Shift Week Start) and h = holiday rate.</td>\n</tr>\n<tr>\n<td><code>sbr_chgrate_1..7, sbr_chgrate_h</code></td>\n<td>decimal string</td>\n<td>Charge rate, same day layout.</td>\n</tr>\n<tr>\n<td><code>sbr_created, sbr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, sbcl_name, prd_desc, prd_active, prps_name, prps_active, sbsc_title, sbsc_active</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Rates found for Client with Panther Id 'X'</code></li>\n<li><code>No Rates found for Location with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"b183300f-8393-4e54-9c86-91e7c0dd4a70","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationRatesByCoreShift\",\n        \"sbcl_id\": 120,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchLocationRatesByCoreShift\",\n        \"sbcl_id\": 120,\n        \"includeFKData\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbr_id\": 310,\n            \"sbr_rtype\": \"LOCATION\",\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"prd_id\": 7,\n            \"prps_id\": 3,\n            \"sbsc_id\": 4,\n            \"sbr_payrate_1\": \"14.50\",\n            \"sbr_payrate_2\": \"14.50\",\n            \"sbr_payrate_3\": \"14.50\",\n            \"sbr_payrate_4\": \"14.50\",\n            \"sbr_payrate_5\": \"14.50\",\n            \"sbr_payrate_6\": \"14.50\",\n            \"sbr_payrate_7\": \"14.50\",\n            \"sbr_payrate_h\": \"14.50\",\n            \"sbr_chgrate_1\": \"19.75\",\n            \"sbr_chgrate_2\": \"19.75\",\n            \"sbr_chgrate_3\": \"19.75\",\n            \"sbr_chgrate_4\": \"19.75\",\n            \"sbr_chgrate_5\": \"19.75\",\n            \"sbr_chgrate_6\": \"19.75\",\n            \"sbr_chgrate_7\": \"19.75\",\n            \"sbr_chgrate_h\": \"19.75\",\n            \"sbr_created\": \"2026-02-01 09:00:00\",\n            \"sbr_updated\": \"2026-02-01 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"2585c5f5-dc4e-4b49-87c7-cb96b44513c8"}],"id":"338dbcca-f237-4ed0-ae7e-67fa70c07b55","_postman_id":"338dbcca-f237-4ed0-ae7e-67fa70c07b55","description":""},{"name":"Location Routes","item":[{"name":"Add Location Route","id":"5c100b74-6785-440f-b405-962851e87383","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocationRoute\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbrt_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Links one or more master routes (Fetch Master Routes) to a location. <code>sbc_id</code>, <code>sbcl_id</code> and <code>sbrt_id</code> are required, the location must belong to the client, and a route cannot be linked to the same location twice. Returns <code>sbclrt_id</code> (a string) for each row.</p>\n<p><strong>Service:</strong> <code>addLocationRoute</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Location. Must belong to sbc_id.</td>\n</tr>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Master route id.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclrt_id</code></td>\n<td>string (numeric)</td>\n<td>New location route id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Routes (Configuration)</strong>: Shows routes in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Client Id [sbc_id] is required</code></li>\n<li><code>No Client exists with Panther Id 'X'</code></li>\n<li><code>Location Id [sbcl_id] is required</code></li>\n<li><code>No Location exists with Panther Id 'X' against the Client with Panther Id 'Y;'</code></li>\n<li><code>Route Id [sbrt_id] is required</code></li>\n<li><code>No Route [sbrt_id] exists with Panther Id 'X'</code></li>\n<li><code>A Route already exists with Route Id 'X' against Client with Panther Id 'Y' and Location with Panther Id 'Z'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"c65f2bf2-dabc-4eb3-bfb2-24c8a4e5592d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocationRoute\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbrt_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addLocationRoute\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": \"15\"\n        }\n    ]\n}"}],"_postman_id":"5c100b74-6785-440f-b405-962851e87383"},{"name":"Delete Location Route","id":"2039d17c-6776-4cb9-8548-8bcb9ee1b583","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocationRoute\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": 15\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Removes one or more location route links by <code>sbclrt_id</code>. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteLocationRoute</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclrt_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Routes (Configuration)</strong>: Shows routes in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Route's Panther Id [sbclrt_id] is required</code></li>\n<li><code>No Route exists with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"00e46311-979d-42cf-b69f-cceb1b0e6268","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocationRoute\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": 15\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteLocationRoute\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"2039d17c-6776-4cb9-8548-8bcb9ee1b583"},{"name":"Fetch Location Routes","id":"745cc559-8f54-43f5-b3cf-21b7f4aad1fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationRoutes\",\n        \"includeFKData\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns all location routes (links between locations and master routes) with their names, sorted by client, location and route name unless you send <code>orderby</code>. There is no location filter: filter the results by <code>sbcl_id</code> yourself. <code>includeFKData: on</code> adds the route, client and location names.</p>\n<p><strong>Service:</strong> <code>fetchLocationRoutes</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name,sbcl_name,sbrt_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclrt_id</code></td>\n<td>int</td>\n<td>Location route id.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>Master route (Fetch Master Routes).</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbrt_name, sbrt_code, sbrt_active, sbc_name, sbcl_name</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Routes (Configuration)</strong>: Shows routes in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"9ed3ee0e-5a4b-4145-b67d-70cdc52dc170","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationRoutes\",\n        \"includeFKData\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchLocationRoutes\",\n        \"includeFKData\": \"on\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": 15,\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbrt_id\": 3,\n            \"FKData\": {\n                \"sbrt_name\": \"Route 3\",\n                \"sbrt_code\": \"R003\",\n                \"sbrt_active\": \"on\",\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbcl_name\": \"Northgate Depot\"\n            }\n        }\n    ]\n}"}],"_postman_id":"745cc559-8f54-43f5-b3cf-21b7f4aad1fc"},{"name":"Fetch Updated Location Routes","id":"1ddd2015-6d05-40d1-8959-f8b47d39f737","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocationRoutes\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns location routes whose location or master route changed on or after <code>updatesSince</code>. A link that was added or removed is not returned unless its location or route also changed, and deleted links are not reported. Sorted by client and location name unless you send <code>orderby</code>. <code>includeFKData: on</code> adds the route, client and location names.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedLocationRoutes</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string 'YYYY-MM-DD HH:MM:SS'</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name,sbcl_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclrt_id</code></td>\n<td>int</td>\n<td>Location route id.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>Master route (Fetch Master Routes).</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbrt_name, sbrt_code, sbrt_active, sbc_name, sbcl_name</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Routes (Configuration)</strong>: Shows routes in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"6f39efe4-3632-4cb5-8c3d-c839c3eac709","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocationRoutes\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedLocationRoutes\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": 15,\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbrt_id\": 3,\n            \"FKData\": {\n                \"sbrt_name\": \"Route 3\",\n                \"sbrt_code\": \"R003\",\n                \"sbrt_active\": \"on\",\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbcl_name\": \"Northgate Depot\"\n            }\n        }\n    ]\n}"}],"_postman_id":"1ddd2015-6d05-40d1-8959-f8b47d39f737"}],"id":"8af61385-5b7f-4a97-be32-ead246c89992","_postman_id":"8af61385-5b7f-4a97-be32-ead246c89992","description":""},{"name":"Location Depots (aliases)","item":[{"name":"Add Location Depot (alias of Add Location Route)","id":"47a67a57-c879-4dde-9339-0c06ba68376e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocationDepot\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbrt_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Add Location Route.</strong> 'Depot' is older wording for location route; this service behaves exactly like Add Location Route.</p>\n<p>Links one or more master routes (Fetch Master Routes) to a location. <code>sbc_id</code>, <code>sbcl_id</code> and <code>sbrt_id</code> are required, the location must belong to the client, and a route cannot be linked to the same location twice. Returns <code>sbclrt_id</code> (a string) for each row.</p>\n<p><strong>Service:</strong> <code>addLocationDepot</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Location. Must belong to sbc_id.</td>\n</tr>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Master route id.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclrt_id</code></td>\n<td>string (numeric)</td>\n<td>New location route id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Routes (Configuration)</strong>: Shows routes in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Client Id [sbc_id] is required</code></li>\n<li><code>No Client exists with Panther Id 'X'</code></li>\n<li><code>Location Id [sbcl_id] is required</code></li>\n<li><code>No Location exists with Panther Id 'X' against the Client with Panther Id 'Y;'</code></li>\n<li><code>Route Id [sbrt_id] is required</code></li>\n<li><code>No Route [sbrt_id] exists with Panther Id 'X'</code></li>\n<li><code>A Route already exists with Route Id 'X' against Client with Panther Id 'Y' and Location with Panther Id 'Z'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"25a70061-7f68-463d-a89a-96a9ad6a823a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocationDepot\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbrt_id\": 3\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addLocationDepot\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": \"15\"\n        }\n    ]\n}"}],"_postman_id":"47a67a57-c879-4dde-9339-0c06ba68376e"},{"name":"Delete Location Depot (alias of Delete Location Route)","id":"d36ac7ac-f943-46c0-b8e9-b9daa5e2ec14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocationDepot\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": 15\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Delete Location Route.</strong> 'Depot' is older wording for location route; this service behaves exactly like Delete Location Route.</p>\n<p>Removes one or more location route links by <code>sbclrt_id</code>. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteLocationDepot</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclrt_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Routes (Configuration)</strong>: Shows routes in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Route's Panther Id [sbclrt_id] is required</code></li>\n<li><code>No Route exists with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"aca3857c-6e99-4bc5-b76b-afb9b76407e8","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocationDepot\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": 15\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteLocationDepot\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"d36ac7ac-f943-46c0-b8e9-b9daa5e2ec14"},{"name":"Fetch Location Depots (alias of Fetch Location Routes)","id":"08bf9c25-98df-4bb7-8f03-39608dcd2453","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationDepots\",\n        \"includeFKData\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Fetch Location Routes.</strong> 'Depot' is older wording for location route; this service behaves exactly like Fetch Location Routes.</p>\n<p>Returns all location routes (links between locations and master routes) with their names, sorted by client, location and route name unless you send <code>orderby</code>. There is no location filter: filter the results by <code>sbcl_id</code> yourself. <code>includeFKData: on</code> adds the route, client and location names.</p>\n<p><strong>Service:</strong> <code>fetchLocationDepots</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name,sbcl_name,sbrt_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclrt_id</code></td>\n<td>int</td>\n<td>Location route id.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>Master route (Fetch Master Routes).</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbrt_name, sbrt_code, sbrt_active, sbc_name, sbcl_name</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Routes (Configuration)</strong>: Shows routes in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"1a62f2ef-4f36-456b-90eb-bb7d417d4036","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationDepots\",\n        \"includeFKData\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchLocationDepots\",\n        \"includeFKData\": \"on\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": 15,\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbrt_id\": 3,\n            \"FKData\": {\n                \"sbrt_name\": \"Route 3\",\n                \"sbrt_code\": \"R003\",\n                \"sbrt_active\": \"on\",\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbcl_name\": \"Northgate Depot\"\n            }\n        }\n    ]\n}"}],"_postman_id":"08bf9c25-98df-4bb7-8f03-39608dcd2453"},{"name":"Fetch Updated Location Depots (alias)","id":"6939951e-09c2-48ea-9754-3bd4f6104c7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocationDepots\",\n        \"includeFKData\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p><strong>Another name for Fetch Location Routes.</strong> It returns every location route; <code>updatesSince</code> is not applied. To get only changed location routes, use Fetch Updated Location Routes.</p>\n<p>Returns all location routes (links between locations and master routes) with their names, sorted by client, location and route name unless you send <code>orderby</code>. There is no location filter: filter the results by <code>sbcl_id</code> yourself. <code>includeFKData: on</code> adds the route, client and location names.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedLocationDepots</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name,sbcl_name,sbrt_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclrt_id</code></td>\n<td>int</td>\n<td>Location route id.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>Master route (Fetch Master Routes).</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbrt_name, sbrt_code, sbrt_active, sbc_name, sbcl_name</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Routes (Configuration)</strong>: Shows routes in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"4b4abd53-b048-44d0-8cf7-ba5103ac2f1a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocationDepots\",\n        \"includeFKData\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedLocationDepots\",\n        \"includeFKData\": \"on\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbclrt_id\": 15,\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbrt_id\": 3,\n            \"FKData\": {\n                \"sbrt_name\": \"Route 3\",\n                \"sbrt_code\": \"R003\",\n                \"sbrt_active\": \"on\",\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbcl_name\": \"Northgate Depot\"\n            }\n        }\n    ]\n}"}],"_postman_id":"6939951e-09c2-48ea-9754-3bd4f6104c7e"}],"id":"823b54ee-0921-46ab-ae5e-ad3fd755ae48","_postman_id":"823b54ee-0921-46ab-ae5e-ad3fd755ae48","description":""},{"name":"Location Sub Locations","item":[{"name":"Add Location Sub Location","id":"7279edd3-a02a-4dba-bbc3-b07a7c1918d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocationSublocation\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120,\n            \"sbcsl_name\": \"Gate B\",\n            \"sbcsl_pcode\": \"AB1 2CE\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more sub-locations to existing locations. <code>sbcl_id</code> and <code>sbcsl_name</code> are required, and the name must be unique within the location. Returns <code>sbcsl_id</code> (a string) for each row.</p>\n<p><strong>Service:</strong> <code>addLocationSublocation</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Location. Required on add; cannot be changed on update.</td>\n</tr>\n<tr>\n<td><code>sbcsl_name</code></td>\n<td>varchar(100)</td>\n<td>Yes</td>\n<td>Name. Required on add; must be unique within the location; cannot be blank.</td>\n</tr>\n<tr>\n<td><code>sbcsl_code</code></td>\n<td>varchar(20)</td>\n<td>No</td>\n<td>Code. Checked for uniqueness on update.</td>\n</tr>\n<tr>\n<td><code>sbcsl_pcode</code></td>\n<td>char(10)</td>\n<td>No</td>\n<td>Postcode.</td>\n</tr>\n<tr>\n<td><code>sbcsl_email_timesheets</code></td>\n<td>varchar(255)</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcsl_location, sbcsl_website, sbcsl_notes, sbcsl_booking_notes, sbcs_id</code></td>\n<td>various</td>\n<td>No</td>\n<td>sbcs_id is the sub-location status.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcsl_id</code></td>\n<td>string (numeric)</td>\n<td>New sub-location id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Sub Locations (Configuration)</strong>: Shows sub-locations in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Location Panther Id [sbcl_id] is required</code></li>\n<li><code>No Location exists with Panther Id 'X'</code></li>\n<li><code>Sub Location Name [sbcsl_name] is required</code></li>\n<li><code>A Sub Location already exists with the name 'X' against Location 'Y'</code></li>\n<li><code>Sub Location Name [sbcsl_name] cannot be blank</code></li>\n<li><code>Unknown field: 'x'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"46463023-adb2-42a4-8372-eb0118e0d47c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocationSublocation\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120,\n            \"sbcsl_name\": \"Gate B\",\n            \"sbcsl_pcode\": \"AB1 2CE\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addLocationSublocation\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbcsl_id\": \"2001\"\n        }\n    ]\n}"}],"_postman_id":"7279edd3-a02a-4dba-bbc3-b07a7c1918d9"},{"name":"Update Location Sub Location","id":"bb6135da-5aa3-47a2-a47d-bdd1ca9ae2c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateLocationSublocation\"\n    },\n    \"body\": [\n        {\n            \"sbcsl_id\": 2001,\n            \"sbcsl_name\": \"Gate B North\",\n            \"sbcsl_email_timesheets\": \"timesheets@example.com\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more sub-locations by <code>sbcsl_id</code>; <code>sbcl_id</code> cannot be changed. On update the name must be unique across all your sub-locations, and <code>sbcsl_code</code> must be unique. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateLocationSublocation</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcsl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Sub-location to update.</td>\n</tr>\n<tr>\n<td><code>sbcsl_name</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td>Must be unique across all your sub-locations; cannot be blank.</td>\n</tr>\n<tr>\n<td><code>sbcsl_code</code></td>\n<td>varchar(20)</td>\n<td>No</td>\n<td>Code. Must be unique.</td>\n</tr>\n<tr>\n<td><code>sbcsl_pcode</code></td>\n<td>char(10)</td>\n<td>No</td>\n<td>Postcode.</td>\n</tr>\n<tr>\n<td><code>sbcsl_email_timesheets</code></td>\n<td>varchar(255)</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcsl_location, sbcsl_website, sbcsl_notes, sbcsl_booking_notes, sbcs_id</code></td>\n<td>various</td>\n<td>No</td>\n<td>sbcs_id is the sub-location status.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Sub Locations (Configuration)</strong>: Shows sub-locations in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Sub Location's Panther Id [sbcsl_id] is required</code></li>\n<li><code>No Sub Location exists with Panther Id 'X'</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbcl_id'</code></li>\n<li><code>A Sub Location already exists with the name 'X'</code></li>\n<li><code>Code 'X' has alreay been allocated to Sub Location 'Y'</code></li>\n<li><code>Sub Location Name [sbcsl_name] cannot be blank</code></li>\n<li><code>You must update at least one field</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"61967b9d-ba9c-407f-98fd-53fcef6153f5","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateLocationSublocation\"\n    },\n    \"body\": [\n        {\n            \"sbcsl_id\": 2001,\n            \"sbcsl_name\": \"Gate B North\",\n            \"sbcsl_email_timesheets\": \"timesheets@example.com\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateLocationSublocation\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"bb6135da-5aa3-47a2-a47d-bdd1ca9ae2c0"},{"name":"Delete Location Sub Location","id":"d6acc44e-b0b2-431d-973c-b6d0717f4bc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocationSublocation\"\n    },\n    \"body\": [\n        {\n            \"sbcsl_id\": 2001\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more sub-locations by <code>sbcsl_id</code>. Shifts and contacts that use the sub-location are left as they are. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteLocationSublocation</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcsl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Sub Locations (Configuration)</strong>: Shows sub-locations in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Location Sub Location's Panther Id [sbcsl_id] is required</code></li>\n<li><code>No Location Sub Location exists with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"a0978eac-7c7d-4b82-bf4f-bda75629421e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocationSublocation\"\n    },\n    \"body\": [\n        {\n            \"sbcsl_id\": 2001\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteLocationSublocation\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"d6acc44e-b0b2-431d-973c-b6d0717f4bc2"},{"name":"Fetch Location Sub Locations","id":"de61b09c-f719-4de7-9f99-73b5a84009e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationSublocations\",\n        \"sbcl_id\": 120,\n        \"includeFKData\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns sub-locations with the names of their client and location. Optional header filters <code>sbc_id</code> and <code>sbcl_id</code> (each must exist). Sorted by client, location and sub-location name unless you send <code>orderby</code>.</p>\n<p><strong>Service:</strong> <code>fetchLocationSublocations</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name,sbcl_name,sbcsl_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sub-location fields</code></td>\n<td></td>\n<td>sbcsl_id, sbcl_id, sbcsl_name, sbcsl_code, sbcsl_pcode, sbcsl_location, sbcsl_longlat, sbcsl_website, sbcsl_email_timesheets, sbcsl_email_timesheets_approval_2, sbcsl_notes, sbcsl_booking_notes, sbcs_id, sbcsl_compliance_override, sbcsl_created, sbcsl_updated.</td>\n</tr>\n<tr>\n<td><code>sbcsl_longlat</code></td>\n<td>string</td>\n<td>'lat,long' text, or null.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_id, sbc_name, sbcl_name</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Sub Locations (Configuration)</strong>: Shows sub-locations in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Client exists with Panther Id 'X'</code></li>\n<li><code>No Location exists with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"06a71960-8e66-46e1-b4c2-426cb25aacdd","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationSublocations\",\n        \"sbcl_id\": 120,\n        \"includeFKData\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchLocationSublocations\",\n        \"sbcl_id\": 120,\n        \"includeFKData\": \"on\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbcsl_id\": 2001,\n            \"sbcl_id\": 120,\n            \"sbcsl_name\": \"Gate B\",\n            \"sbcsl_code\": \"GB\",\n            \"sbcsl_pcode\": \"AB1 2CE\",\n            \"sbcsl_longlat\": \"53.8001,-1.5502\",\n            \"sbcsl_email_timesheets\": \"\",\n            \"sbcs_id\": 1,\n            \"sbcsl_created\": \"2026-01-10 10:00:00\",\n            \"sbcsl_updated\": \"2026-01-10 10:00:00\",\n            \"FKData\": {\n                \"sbc_id\": 41,\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbcl_name\": \"Northgate Depot\"\n            }\n        }\n    ]\n}"}],"_postman_id":"de61b09c-f719-4de7-9f99-73b5a84009e6"},{"name":"Fetch Updated Location Sub Locations","id":"e4ba5060-fbe2-4b4e-865e-ff02036dc738","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocationSublocations\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns sub-locations changed on or after <code>updatesSince</code>, with the same fields as Fetch Location Sub Locations. Deleted sub-locations are not reported. Sorted by client and location name unless you send <code>orderby</code>.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedLocationSublocations</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string 'YYYY-MM-DD HH:MM:SS'</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name,sbcl_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sub-location fields</code></td>\n<td></td>\n<td>sbcsl_id, sbcl_id, sbcsl_name, sbcsl_code, sbcsl_pcode, sbcsl_location, sbcsl_longlat, sbcsl_website, sbcsl_email_timesheets, sbcsl_email_timesheets_approval_2, sbcsl_notes, sbcsl_booking_notes, sbcs_id, sbcsl_compliance_override, sbcsl_created, sbcsl_updated.</td>\n</tr>\n<tr>\n<td><code>sbcsl_longlat</code></td>\n<td>string</td>\n<td>'lat,long' text, or null.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_id, sbc_name, sbcl_name</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Sub Locations (Configuration)</strong>: Shows sub-locations in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"ce4cfd13-aa3f-4ddf-bff9-8610ee682af7","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocationSublocations\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedLocationSublocations\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbcsl_id\": 2001,\n            \"sbcl_id\": 120,\n            \"sbcsl_name\": \"Gate B\",\n            \"sbcsl_code\": \"GB\",\n            \"sbcsl_pcode\": \"AB1 2CE\",\n            \"sbcsl_longlat\": \"53.8001,-1.5502\",\n            \"sbcsl_email_timesheets\": \"\",\n            \"sbcs_id\": 1,\n            \"sbcsl_created\": \"2026-01-10 10:00:00\",\n            \"sbcsl_updated\": \"2026-01-10 10:00:00\",\n            \"FKData\": {\n                \"sbc_id\": 41,\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbcl_name\": \"Northgate Depot\"\n            }\n        }\n    ]\n}"}],"_postman_id":"e4ba5060-fbe2-4b4e-865e-ff02036dc738"}],"id":"bcd3a6eb-4260-4843-a9e1-b41c730b3bdb","_postman_id":"bcd3a6eb-4260-4843-a9e1-b41c730b3bdb","description":""},{"name":"Location Contracts","item":[{"name":"Add Location Contract","id":"18a046a2-decb-4baa-b012-628f93f43539","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocationContract\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120,\n            \"sbclc_name\": \"Track Renewals 2026\",\n            \"sbs_id\": 2\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more location contracts to existing locations. <code>sbcl_id</code>, <code>sbclc_name</code> and <code>sbs_id</code> are required, and the name must be unique within the location. Returns <code>sbclc_id</code> (a string) for each row.</p>\n<p><strong>Service:</strong> <code>addLocationContract</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Parent location. Required on add; cannot be changed on update.</td>\n</tr>\n<tr>\n<td><code>sbclc_name</code></td>\n<td>varchar(100)</td>\n<td>Yes</td>\n<td>Contract name. Required on add; must be unique within the location; cannot be blank.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Shift pattern id. Required on add.</td>\n</tr>\n<tr>\n<td><code>sbclc_vname, sbclc_desc</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td>Vendor contract name and description.</td>\n</tr>\n<tr>\n<td><code>sbdi_id, sbete_id, sbclc_director_syu_id, sbclc_manager_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Send a value that exists in your system.</td>\n</tr>\n<tr>\n<td><code>sbclc_default_break_policy (+ _m, _h, _m_2, _h_2)</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, NO BREAK, ALWAYS DEDUCT M or DEDUCT M IF WORKED H, with the break fields as for clients.</td>\n</tr>\n<tr>\n<td><code>sbclc_ownership_override</code></td>\n<td>enum('DEFAULT','OVERRIDE')</td>\n<td>No</td>\n<td>DEFAULT or OVERRIDE. OVERRIDE gives the contract its own owner and team (set in your system's screens).</td>\n</tr>\n<tr>\n<td><code>sbclc_charge_package_description, sbclc_trd_override, sbclc_ltd_*_posting_group, sbcs_id</code></td>\n<td>various</td>\n<td>No</td>\n<td>sbcs_id is the contract status.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclc_id</code></td>\n<td>string (numeric)</td>\n<td>New location contract id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Location Panther Id [sbcl_id] is required</code></li>\n<li><code>No Location exists with Panther Id 'X'</code></li>\n<li><code>Location Contract Name [sbclc_name] is required</code></li>\n<li><code>A Location Contract already exists with the name 'X' against Location 'Y'</code></li>\n<li><code>Shift Pattern [sbs_id] is required</code></li>\n<li><code>Location Contract Name [sbclc_name] cannot be blank</code></li>\n<li><code>No Shift Pattern [sbs_id] exists with Panther Id 'X'</code></li>\n<li><code>Unknown field: 'x'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"4d5f0daa-d654-45f7-81f4-67b16a582c6d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addLocationContract\"\n    },\n    \"body\": [\n        {\n            \"sbcl_id\": 120,\n            \"sbclc_name\": \"Track Renewals 2026\",\n            \"sbs_id\": 2\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addLocationContract\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbclc_id\": \"55\"\n        }\n    ]\n}"}],"_postman_id":"18a046a2-decb-4baa-b012-628f93f43539"},{"name":"Update Location Contract","id":"08022bb2-f388-41fc-ace2-07919399ec03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateLocationContract\"\n    },\n    \"body\": [\n        {\n            \"sbclc_id\": 55,\n            \"sbclc_desc\": \"Weekday possessions\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more location contracts by <code>sbclc_id</code>; <code>sbcl_id</code> cannot be changed. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateLocationContract</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Location contract to update.</td>\n</tr>\n<tr>\n<td><code>sbclc_name</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td>Contract name; cannot be blank.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Shift pattern id.</td>\n</tr>\n<tr>\n<td><code>sbclc_vname, sbclc_desc</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td>Vendor contract name and description.</td>\n</tr>\n<tr>\n<td><code>sbdi_id, sbete_id, sbclc_director_syu_id, sbclc_manager_syu_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Send a value that exists in your system.</td>\n</tr>\n<tr>\n<td><code>sbclc_default_break_policy (+ _m, _h, _m_2, _h_2)</code></td>\n<td>enum</td>\n<td>No</td>\n<td>DEFAULT, NO BREAK, ALWAYS DEDUCT M or DEDUCT M IF WORKED H, with the break fields as for clients.</td>\n</tr>\n<tr>\n<td><code>sbclc_ownership_override</code></td>\n<td>enum('DEFAULT','OVERRIDE')</td>\n<td>No</td>\n<td>DEFAULT or OVERRIDE. OVERRIDE gives the contract its own owner and team (set in your system's screens).</td>\n</tr>\n<tr>\n<td><code>sbclc_charge_package_description, sbclc_trd_override, sbclc_ltd_*_posting_group, sbcs_id</code></td>\n<td>various</td>\n<td>No</td>\n<td>sbcs_id is the contract status.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Location Contract's Panther Id [sbclc_id] is required</code></li>\n<li><code>No Location Contract exists with Panther Id 'X'</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbcl_id'</code></li>\n<li><code>Location Contract Name [sbclc_name] cannot be blank</code></li>\n<li><code>No Shift Pattern [sbs_id] exists with Panther Id 'X'</code></li>\n<li><code>You must update at least one field</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"4ffa16c0-0b5a-4607-b5ce-f0ba9c4dc015","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateLocationContract\"\n    },\n    \"body\": [\n        {\n            \"sbclc_id\": 55,\n            \"sbclc_desc\": \"Weekday possessions\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateLocationContract\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"08022bb2-f388-41fc-ace2-07919399ec03"},{"name":"Delete Location Contract","id":"fb08d322-4167-4d2d-81be-7c76d9b3339b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocationContract\"\n    },\n    \"body\": [\n        {\n            \"sbclc_id\": 55\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more location contracts by <code>sbclc_id</code>. Shifts and rates that use the contract are left as they are. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteLocationContract</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbclc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Location Contract's Panther Id [sbclc_id] is required</code></li>\n<li><code>No Location Contract exists with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"7dcb10a4-0474-4dcb-84c9-ef7b74bc1a17","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteLocationContract\"\n    },\n    \"body\": [\n        {\n            \"sbclc_id\": 55\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteLocationContract\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"fb08d322-4167-4d2d-81be-7c76d9b3339b"},{"name":"Fetch Location Contracts","id":"51c9c8c9-f771-4b06-ba63-0248beacb4ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationContracts\",\n        \"sbc_id\": 41\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns location contracts with the names of linked records. Optional header filters <code>sbc_id</code> and <code>sbcl_id</code> (each must exist). Sorted by client, location and contract name unless you send <code>orderby</code>.</p>\n<p><strong>Service:</strong> <code>fetchLocationContracts</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name,sbcl_name,sbclc_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>contract fields</code></td>\n<td></td>\n<td>sbclc_id, sbcl_id, sbclc_name, sbclc_vname, sbclc_desc, sbs_id, sbdi_id, sbete_id, sbclc_director_syu_id, sbclc_manager_syu_id, sbclc_ownership_override, sbclc_default_break_policy*, sbclc_ltd_*_posting_group, sbclc_charge_package_description, sbclc_trd_override, sbcs_id, sbclc_created, sbclc_updated.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_id, sbc_name, sbcl_name, sbs_desc, sbdi_name, sbte_name, sbc_director_name, sbc_manager_name, sbc_owner_name. The director, manager and owner names are the contract's own; owner and team are given only when sbclc_ownership_override is OVERRIDE.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Client exists with Panther Id 'X'</code></li>\n<li><code>No Location exists with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"7180df35-a0d7-40c1-9c4a-b2f891c66166","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationContracts\",\n        \"sbc_id\": 41\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchLocationContracts\",\n        \"sbc_id\": 41,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbclc_id\": 55,\n            \"sbcl_id\": 120,\n            \"sbclc_name\": \"Track Renewals 2026\",\n            \"sbclc_vname\": \"\",\n            \"sbclc_desc\": \"Weekend possessions\",\n            \"sbs_id\": 2,\n            \"sbdi_id\": 0,\n            \"sbclc_director_syu_id\": 0,\n            \"sbclc_manager_syu_id\": 3,\n            \"sbclc_ownership_override\": \"DEFAULT\",\n            \"sbclc_default_break_policy\": \"DEFAULT\",\n            \"sbclc_created\": \"2026-01-12 09:30:00\",\n            \"sbclc_updated\": \"2026-02-02 14:00:00\",\n            \"FKData\": {\n                \"sbc_id\": 41,\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbcl_name\": \"Northgate Depot\",\n                \"sbs_desc\": \"Standard Week\",\n                \"sbdi_name\": null,\n                \"sbte_name\": null,\n                \"sbc_director_name\": null,\n                \"sbc_manager_name\": \"Sam Sample\",\n                \"sbc_owner_name\": null\n            }\n        }\n    ]\n}"}],"_postman_id":"51c9c8c9-f771-4b06-ba63-0248beacb4ab"},{"name":"Fetch Updated Location Contracts","id":"677f29ad-53a2-4d89-ba69-e706e8d47ae1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocationContracts\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns location contracts changed on or after <code>updatesSince</code>, with the same fields as Fetch Location Contracts. Deleted contracts are not reported. Sorted by client, location and contract name unless you send <code>orderby</code>.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedLocationContracts</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime string 'YYYY-MM-DD HH:MM:SS'</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbc_name,sbcl_name,sbclc_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>contract fields</code></td>\n<td></td>\n<td>sbclc_id, sbcl_id, sbclc_name, sbclc_vname, sbclc_desc, sbs_id, sbdi_id, sbete_id, sbclc_director_syu_id, sbclc_manager_syu_id, sbclc_ownership_override, sbclc_default_break_policy*, sbclc_ltd_*_posting_group, sbclc_charge_package_description, sbclc_trd_override, sbcs_id, sbclc_created, sbclc_updated.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_id, sbc_name, sbcl_name, sbs_desc, sbdi_name, sbte_name, sbc_director_name, sbc_manager_name, sbc_owner_name. The director, manager and owner names are the contract's own; owner and team are given only when sbclc_ownership_override is OVERRIDE.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"b106c62a-9ee6-41e0-8b30-f4e9b8d76131","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedLocationContracts\",\n        \"updatesSince\": \"2026-03-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedLocationContracts\",\n        \"updatesSince\": \"2026-03-01 00:00:00\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbclc_id\": 55,\n            \"sbcl_id\": 120,\n            \"sbclc_name\": \"Track Renewals 2026\",\n            \"sbclc_vname\": \"\",\n            \"sbclc_desc\": \"Weekend possessions\",\n            \"sbs_id\": 2,\n            \"sbdi_id\": 0,\n            \"sbclc_director_syu_id\": 0,\n            \"sbclc_manager_syu_id\": 3,\n            \"sbclc_ownership_override\": \"DEFAULT\",\n            \"sbclc_default_break_policy\": \"DEFAULT\",\n            \"sbclc_created\": \"2026-01-12 09:30:00\",\n            \"sbclc_updated\": \"2026-02-02 14:00:00\",\n            \"FKData\": {\n                \"sbc_id\": 41,\n                \"sbc_name\": \"Example Rail Ltd\",\n                \"sbcl_name\": \"Northgate Depot\",\n                \"sbs_desc\": \"Standard Week\",\n                \"sbdi_name\": null,\n                \"sbte_name\": null,\n                \"sbc_director_name\": null,\n                \"sbc_manager_name\": \"Sam Sample\",\n                \"sbc_owner_name\": null\n            }\n        }\n    ]\n}"}],"_postman_id":"677f29ad-53a2-4d89-ba69-e706e8d47ae1"},{"name":"Fetch Location Contract Rates - by Shift Pattern Slot","id":"cd107de4-0a31-46f0-b1b5-bf7bf0b0e65d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationContractRatesByShiftPatternSlot\",\n        \"sbclc_id\": 55,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns location contract rates by shift pattern slot: one row per duty, shift pattern (<code>sbs_id</code>) and slot (<code>sbsp_id</code>), with pay and charge rates for each day of the week and for holidays. Filter with <code>sbc_id</code>, <code>sbcl_id</code> or <code>sbclc_id</code> in the header; if a filter matches nothing, an error is returned instead of an empty list. No default order. <code>includeFKData: on</code> adds the names of linked records.</p>\n<p>Read-only: rates are maintained in your system's screens.</p>\n<p><strong>Service:</strong> <code>fetchLocationContractRatesByShiftPatternSlot</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbclc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbr_id</code></td>\n<td>int</td>\n<td>Rate id.</td>\n</tr>\n<tr>\n<td><code>sbr_rtype</code></td>\n<td>string</td>\n<td>CLIENT, LOCATION or LOCCONT.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbclc_id</code></td>\n<td>int</td>\n<td>Location contract id.</td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Duty id.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>Shift Pattern</td>\n</tr>\n<tr>\n<td><code>sbsp_id</code></td>\n<td>int</td>\n<td>Shift pattern slot.</td>\n</tr>\n<tr>\n<td><code>sbr_payrate_1..7, sbr_payrate_h</code></td>\n<td>decimal string</td>\n<td>Pay rate for each day of your shift week (1 = the first day; see Shift Week Start) and h = holiday rate.</td>\n</tr>\n<tr>\n<td><code>sbr_chgrate_1..7, sbr_chgrate_h</code></td>\n<td>decimal string</td>\n<td>Charge rate, same day layout.</td>\n</tr>\n<tr>\n<td><code>sbr_created, sbr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, sbcl_name, sbclc_name, prd_desc, prd_active, sbs_desc, sbs_active</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Rates found for Client with Panther Id 'X'</code></li>\n<li><code>No Rates found for Location with Panther Id 'X'</code></li>\n<li><code>No Rates found for Location Contract with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"c693230c-bd2b-4cc0-a965-98ccf3a6547c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationContractRatesByShiftPatternSlot\",\n        \"sbclc_id\": 55,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchLocationContractRatesByShiftPatternSlot\",\n        \"sbclc_id\": 55,\n        \"includeFKData\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbr_id\": 310,\n            \"sbr_rtype\": \"LOCCONT\",\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbclc_id\": 55,\n            \"prd_id\": 7,\n            \"sbs_id\": 2,\n            \"sbsp_id\": 1,\n            \"sbr_payrate_1\": \"14.50\",\n            \"sbr_payrate_2\": \"14.50\",\n            \"sbr_payrate_3\": \"14.50\",\n            \"sbr_payrate_4\": \"14.50\",\n            \"sbr_payrate_5\": \"14.50\",\n            \"sbr_payrate_6\": \"14.50\",\n            \"sbr_payrate_7\": \"14.50\",\n            \"sbr_payrate_h\": \"14.50\",\n            \"sbr_chgrate_1\": \"19.75\",\n            \"sbr_chgrate_2\": \"19.75\",\n            \"sbr_chgrate_3\": \"19.75\",\n            \"sbr_chgrate_4\": \"19.75\",\n            \"sbr_chgrate_5\": \"19.75\",\n            \"sbr_chgrate_6\": \"19.75\",\n            \"sbr_chgrate_7\": \"19.75\",\n            \"sbr_chgrate_h\": \"19.75\",\n            \"sbr_created\": \"2026-02-01 09:00:00\",\n            \"sbr_updated\": \"2026-02-01 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"cd107de4-0a31-46f0-b1b5-bf7bf0b0e65d"},{"name":"Fetch Location Contract Rates - by Core Shift","id":"d90ce1ef-df13-4cb3-80f9-190a5e8d709b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationContractRatesByCoreShift\",\n        \"sbclc_id\": 55,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns location contract rates by core shift: one row per duty, pay scheme (<code>prps_id</code>) and core shift (<code>sbsc_id</code>), with pay and charge rates for each day of the week and for holidays. Filter with <code>sbc_id</code>, <code>sbcl_id</code> or <code>sbclc_id</code> in the header; if a filter matches nothing, an error is returned instead of an empty list. No default order. <code>includeFKData: on</code> adds the names of linked records.</p>\n<p>Read-only: rates are maintained in your system's screens.</p>\n<p><strong>Service:</strong> <code>fetchLocationContractRatesByCoreShift</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbclc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbr_id</code></td>\n<td>int</td>\n<td>Rate id.</td>\n</tr>\n<tr>\n<td><code>sbr_rtype</code></td>\n<td>string</td>\n<td>CLIENT, LOCATION or LOCCONT.</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbclc_id</code></td>\n<td>int</td>\n<td>Location contract id.</td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Duty id.</td>\n</tr>\n<tr>\n<td><code>prps_id</code></td>\n<td>int</td>\n<td>Pay Scheme</td>\n</tr>\n<tr>\n<td><code>sbsc_id</code></td>\n<td>int</td>\n<td>Core Shift</td>\n</tr>\n<tr>\n<td><code>sbr_payrate_1..7, sbr_payrate_h</code></td>\n<td>decimal string</td>\n<td>Pay rate for each day of your shift week (1 = the first day; see Shift Week Start) and h = holiday rate.</td>\n</tr>\n<tr>\n<td><code>sbr_chgrate_1..7, sbr_chgrate_h</code></td>\n<td>decimal string</td>\n<td>Charge rate, same day layout.</td>\n</tr>\n<tr>\n<td><code>sbr_created, sbr_updated</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, sbcl_name, sbclc_name, prd_desc, prd_active, prps_name, prps_active, sbsc_title, sbsc_active</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>No Rates found for Client with Panther Id 'X'</code></li>\n<li><code>No Rates found for Location with Panther Id 'X'</code></li>\n<li><code>No Rates found for Location Contract with Panther Id 'X'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"20413cef-4319-40bd-a600-a35ee5246557","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchLocationContractRatesByCoreShift\",\n        \"sbclc_id\": 55,\n        \"includeFKData\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchLocationContractRatesByCoreShift\",\n        \"sbclc_id\": 55,\n        \"includeFKData\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbr_id\": 310,\n            \"sbr_rtype\": \"LOCCONT\",\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbclc_id\": 55,\n            \"prd_id\": 7,\n            \"prps_id\": 3,\n            \"sbsc_id\": 4,\n            \"sbr_payrate_1\": \"14.50\",\n            \"sbr_payrate_2\": \"14.50\",\n            \"sbr_payrate_3\": \"14.50\",\n            \"sbr_payrate_4\": \"14.50\",\n            \"sbr_payrate_5\": \"14.50\",\n            \"sbr_payrate_6\": \"14.50\",\n            \"sbr_payrate_7\": \"14.50\",\n            \"sbr_payrate_h\": \"14.50\",\n            \"sbr_chgrate_1\": \"19.75\",\n            \"sbr_chgrate_2\": \"19.75\",\n            \"sbr_chgrate_3\": \"19.75\",\n            \"sbr_chgrate_4\": \"19.75\",\n            \"sbr_chgrate_5\": \"19.75\",\n            \"sbr_chgrate_6\": \"19.75\",\n            \"sbr_chgrate_7\": \"19.75\",\n            \"sbr_chgrate_h\": \"19.75\",\n            \"sbr_created\": \"2026-02-01 09:00:00\",\n            \"sbr_updated\": \"2026-02-01 09:00:00\"\n        }\n    ]\n}"}],"_postman_id":"d90ce1ef-df13-4cb3-80f9-190a5e8d709b"}],"id":"5ddca85a-848a-4afb-8be2-8b2cdf23424d","_postman_id":"5ddca85a-848a-4afb-8be2-8b2cdf23424d","description":""},{"name":"Client Notes, Calls and Reminders","item":[{"name":"Add Client Note","id":"41823dd1-c729-4af9-b580-d7e4ef5cff71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addClientNote\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"prn_text\": \"Agreed new start times with the site manager.\",\n            \"prn_date\": \"2026-03-04\",\n            \"prn_time\": \"10:30:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more notes to a client's notes panel, recorded as made by the API user. <code>prn_date</code> and <code>prn_time</code> default to the current date and time. Entries are added at client level; they cannot be attached to a location or sub-location.</p>\n<p>All rows are checked before anything is saved; checking stops at the first row with an error. Unknown fields are ignored. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<p><strong>Service:</strong> <code>addClientNote</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client. Must exist.</td>\n</tr>\n<tr>\n<td><code>prn_text</code></td>\n<td>text</td>\n<td>Yes</td>\n<td>Text. Cannot be empty.</td>\n</tr>\n<tr>\n<td><code>prn_date</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td>Date (YYYY-MM-DD). Default: today.</td>\n</tr>\n<tr>\n<td><code>prn_time</code></td>\n<td>time HH:MM:SS</td>\n<td>No</td>\n<td>Time (HH:MM:SS). Default: now.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prn_id</code></td>\n<td>string (numeric)</td>\n<td>New entry id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The sbc_id field is required.</code></li>\n<li><code>The prn_text field is required.</code></li>\n<li><code>Client record with ID X does not exist.</code></li>\n<li><code>The prn_date field must be a valid date.</code></li>\n<li><code>The prn_time field must be a valid time.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"2ac449cd-998f-4060-afc3-633cbece7292","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addClientNote\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"prn_text\": \"Agreed new start times with the site manager.\",\n            \"prn_date\": \"2026-03-04\",\n            \"prn_time\": \"10:30:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addClientNote\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prn_id\": \"9051\"\n        }\n    ]\n}"}],"_postman_id":"41823dd1-c729-4af9-b580-d7e4ef5cff71"},{"name":"Add Client Call","id":"2bb01314-6eb3-4d64-98ea-6ceb9a22582b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addClientCall\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"prn_text\": \"Agreed new start times with the site manager.\",\n            \"prn_date\": \"2026-03-04\",\n            \"prn_time\": \"10:30:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more call log entries to a client's notes panel, recorded as made by the API user. <code>prn_date</code> and <code>prn_time</code> default to the current date and time. Entries are added at client level; they cannot be attached to a location or sub-location.</p>\n<p>All rows are checked before anything is saved; checking stops at the first row with an error. Unknown fields are ignored. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<p><strong>Service:</strong> <code>addClientCall</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client. Must exist.</td>\n</tr>\n<tr>\n<td><code>prn_text</code></td>\n<td>text</td>\n<td>Yes</td>\n<td>Text. Cannot be empty.</td>\n</tr>\n<tr>\n<td><code>prn_date</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td>Date (YYYY-MM-DD). Default: today.</td>\n</tr>\n<tr>\n<td><code>prn_time</code></td>\n<td>time HH:MM:SS</td>\n<td>No</td>\n<td>Time (HH:MM:SS). Default: now.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prn_id</code></td>\n<td>string (numeric)</td>\n<td>New entry id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The sbc_id field is required.</code></li>\n<li><code>The prn_text field is required.</code></li>\n<li><code>Client record with ID X does not exist.</code></li>\n<li><code>The prn_date field must be a valid date.</code></li>\n<li><code>The prn_time field must be a valid time.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"056c8e8c-8d23-4dcc-8255-1bff1ca94028","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addClientCall\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"prn_text\": \"Agreed new start times with the site manager.\",\n            \"prn_date\": \"2026-03-04\",\n            \"prn_time\": \"10:30:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addClientCall\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prn_id\": \"9051\"\n        }\n    ]\n}"}],"_postman_id":"2bb01314-6eb3-4d64-98ea-6ceb9a22582b"},{"name":"Add Client Reminder","id":"eb820ab8-8782-4bce-8697-108a1d8ea634","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addClientReminder\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"prn_text\": \"Agreed new start times with the site manager.\",\n            \"prn_date\": \"2026-03-04\",\n            \"prn_time\": \"10:30:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more reminders to a client's notes panel, recorded as made by the API user. <code>prn_date</code> and <code>prn_time</code> default to the current date and time; for a reminder they are when it is due. Entries are added at client level; they cannot be attached to a location or sub-location.</p>\n<p>All rows are checked before anything is saved; checking stops at the first row with an error. Unknown fields are ignored. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<p><strong>Service:</strong> <code>addClientReminder</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client. Must exist.</td>\n</tr>\n<tr>\n<td><code>prn_text</code></td>\n<td>text</td>\n<td>Yes</td>\n<td>Text. Cannot be empty.</td>\n</tr>\n<tr>\n<td><code>prn_date</code></td>\n<td>date YYYY-MM-DD</td>\n<td>No</td>\n<td>Date (YYYY-MM-DD). Default: today.</td>\n</tr>\n<tr>\n<td><code>prn_time</code></td>\n<td>time HH:MM:SS</td>\n<td>No</td>\n<td>Time (HH:MM:SS). Default: now.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prn_id</code></td>\n<td>string (numeric)</td>\n<td>New entry id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The sbc_id field is required.</code></li>\n<li><code>The prn_text field is required.</code></li>\n<li><code>Client record with ID X does not exist.</code></li>\n<li><code>The prn_date field must be a valid date.</code></li>\n<li><code>The prn_time field must be a valid time.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"901ec4bb-f3e5-4342-a759-e963ba736947","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addClientReminder\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"prn_text\": \"Agreed new start times with the site manager.\",\n            \"prn_date\": \"2026-03-04\",\n            \"prn_time\": \"10:30:00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addClientReminder\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prn_id\": \"9051\"\n        }\n    ]\n}"}],"_postman_id":"eb820ab8-8782-4bce-8697-108a1d8ea634"}],"id":"988c80f4-582e-4e04-ac93-badca3194d6b","_postman_id":"988c80f4-582e-4e04-ac93-badca3194d6b","description":""},{"name":"Contacts","item":[{"name":"Add Contact","id":"6e01a769-10fb-4887-9757-9571d498f385","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addContact\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbau_name\": \"Alex Example\",\n            \"sbau_email\": \"alex.example@example.com\",\n            \"sbau_phone\": \"07700 900123\",\n            \"sbau_position\": \"Site Manager\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more client contacts (the people who book work and authorise timesheets) and links each to its client, and optionally to a location and sub-location. <code>sbau_name</code> is split on spaces into first, middle and last names. New contacts are active and get your default contact status. Keep contacts and their email addresses unique in your own data. Returns <code>sbau_id</code> (a string) for each row.</p>\n<p>All rows are checked before anything is saved; checking stops at the first row with an error. Unknown fields are ignored. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<p><strong>Service:</strong> <code>addContact</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client. Must exist.</td>\n</tr>\n<tr>\n<td><code>sbau_name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Full name; split into first, middle and last names.</td>\n</tr>\n<tr>\n<td><code>sbau_email</code></td>\n<td>email</td>\n<td>Yes</td>\n<td>Must be a valid email address; up to 60 characters.</td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Location; must belong to the client.</td>\n</tr>\n<tr>\n<td><code>sbcsl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Sub-location; must belong to one of the client's locations.</td>\n</tr>\n<tr>\n<td><code>sbau_phone</code></td>\n<td>string</td>\n<td>No</td>\n<td>Must look like a phone number; up to 24 characters.</td>\n</tr>\n<tr>\n<td><code>sbau_position</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbau_title</code></td>\n<td>text</td>\n<td>No</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbau_id</code></td>\n<td>string (numeric)</td>\n<td>New contact id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Default contact status (Contact Statuses settings)</strong>: New contacts get this status, or none if no default is set.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The sbc_id field is required.</code></li>\n<li><code>The sbau_name field is required.</code></li>\n<li><code>The sbau_email field is required.</code></li>\n<li><code>Client record with ID X does not exist.</code></li>\n<li><code>Location with ID X does not exist for the specified client.</code></li>\n<li><code>Sublocation with ID X does not exist for the specified client.</code></li>\n<li><code>The sbau_email field must be a valid email address.</code></li>\n<li><code>The sbau_phone field must be a valid phone number.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"965ec38b-abb8-411f-8ae0-231493ec2e04","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addContact\"\n    },\n    \"body\": [\n        {\n            \"sbc_id\": 41,\n            \"sbcl_id\": 120,\n            \"sbau_name\": \"Alex Example\",\n            \"sbau_email\": \"alex.example@example.com\",\n            \"sbau_phone\": \"07700 900123\",\n            \"sbau_position\": \"Site Manager\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addContact\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbau_id\": \"730\"\n        }\n    ]\n}"}],"_postman_id":"6e01a769-10fb-4887-9757-9571d498f385"},{"name":"Update Contact","id":"624c0ea8-0e09-4569-95ee-b273e16d7d9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateContact\"\n    },\n    \"body\": [\n        {\n            \"sbau_id\": 730,\n            \"sbau_name\": \"Alex Example\",\n            \"sbau_position\": \"Area Manager\",\n            \"sbau_active\": true\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates one or more contacts by <code>sbau_id</code>. Only <code>sbau_position</code>, <code>sbau_title</code>, <code>sbau_email</code>, <code>sbau_phone</code> and <code>sbau_active</code> are changed from the request; other fields, including <code>sbc_id</code> and <code>sbcl_id</code>, are ignored.</p>\n<p>Always send <code>sbau_name</code> as well: the contact's first, middle and last names are set from it on every update. A row with only <code>sbau_name</code> is skipped. Send <code>sbau_active</code> as JSON true or false; changing it also sets the contact status to the first matching active status.</p>\n<p>All rows are checked before anything is saved. Returns an empty body. Validation errors are returned with HTTP status 400 and nothing is saved; a successful request returns HTTP status 200.</p>\n<p><strong>Service:</strong> <code>updateContact</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbau_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Contact to update.</td>\n</tr>\n<tr>\n<td><code>sbau_name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Always send it: the contact's name is set from it.</td>\n</tr>\n<tr>\n<td><code>sbau_email</code></td>\n<td>email</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbau_phone</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbau_position</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbau_title</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbau_active</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>JSON true or false (or 1 or 0).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The sbau_id field is required.</code></li>\n<li><code>Contact record with ID X does not exist.</code></li>\n<li><code>The sbau_email field must be a valid email address.</code></li>\n<li><code>The sbau_phone field must be a valid phone number.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"158b5e80-24f6-4927-9e8f-3ba64a083f35","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateContact\"\n    },\n    \"body\": [\n        {\n            \"sbau_id\": 730,\n            \"sbau_name\": \"Alex Example\",\n            \"sbau_position\": \"Area Manager\",\n            \"sbau_active\": true\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateContact\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"624c0ea8-0e09-4569-95ee-b273e16d7d9f"}],"id":"f57a28d1-b01a-4fa1-a8da-e06df0607a0c","_postman_id":"f57a28d1-b01a-4fa1-a8da-e06df0607a0c","description":""}],"id":"73ffc29f-288e-424e-94e5-8a8acbf735a5","description":"<p>Clients are the organisations you supply. Each client has locations, and a location can have sub-locations, location contracts and links to master routes (location routes). Client contacts, the people who book work and authorise timesheets, belong to a client. Routes and sub-locations appear in your system's screens only when they are switched on (Configuration), but the API services work either way. Some error messages use your system's wording for clients and locations (Terminology Overrides).</p>\n","_postman_id":"73ffc29f-288e-424e-94e5-8a8acbf735a5"},{"name":"Shifts","item":[{"name":"Manage Shifts","item":[{"name":"Add Shift","id":"137504a9-27f1-43b5-8211-b0af4b94fe56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addShift\"\n    },\n    \"body\": [\n        {\n            \"sbt_year\": 2026,\n            \"sbt_week\": 14,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5,\n            \"prd_id\": 7,\n            \"syu_resr_id\": 3,\n            \"syu_cons_id\": 3,\n            \"pre_id\": 101,\n            \"sbt_s_1\": \"0700\",\n            \"sbt_f_1\": \"1900\",\n            \"sbt_b_1\": 30,\n            \"sbt_s_2\": \"2200\",\n            \"sbt_f_2\": \"0600\",\n            \"sbt_bref\": \"BK-1001\",\n            \"ext_id\": \"EXT-SHIFT-1\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds one or more shifts (booking rows) to the Booking Sheet. Each body row becomes one booking row for one week; see the Shifts folder for how years, weeks, days and times work.</p>\n<p>Required: <code>sbt_year</code>, <code>sbt_week</code>, <code>sbc_id</code>, <code>sbcl_id</code>, <code>prd_id</code>, <code>syu_resr_id</code> and <code>syu_cons_id</code>. Any other shift field can be sent; unknown fields are refused and values are checked against the field's type. Linked ids are checked: client, location (must belong to the client), location contract, sub-location, route, activity, duty, agency, employee, users, hotels (<code>sbh_id_0</code> to <code>sbh_id_7</code>), shift pattern, finish sub-location, account manager, authoriser, job reference, group, pay scheme, previous shift and availability. If <code>pre_id</code> is sent without <code>sbag_id</code>, the agency is taken from the employee; if both are sent they must match.</p>\n<p>After each row is added, the shift's total time and its pay and charge rates are worked out from your rate cards. Set actual times with Update Actual Times. All rows are added together: if one row fails, none is added. Returns <code>sbt_id</code> (a string) for each row, and <code>ext_id</code> when you supplied one.</p>\n<p>Some error messages use the wording your system uses for this record type (set in Terminology Overrides on the Configuration screen), so they may differ from the examples below.</p>\n<p><strong>Service:</strong> <code>addShift</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td>Shift year (see Fetch Weeks For Year).</td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td>Week number in the shift year (1 to 52 or 53).</td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client Id.</td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Location Id; must belong to sbc_id.</td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Duty Id.</td>\n</tr>\n<tr>\n<td><code>syu_resr_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Resourcer user id (Fetch Users).</td>\n</tr>\n<tr>\n<td><code>syu_cons_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Consultant user id (Fetch Users).</td>\n</tr>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Employee to book. Omit or 0 for an unfilled shift.</td>\n</tr>\n<tr>\n<td><code>sbag_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Agency. Defaults to the employee's agency when pre_id is given; must match it.</td>\n</tr>\n<tr>\n<td><code>sbclc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Location contract Id.</td>\n</tr>\n<tr>\n<td><code>sbcsl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Sub-location Id.</td>\n</tr>\n<tr>\n<td><code>sba_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Activity Id.</td>\n</tr>\n<tr>\n<td><code>sbrt_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Master route Id.</td>\n</tr>\n<tr>\n<td><code>sbs_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Shift pattern Id.</td>\n</tr>\n<tr>\n<td><code>sbau_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Authoriser Id.</td>\n</tr>\n<tr>\n<td><code>prps_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Pay scheme Id for this shift (otherwise the employee's default applies).</td>\n</tr>\n<tr>\n<td><code>sbt_s_1 .. sbt_s_7</code></td>\n<td>char(4) HHMM</td>\n<td>No</td>\n<td>Planned start per day of the week.</td>\n</tr>\n<tr>\n<td><code>sbt_f_1 .. sbt_f_7</code></td>\n<td>char(4) HHMM</td>\n<td>No</td>\n<td>Planned finish per day. Earlier than start = ends next day.</td>\n</tr>\n<tr>\n<td><code>sbt_b_1 .. sbt_b_7</code></td>\n<td>int (minutes)</td>\n<td>No</td>\n<td>Planned break minutes per day.</td>\n</tr>\n<tr>\n<td><code>sbt_break_flag_1 .. sbt_break_flag_7</code></td>\n<td>enum('off','on')</td>\n<td>No</td>\n<td>Per-day break flag: on or off.</td>\n</tr>\n<tr>\n<td><code>sbt_bref</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Booking reference. Per-day references sbt_bref_1..7 also exist.</td>\n</tr>\n<tr>\n<td><code>sbt_pono / sbt_polino</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>PO number / PO line number.</td>\n</tr>\n<tr>\n<td><code>sbt_jobno, sbt_tcode, sbt_comments</code></td>\n<td>varchar/text</td>\n<td>No</td>\n<td>Job number, timesheet code, comments.</td>\n</tr>\n<tr>\n<td><code>sbt_custom1 .. sbt_custom3</code></td>\n<td>varchar(50)</td>\n<td>No</td>\n<td>Custom shift fields, up to 50 characters each.</td>\n</tr>\n<tr>\n<td><code>sbt_manual_lock</code></td>\n<td>tinyint(1)</td>\n<td>No</td>\n<td>1 = lock the employee and rates on this shift. Not set unless you send it.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td>Your own reference; echoed back in the response.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_id</code></td>\n<td>string (numeric)</td>\n<td>New shift id (a string).</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>string</td>\n<td>Only when supplied.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Shift Week Start (system setting; ask your account manager)</strong>: Which weekday is day 1 of the week (Saturday if not set).</li>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages, for example Candidate for employee.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Year [sbt_year] is required</code></li>\n<li><code>Year [sbt_week] is required</code></li>\n<li><code>Resourcer User Panther Id [syu_resr_id] is required</code></li>\n<li><code>Consultant User Panther Id [syu_cons_id] is required</code></li>\n<li><code>Client Panther Id [sbc_id] is required</code></li>\n<li><code>No Client [sbc_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Location Panther Id [sbcl_id] is required</code></li>\n<li><code>No Location [sbcl_id] exists with Panther Id '&lt;id&gt;' against the Client with Panther Id '&lt;id&gt;;'</code></li>\n<li><code>Specialism Panther Id [prd_id] is required</code></li>\n<li><code>No Specialism [prd_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Candidate [pre_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Agency [sbag_id] with Panther Id '&lt;id&gt;' does not match the Agency with Panther Id '&lt;id&gt;' of the Candidate [pre_id] with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Resourcer [syu_resr_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Consultant [syu_sons_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Shift Pattern [sbs_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbt_yrwk'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"19d10a3e-4399-4371-80e2-44560f7903bf","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addShift\"\n    },\n    \"body\": [\n        {\n            \"sbt_year\": 2026,\n            \"sbt_week\": 14,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5,\n            \"prd_id\": 7,\n            \"syu_resr_id\": 3,\n            \"syu_cons_id\": 3,\n            \"pre_id\": 101,\n            \"sbt_s_1\": \"0700\",\n            \"sbt_f_1\": \"1900\",\n            \"sbt_b_1\": 30,\n            \"sbt_s_2\": \"2200\",\n            \"sbt_f_2\": \"0600\",\n            \"sbt_bref\": \"BK-1001\",\n            \"ext_id\": \"EXT-SHIFT-1\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addShift\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": \"5021\",\n            \"ext_id\": \"EXT-SHIFT-1\"\n        }\n    ]\n}"}],"_postman_id":"137504a9-27f1-43b5-8211-b0af4b94fe56"},{"name":"Update Actual Times","id":"cbc27cf5-14e9-4401-921d-fe5cb6631b6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateActualTimes\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"sbt_as_1\": \"0705\",\n            \"sbt_af_1\": \"1910\",\n            \"sbt_ab_1\": 30\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Sets the actual start, finish and break for one or more days of existing shifts. Send <code>sbt_id</code> and only the actual-time fields; any other field is refused. Completed shifts cannot be changed.</p>\n<p>Actual times use the same day numbering as planned times (see the Shifts folder): <code>sbt_as_n</code> and <code>sbt_af_n</code> are <code>HHMM</code> text and <code>sbt_ab_n</code> is the break in minutes. This service saves the times only: it does not recalculate rates, total time or timesheets. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateActualTimes</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Shift Id.</td>\n</tr>\n<tr>\n<td><code>sbt_as_1 .. sbt_as_7</code></td>\n<td>char(4) HHMM</td>\n<td>No</td>\n<td>Actual start for day n.</td>\n</tr>\n<tr>\n<td><code>sbt_af_1 .. sbt_af_7</code></td>\n<td>char(4) HHMM</td>\n<td>No</td>\n<td>Actual finish for day n.</td>\n</tr>\n<tr>\n<td><code>sbt_ab_1 .. sbt_ab_7</code></td>\n<td>int (minutes)</td>\n<td>No</td>\n<td>Actual break minutes for day n.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Shift Week Start (system setting; ask your account manager)</strong>: Which weekday is day 1 of the week (Saturday if not set).</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Shift's Panther Id [sbc_id] is required</code></li>\n<li><code>No Shift exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Shift with Panther Id '&lt;id&gt;' cannot be updated since it has been set to 'complete'</code></li>\n<li><code>Illegal action: It is not possible to update the field '&lt;field&gt;' via this service</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbt_week'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"75c09ac8-eee0-415d-9f92-5464501b5b12","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateActualTimes\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"sbt_as_1\": \"0705\",\n            \"sbt_af_1\": \"1910\",\n            \"sbt_ab_1\": 30\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateActualTimes\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"cbc27cf5-14e9-4401-921d-fe5cb6631b6e"},{"name":"Update Shift","id":"05c5e8c8-e7aa-4bb9-853b-a17975ad1652","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateShift\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"pre_id\": 102,\n            \"sbt_s_1\": \"0800\",\n            \"sbt_f_1\": \"1600\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates existing shifts. Send <code>sbt_id</code> and only the fields to change. <code>sbt_year</code>, <code>sbt_week</code> and <code>sbt_yrwk</code> cannot be changed; to move a shift to another week, cancel it and add a new one. Completed shifts cannot be changed.</p>\n<p>Linked ids are checked as for Add Shift, and changing <code>pre_id</code> or <code>sbag_id</code> checks that the agency matches the employee's agency. A shift cannot be given to a different employee while another employee still has a confirmed, approved, batched or exported timesheet on it.</p>\n<p>Unlike Add Shift, this service does not recalculate total time or rates; use Update Out Of Date Shift Rates afterwards if you need the rates refreshed. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateShift</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Shift Id.</td>\n</tr>\n<tr>\n<td><code>(any shift field)</code></td>\n<td>per column</td>\n<td>No</td>\n<td>For example pre_id, sbt_s_n, sbt_f_n, sbt_b_n, sbt_bref, sbt_pono, syu_resr_id, syu_cons_id, sbt_manual_lock. Not sbt_year, sbt_week, sbt_yrwk, *_created or *_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Shift Week Start (system setting; ask your account manager)</strong>: Which weekday is day 1 of the week (Saturday if not set).</li>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages, for example Candidate for employee.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Shift's Panther Id [sbc_id] is required</code></li>\n<li><code>No Shift exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Shift with Panther Id '&lt;id&gt;' cannot be updated since it has been set to 'complete'</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbt_year'</code></li>\n<li><code>No Client [sbc_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Location [sbcl_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Candidate [pre_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Agency [sbag_id] with Panther Id '&lt;id&gt;' does not match the Agency with Panther Id '&lt;id&gt;' of the Candidate [pre_id] with Panther Id '&lt;id&gt;'</code></li>\n<li><code>This booking can't be reallocated because it still has &lt;timesheets&gt; that can't be removed: &lt;day&gt; for &lt;employee&gt; (timesheet &lt;id&gt;, confirmed and approved).</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"02b8a70c-0859-445d-9f1c-07cbf1810d2e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateShift\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"pre_id\": 102,\n            \"sbt_s_1\": \"0800\",\n            \"sbt_f_1\": \"1600\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateShift\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"05c5e8c8-e7aa-4bb9-853b-a17975ad1652"},{"name":"Delete Shift","id":"99369520-61ed-4d25-b7f2-5255ad8f39c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteShift\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Marks one or more shifts as deleted. The shift is kept and can still be fetched with <code>includeDeleted: on</code> (Fetch Shifts) or <code>sbt_deleted: on</code> (Search Shifts Across Weeks). No cancellation is recorded. Completed or already deleted shifts are refused. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteShift</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Shift Id.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Shift's Panther Id [sbt_id] is required</code></li>\n<li><code>No Shift exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Shift with Panther Id '&lt;id&gt;' cannot be updated since it has been set to 'complete'</code></li>\n<li><code>Shift with Panther Id '&lt;id&gt;' cannot be deleted since it has already been set to 'deleted'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"5b56f42e-6c63-4563-9339-4b5baad4135f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteShift\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteShift\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"99369520-61ed-4d25-b7f2-5255ad8f39c4"},{"name":"Cancel Shift","id":"7a746b00-f0a7-4193-83b2-6f9d40891185","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"cancelShift\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"cancelreason\": \"Client Cancelled\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Cancels one or more whole shifts. <code>cancelreason</code> is required and must be one of the allowed values; it is checked but not stored. Each cancelled shift is marked as deleted and as cancelled by the client (<code>sbt_deleted</code> and <code>sbt_cancbyclient</code> = on), whatever reason is sent. No per-day cancellation is recorded, so these cancellations do not appear in Fetch Cancellations or Fetch No Shows and do not send the Shift Cancelled webhook. To record a reason for each day, cancel the shift in the Booking Sheet.</p>\n<p>Completed or deleted shifts are refused, as are shifts with timesheets that are batched or in a closed period. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p>The first allowed value uses your system's word for client, for example 'Client Cancelled'.</p>\n<p><strong>Service:</strong> <code>cancelShift</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Shift Id.</td>\n</tr>\n<tr>\n<td><code>cancelreason</code></td>\n<td>enum</td>\n<td>Yes</td>\n<td>One of: 'Client Cancelled', 'Employee Changed', 'Deleted', 'No Show', 'Voided', 'Competitor', 'Cannot Supply'. Checked but not stored.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Your word for client is used in the first allowed value ('Client Cancelled').</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Shift's Panther Id [sbt_id] is required</code></li>\n<li><code>Cancellation Reason [cancelreason] is required</code></li>\n<li><code>No Shift exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Shift with Panther Id '&lt;id&gt;' cannot be updated since it has been set to 'complete'</code></li>\n<li><code>Shift with Panther Id '&lt;id&gt;' cannot be cancelled since it has been set to 'deleted'</code></li>\n<li><code>Shift with Panther Id '&lt;id&gt;' cannot be cancelled since it has timesheets that are batched or in a closed period</code></li>\n<li><code>'cancelreason' must be in this list: Client Cancelled,Employee Changed,Deleted,No Show,Voided,Competitor,Cannot Supply</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"209e2b27-6d4d-4e44-989e-49ad5238876b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"cancelShift\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"cancelreason\": \"Client Cancelled\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"cancelShift\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"7a746b00-f0a7-4193-83b2-6f9d40891185"},{"name":"Update Out Of Date Shift Rates","id":"a69c145f-a6a0-4b46-a517-50cc2affb2b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateOutOfDateShiftRates\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Recalculates the pay and charge rates of shifts in one week from your current rate cards, for example after rate cards have changed. Only shifts that meet all of these are updated:</p>\n<ul>\n<li>in the given <code>sbt_year</code> and <code>sbt_week</code> (and, if sent, the given <code>sbt_id</code>);</li>\n<li>not deleted, and filled with an employee;</li>\n<li>with no timesheet in a closed or batched pay period (timesheets in the open period, or paused in the void period, are fine);</li>\n<li>whose current rates were last set by the system or by an API user.</li>\n</ul>\n<p>Rates that were edited by hand by other users are left alone. Shifts are updated one by one. Returns one row per shift updated; if no shift qualifies, an error is returned.</p>\n<p><strong>Service:</strong> <code>updateOutOfDateShiftRates</code></p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Shift year.</td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Week number.</td>\n</tr>\n<tr>\n<td><code>sbt_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Limit to one shift.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_id</code></td>\n<td>int</td>\n<td>Shift whose rates were recalculated.</td>\n</tr>\n<tr>\n<td><code>msg</code></td>\n<td>string</td>\n<td>Always 'Task rates updated'.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>sbt_year and sbt_week must be set.</code></li>\n<li><code>Could not find any tasks.</code></li>\n<li><code>Problem retrieving tasks.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"1f95120d-8853-4ca8-834d-87984ea4bc47","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateOutOfDateShiftRates\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateOutOfDateShiftRates\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"msg\": \"Task rates updated\"\n        },\n        {\n            \"sbt_id\": 5022,\n            \"msg\": \"Task rates updated\"\n        }\n    ]\n}"}],"_postman_id":"a69c145f-a6a0-4b46-a517-50cc2affb2b8"}],"id":"b9ff7001-38f7-44b7-aea0-4f83ba66bdde","_postman_id":"b9ff7001-38f7-44b7-aea0-4f83ba66bdde","description":""},{"name":"Shift Details","item":[{"name":"Fetch Shifts","id":"8bc009e7-deda-4b5a-8a89-b215765c2046","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchShifts\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"maxrows\": 50,\n        \"offset\": 0\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns shifts for one week, for the current week, or a single shift.</p>\n<p>Choose one way to select shifts: <code>sbt_year</code> and <code>sbt_week</code>, <code>currentweek: on</code>, <code>sbt_id</code> or <code>ext_id</code>. To page through all shifts instead, send <code>maxrows</code> (and <code>offset</code>). Deleted shifts are left out unless you send <code>includeDeleted: on</code>. Earlier versions of a shift are never returned.</p>\n<p><code>datalevel: terse</code> gives the key fields and planned times (no actual times or breaks); <code>verbose</code> gives every shift field plus <code>shift_start_date</code> and <code>shift_end_date</code> (the dates of the first and last timesheet). Every row has a <code>cancellations</code> array (per-day cancellations). Optional extras: <code>includeShiftCredits</code> (credits; also adds shifts from other weeks credited in this pay period), <code>includecustomfields</code>, <code>includetimepoints</code>, <code>includerates</code> (pay and charge rates per day; credited days are negative when combined with includeShiftCredits) and <code>includeExpenses</code> (timesheet expenses).</p>\n<p>See the Shifts folder for how years, weeks, days and times work. Times shorter than four characters are padded with leading zeros in the response.</p>\n<p><strong>Service:</strong> <code>fetchShifts</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>With sbt_week. Not with currentweek, sbt_id or ext_id.</td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>With sbt_year.</td>\n</tr>\n<tr>\n<td><code>currentweek</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>on = your system's current week.</td>\n</tr>\n<tr>\n<td><code>sbt_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Single shift; error if not found. Not with sbcl_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Shift's external reference.</td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Filter by location.</td>\n</tr>\n<tr>\n<td><code>includeDeleted</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>resourcedOnly</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>on = only shifts with an employee.</td>\n</tr>\n<tr>\n<td><code>includeShiftCredits</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds a credits array.</td>\n</tr>\n<tr>\n<td><code>includecustomfields</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds customfields [{sbte_label, sbte_value}].</td>\n</tr>\n<tr>\n<td><code>includetimepoints</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds timepoints per day.</td>\n</tr>\n<tr>\n<td><code>includerates</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds rates (per-day pay and charge breakdown). Can be slow for many shifts.</td>\n</tr>\n<tr>\n<td><code>includeExpenses</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds expenses (timesheet expenses of the shift).</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbt_yrwk,sbc_name,sbcl_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>terse fields</code></td>\n<td></td>\n<td>sbt_id, sbt_year, sbt_week, sbt_updated, sbag_id, sbc_id, sbcl_id, sbclc_id, sbcsl_id, sbs_id, sbt_accepted, sbt_confirmed, sbt_deleted, sbt_cancbyclient, sbt_completed, prd_id, pre_id, sbt_fatigue_high, sbt_risk_high, sbt_bref, sbt_s_1..7, sbt_f_1..7, sbt_f_8, sbau_id, ext_id.</td>\n</tr>\n<tr>\n<td><code>verbose fields</code></td>\n<td></td>\n<td>All shift fields (for example sbt_yrwk, sba_id, sbrt_id, syu_resr_id, syu_cons_id, syu_accmgr_id, sbt_as_n, sbt_af_n, sbt_ab_n, sbt_b_n, sbt_break_flag_n, sbt_bref_n, sbt_pono, sbt_polino, sbt_jobno, sbt_tcode, sbt_invno, sbt_comments, sbt_manual_lock, prps_id, sbt_fatigue_high_actuals, sbt_risk_high_actuals, sbt_custom1..3, sbt_group_number) plus shift_start_date and shift_end_date.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>With includeFKData on: sbag_name, sba_name, sbc_name, sbcl_name, sbclc_name, sbcsl_name, sbs_desc, prd_name, pre_name, pre_empno (the employee number for the shift's pay scheme, or the override number where one is set), pre_phone, sbau_name.</td>\n</tr>\n<tr>\n<td><code>recurring_shift, recurring_shift_identifier, first_recurring_shift_date, last_recurring_shift_date</code></td>\n<td></td>\n<td>Only when Recurring Shifts is on.</td>\n</tr>\n<tr>\n<td><code>cancellations</code></td>\n<td>array</td>\n<td>[{day, info:{sbsca_reason, sbcr_label, sbcr_id, sbsca_cancelled_on, sbsca_cancelled_by, sbt_s, sbt_f, sbt_bref, replacement_sbt_id}}].</td>\n</tr>\n<tr>\n<td><code>credits</code></td>\n<td>array</td>\n<td>includeShiftCredits: [{sbt_id, timesheet_id, shift_day, shift_date}].</td>\n</tr>\n<tr>\n<td><code>timepoints</code></td>\n<td>array</td>\n<td>[{day, info:{sbtpo_seq, sbtpo_label, sbtpo_id, sbttp_time, sbttp_timepoint_date, sbttp_timepoint_yrwk, actual_sbttp_time, actual_sbttp_timepoint_date, actual_sbttp_timepoint_yrwk}}].</td>\n</tr>\n<tr>\n<td><code>rates</code></td>\n<td>object</td>\n<td>Keyed day_1 to day_7; each entry has payrate, payrate_with_adjustment, payadjamt, chgrate, payamt, costs, chgamt, profit, gpmargin, additions and more.</td>\n</tr>\n<tr>\n<td><code>expenses</code></td>\n<td>array</td>\n<td>Timesheet expenses of the shift, with prex_label and prex_desc.</td>\n</tr>\n<tr>\n<td><code>include_credited_rates</code></td>\n<td>int</td>\n<td>1 when includeShiftCredits and includerates are both on.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Recurring Shifts (system setting; ask your account manager)</strong>: When on, rows include the recurring_shift fields.</li>\n<li><strong>Shift Week Start (system setting; ask your account manager)</strong>: Which weekday is day 1 of the week (Saturday if not set).</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>sbt_year/sbt_week and currentweek(on) are mutually exclusive</code></li>\n<li><code>sbt_year/sbt_week and sbt_id are mutually exclusive</code></li>\n<li><code>sbt_year/sbt_week and ext_id are mutually exclusive</code></li>\n<li><code>sbt_id and ext_id are mutually exclusive</code></li>\n<li><code>sbt_id and sbcl_id are mutually exclusive</code></li>\n<li><code>sbt_year/sbt_week must be supplied together</code></li>\n<li><code>sbt_year/sbt_week, currentweek(on), sbt_id or ext_id must be supplied, or maxrows to page through all shifts</code></li>\n<li><code>'includeDeleted' must be 'on' or 'off'</code></li>\n<li><code>'resourcedOnly' must be 'on' or 'off'</code></li>\n<li><code>'includeShiftCredits' must be 'on' or 'off'</code></li>\n<li><code>Shift with Panther Id '&lt;id&gt;' not found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"bca9329f-5b79-466d-b9d5-d52c4b724705","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchShifts\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"maxrows\": 50,\n        \"offset\": 0\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchShifts\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"maxrows\": 50,\n        \"offset\": 0,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"sbt_year\": 2026,\n            \"sbt_week\": 14,\n            \"sbt_updated\": \"2026-04-01 09:15:00\",\n            \"sbag_id\": 2,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5,\n            \"sbcsl_id\": 0,\n            \"sbs_id\": 0,\n            \"sbt_accepted\": \"on\",\n            \"sbt_confirmed\": \"off\",\n            \"sbt_deleted\": \"off\",\n            \"sbt_cancbyclient\": \"off\",\n            \"sbt_completed\": \"off\",\n            \"prd_id\": 7,\n            \"pre_id\": 101,\n            \"sbt_fatigue_high\": \"12.5\",\n            \"sbt_risk_high\": \"1.10\",\n            \"sbt_bref\": \"BK-1001\",\n            \"sbt_s_1\": \"0700\",\n            \"sbt_f_1\": \"1900\",\n            \"sbt_s_2\": \"\",\n            \"sbt_f_2\": \"\",\n            \"sbt_s_3\": \"\",\n            \"sbt_f_3\": \"\",\n            \"sbt_s_4\": \"\",\n            \"sbt_f_4\": \"\",\n            \"sbt_s_5\": \"\",\n            \"sbt_f_5\": \"\",\n            \"sbt_s_6\": \"\",\n            \"sbt_f_6\": \"\",\n            \"sbt_s_7\": \"\",\n            \"sbt_f_7\": \"\",\n            \"sbt_f_8\": \"\",\n            \"sbau_id\": 0,\n            \"ext_id\": \"EXT-SHIFT-1\",\n            \"FKData\": {\n                \"sbag_name\": \"Example Agency\",\n                \"sba_name\": null,\n                \"sbc_name\": \"Example Client Ltd\",\n                \"sbcl_name\": \"North Depot\",\n                \"sbclc_name\": \"Main Contract\",\n                \"sbcsl_name\": null,\n                \"sbs_desc\": null,\n                \"prd_name\": \"Site Operative\",\n                \"pre_name\": \"Alex Example\",\n                \"pre_empno\": \"E1001\",\n                \"pre_phone\": \"07700 900123\",\n                \"sbau_name\": null\n            },\n            \"cancellations\": []\n        }\n    ]\n}"}],"_postman_id":"8bc009e7-deda-4b5a-8a89-b215765c2046"},{"name":"Fetch Updated Shifts","id":"0c3959cd-b679-461a-9c66-95c32e09785c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedShifts\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"off\",\n        \"updatesSince\": \"2026-04-01 00:00:00\",\n        \"maxrows\": 100,\n        \"offset\": 0\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns shifts that have changed since <code>updatesSince</code>. A shift counts as changed if it was added or updated, one of its timesheets was updated, its rates were updated, a cancellation was recorded on it, or a credit, sales credit or sales invoice adjustment on one of its timesheets was updated (and, with <code>includeExpenses: on</code>, a timesheet expense was added or updated). Deleted shifts are left out unless you send <code>includeDeleted: on</code>; to see deletions, fetch with <code>includeDeleted: on</code> and check <code>sbt_deleted</code>.</p>\n<p>Same row format and optional extras as Fetch Shifts.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedShifts</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime 'YYYY-MM-DD HH:MM:SS'</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>includeDeleted</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>includeShiftCredits</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>includecustomfields</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>includetimepoints</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>includerates</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>includeExpenses</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds expenses, and also counts expense changes as changes.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbt_yrwk,sbc_name,sbcl_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Fetch Shifts)</code></td>\n<td></td>\n<td>Same fields, FKData and extras as Fetch Shifts.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Recurring Shifts (system setting; ask your account manager)</strong>: When on, rows include the recurring_shift fields.</li>\n<li><strong>Shift Week Start (system setting; ask your account manager)</strong>: Which weekday is day 1 of the week (Saturday if not set).</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n<li><code>'includeDeleted' must be 'on' or 'off'</code></li>\n<li><code>'includeShiftCredits' must be 'on' or 'off'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"93cd761c-e856-4080-a283-51e4eb880a03","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedShifts\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"off\",\n        \"updatesSince\": \"2026-04-01 00:00:00\",\n        \"maxrows\": 100,\n        \"offset\": 0\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedShifts\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"off\",\n        \"updatesSince\": \"2026-04-01 00:00:00\",\n        \"maxrows\": 100,\n        \"offset\": 0,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"sbt_year\": 2026,\n            \"sbt_week\": 14,\n            \"sbt_updated\": \"2026-04-02 10:30:00\",\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"pre_id\": 101,\n            \"sbt_deleted\": \"off\",\n            \"sbt_s_1\": \"0700\",\n            \"sbt_f_1\": \"1900\",\n            \"ext_id\": \"EXT-SHIFT-1\",\n            \"cancellations\": []\n        }\n    ]\n}"}],"_postman_id":"0c3959cd-b679-461a-9c66-95c32e09785c"},{"name":"Fetch Timesheets","id":"c33ae090-0699-415c-a8ee-2c1808d62427","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchTimesheets\",\n        \"datalevel\": \"verbose\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"includeExpenses\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns timesheets for one week (<code>sbt_year</code>, <code>sbt_week</code>). A timesheet is one worked day of a shift: <code>sbti_day</code> is the day number (1 to 7, as for <code>sbt_s_n</code>) and <code>sbti_date</code> the calendar date. Timesheets of deleted shifts are not returned.</p>\n<p>Terse gives the key ids (plus <code>timesheet_rate_day</code> and <code>timesheet_ref</code>). Verbose gives every timesheet field plus the shift's <code>sbr_rtype</code>, <code>sbr_per</code> and <code>sba_id</code>, the planned <code>sbt_s</code>, <code>sbt_f</code> and <code>sbt_hours</code> for that day, and an <code>additional</code> object (<code>sbti_status</code>, <code>core_shift_label</code>, <code>shift_pattern_code</code>). <code>includeapprovalhistory</code> and <code>includerates</code> only work with verbose; <code>includeExpenses</code> works with either.</p>\n<p><strong>Service:</strong> <code>fetchTimesheets</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>includeapprovalhistory</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Verbose only.</td>\n</tr>\n<tr>\n<td><code>includerates</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Verbose only.</td>\n</tr>\n<tr>\n<td><code>includeExpenses</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbt_year,sbt_week,sbc_name,sbcl_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>terse</code></td>\n<td></td>\n<td>timesheet_rate_day, sbti_id, sbt_year, sbt_week, sbt_id, sbc_id, sbcl_id, sbcsl_id, prd_id, pre_id, timesheet_ref.</td>\n</tr>\n<tr>\n<td><code>verbose</code></td>\n<td></td>\n<td>All timesheet fields (for example sbti_day, sbti_date, sbti_start_time, sbti_end_time, sbti_start_date, sbti_end_date, sbti_break_start_time, sbti_break_mins, sbti_hours_worked, sbti_approved, sbti_rejected, sbti_declaration_confirmed, sbti_paused, sbti_gpperiod, sbtb_id, sbta_id, sbti_plus24hr_planned, sbti_plus24hr_actual, sbti_proof_of_work_*) plus sbr_rtype, sbr_per, sba_id, sbt_s, sbt_f, sbt_hours, additional and timesheet_ref.</td>\n</tr>\n<tr>\n<td><code>additional.sbti_status</code></td>\n<td>string</td>\n<td>Not In Use, Pending, Approved, Approved by Client or Rejected.</td>\n</tr>\n<tr>\n<td><code>additional.shift_pattern_code</code></td>\n<td>string</td>\n<td>BH (bank holiday), WE (weekend) or MW (midweek), with an N suffix for night shifts.</td>\n</tr>\n<tr>\n<td><code>approvalhistory</code></td>\n<td>array</td>\n<td>sbta_id, sbta_approver_name, sbta_declaration_confirmed, sbta_approved_time, sbta_approver_position, sbta_approval_method, sbsah_created, sbti_start_time, sbti_end_time, sbti_break_start_time, sbti_break_mins, sbti_break_entered_mins, sbti_break_flag, sbti_hours_worked.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, sbcl_name, sbcsl_name, prd_name, pre_name, approver_name, declaration_confirmed, approved_time, approver_position, approval_method, sba_name.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>sbt_year/sbt_week must be supplied</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"d6c48c81-ecc7-492d-8438-3686739bb949","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchTimesheets\",\n        \"datalevel\": \"verbose\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"includeExpenses\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchTimesheets\",\n        \"datalevel\": \"verbose\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"includeExpenses\": \"on\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"timesheet_rate_day\": 1,\n            \"sbti_id\": 9001,\n            \"sbt_id\": 5021,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbcsl_id\": 0,\n            \"sbt_year\": 2026,\n            \"sbt_week\": 14,\n            \"sbti_day\": 1,\n            \"sbti_date\": \"2026-03-28\",\n            \"pre_id\": 101,\n            \"prd_id\": 7,\n            \"sbti_start_time\": \"0705\",\n            \"sbti_end_time\": \"1910\",\n            \"sbti_break_start_time\": \"1200\",\n            \"sbti_break_mins\": 30,\n            \"sbti_hours_worked\": 11.58,\n            \"sbti_approved\": \"yes\",\n            \"sbtb_id\": 0,\n            \"sbr_rtype\": \"H\",\n            \"sbr_per\": \"\",\n            \"sba_id\": 0,\n            \"sbt_s\": \"0700\",\n            \"sbt_f\": \"1900\",\n            \"sbt_hours\": 11.5,\n            \"FKData\": {\n                \"sbc_name\": \"Example Client Ltd\",\n                \"sbcl_name\": \"North Depot\",\n                \"sbcsl_name\": null,\n                \"prd_name\": \"Site Operative\",\n                \"pre_name\": \"Alex Example\",\n                \"approver_name\": \"Sam Sample\",\n                \"declaration_confirmed\": \"yes\",\n                \"approved_time\": \"2026-03-30 08:00:00\",\n                \"approver_position\": \"Supervisor\",\n                \"approval_method\": \"Contract Client\",\n                \"sba_name\": null\n            },\n            \"additional\": {\n                \"sbti_status\": \"Approved by Client\",\n                \"core_shift_label\": \"Day\",\n                \"shift_pattern_code\": \"WE\"\n            },\n            \"timesheet_ref\": \"TS-9001\",\n            \"expenses\": []\n        }\n    ]\n}"}],"_postman_id":"c33ae090-0699-415c-a8ee-2c1808d62427"},{"name":"Fetch Updated Timesheets","id":"59e5a027-e26c-481c-9236-12212d0a80fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedTimesheets\",\n        \"datalevel\": \"terse\",\n        \"updatesSince\": \"2026-04-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns timesheets updated since <code>updatesSince</code> (and, with <code>includeExpenses: on</code>, timesheets whose expenses were added or updated since then). Same row format and options as Fetch Timesheets. An <code>orderby</code> of <code>sbt_yrwk</code> sorts by the shift's year and week.</p>\n<p><strong>Service:</strong> <code>fetchUpdatedTimesheets</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>updatesSince</code></td>\n<td>datetime 'YYYY-MM-DD HH:MM:SS'</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Date and time as 'YYYY-MM-DD HH:MM:SS'. Records changed on or after this time are returned.</td>\n</tr>\n<tr>\n<td><code>includeapprovalhistory</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Verbose only.</td>\n</tr>\n<tr>\n<td><code>includerates</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Verbose only.</td>\n</tr>\n<tr>\n<td><code>includeExpenses</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Fetch Timesheets)</code></td>\n<td></td>\n<td>Same fields as Fetch Timesheets.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>'updatesSince' is missing</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"b6a6bdc4-5b90-48c6-a95e-c78f26671475","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchUpdatedTimesheets\",\n        \"datalevel\": \"terse\",\n        \"updatesSince\": \"2026-04-01 00:00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchUpdatedTimesheets\",\n        \"datalevel\": \"terse\",\n        \"updatesSince\": \"2026-04-01 00:00:00\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"timesheet_rate_day\": 1,\n            \"sbti_id\": 9001,\n            \"sbt_year\": 2026,\n            \"sbt_week\": 14,\n            \"sbt_id\": 5021,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbcsl_id\": 0,\n            \"prd_id\": 7,\n            \"pre_id\": 101,\n            \"timesheet_ref\": \"TS-9001\"\n        }\n    ]\n}"}],"_postman_id":"59e5a027-e26c-481c-9236-12212d0a80fc"},{"name":"Fetch Timesheet Batches","id":"2047aa38-044f-4897-b59d-486cbd8fedf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchTimesheetBatches\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"numRecentBatches\": 2,\n        \"includeTimesheets\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns timesheet batches: either the most recent N batches (<code>numRecentBatches</code>) or one batch (<code>sbtb_id</code>). By default each batch includes its timesheets, in the same format as Fetch Timesheets (<code>includeapprovalhistory</code> and <code>includerates</code> apply to them in verbose mode).</p>\n<p>Not paginated: don't send <code>orderby</code>, <code>offset</code> or <code>maxrows</code>.</p>\n<p><strong>Service:</strong> <code>fetchTimesheetBatches</code></p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>numRecentBatches</code></td>\n<td>JSON integer</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Number of recent batches, as a JSON number (not a string). Either this or sbtb_id.</td>\n</tr>\n<tr>\n<td><code>sbtb_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Either this or numRecentBatches.</td>\n</tr>\n<tr>\n<td><code>includeTimesheets</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>on</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>includeapprovalhistory</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>For nested timesheets, verbose only.</td>\n</tr>\n<tr>\n<td><code>includerates</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>For nested timesheets, verbose only.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>batch fields</code></td>\n<td></td>\n<td>sbtb_id, sbt_year, sbt_week, sbtb_batchno, sbtb_import_status, sbtb_desc, sbtb_updated, sbtb_updated_syu_id and closed-period fields.</td>\n</tr>\n<tr>\n<td><code>FKData.sbtb_updated_syu_fullname</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>timesheets</code></td>\n<td>array</td>\n<td>When includeTimesheets is on (the default).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Either 'numRecentBatches' or 'sbtb_id' must be supplied</code></li>\n<li><code>'numRecentBatches' must contain an integer value greater than zero</code></li>\n<li><code>'includeTimesheets' must be 'on' or 'off'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"e5061829-0004-444a-a653-b95e85be0454","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchTimesheetBatches\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"numRecentBatches\": 2,\n        \"includeTimesheets\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchTimesheetBatches\",\n        \"datalevel\": \"terse\",\n        \"includeFKData\": \"on\",\n        \"numRecentBatches\": 2,\n        \"includeTimesheets\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbtb_id\": 41,\n            \"sbt_year\": 2026,\n            \"sbt_week\": 13,\n            \"sbtb_batchno\": 1,\n            \"sbtb_import_status\": \"Not Imported\",\n            \"sbtb_desc\": \"\",\n            \"sbtb_updated\": \"2026-03-27 16:00:00\",\n            \"sbtb_updated_syu_id\": 3,\n            \"FKData\": {\n                \"sbtb_updated_syu_fullname\": \"Sam Sample\"\n            }\n        }\n    ]\n}"}],"_postman_id":"2047aa38-044f-4897-b59d-486cbd8fedf0"},{"name":"Set Timesheet Batch Import Status","id":"6327a4d8-cb57-4856-a586-121e59b3a25e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"setTimesheetBatchImportStatus\"\n    },\n    \"body\": [\n        {\n            \"sbtb_id\": 41,\n            \"sbtb_import_status\": \"Import Successful\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Records whether your payroll or other software has imported a timesheet batch, by setting <code>sbtb_import_status</code> on one or more batches. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>setTimesheetBatchImportStatus</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbtb_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Batch Id.</td>\n</tr>\n<tr>\n<td><code>sbtb_import_status</code></td>\n<td>enum</td>\n<td>Yes</td>\n<td>'Import Successful' or 'Not Imported'.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Timesheet Batch's Panther Id [sbtb_id] is required</code></li>\n<li><code>Timesheet Batch's Import Status [sbtb_import_status] is required</code></li>\n<li><code>Timesheet Batch Status [sbtb_import_status] must be in this list: Import Successful,Not Imported</code></li>\n<li><code>No Timesheet Batch exists with Panther Id '&lt;id&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"d3c7e4ea-b445-414f-a21f-01100d2722de","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"setTimesheetBatchImportStatus\"\n    },\n    \"body\": [\n        {\n            \"sbtb_id\": 41,\n            \"sbtb_import_status\": \"Import Successful\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"setTimesheetBatchImportStatus\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"6327a4d8-cb57-4856-a586-121e59b3a25e"},{"name":"Search Shifts Across Weeks","id":"7cfd5ba0-1bd7-47b4-a20d-6a02af03841e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"searchShiftsAcrossWeeks\",\n        \"datalevel\": \"terse\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"numweeksback\": 3,\n        \"sbc_id\": 12,\n        \"sbt_pono\": \"PO-77%\",\n        \"sbt_deleted\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Searches shifts over a range of weeks ending at <code>sbt_year</code>/<code>sbt_week</code> and going back <code>numweeksback</code> weeks (0 = just that week; 3 = four weeks). All filters must match. Filters marked as partial match accept <code>%</code> as a wildcard. Unlike Fetch Shifts, deleted shifts are included unless you send <code>sbt_deleted: off</code>. Rows have the same format as Fetch Shifts (with <code>cancellations</code>; optional <code>includecustomfields</code>, <code>includetimepoints</code> and <code>includerates</code>).</p>\n<p>There is no account manager filter (<code>syu_accmgr_id</code>): filter the results yourself.</p>\n<p><strong>Service:</strong> <code>searchShiftsAcrossWeeks</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Ending year.</td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td>Ending week.</td>\n</tr>\n<tr>\n<td><code>numweeksback</code></td>\n<td>int</td>\n<td>No</td>\n<td><code>0</code></td>\n<td></td>\n<td>Number of earlier weeks to include (0 = just the given week).</td>\n</tr>\n<tr>\n<td><code>sbag_id, sbc_id, sbcl_id, sbclc_id, sbcsl_id, sbma_id, sbas_id, sba_id, prd_id, syu_resr_id, syu_cons_id, sbs_id, pre_id, sbau_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Exact-match filters.</td>\n</tr>\n<tr>\n<td><code>sbt_autobooked</code></td>\n<td>enum</td>\n<td>No</td>\n<td></td>\n<td><code>yes</code>, <code>no</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_accepted, sbt_confirmed, sbt_deleted, sbt_completed, sbt_cancbyclient</code></td>\n<td>enum</td>\n<td>No</td>\n<td></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_pono, sbt_bref, sbt_tcode, sbt_invno, sbt_jobno</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Partial match; use % as a wildcard.</td>\n</tr>\n<tr>\n<td><code>sbt_polino</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Requires sbt_pono.</td>\n</tr>\n<tr>\n<td><code>includecustomfields, includetimepoints, includerates</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>sbt_yrwk,sbc_name,sbcl_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Fetch Shifts)</code></td>\n<td></td>\n<td>Same fields as Fetch Shifts.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>sbt_year/sbt_week must be supplied</code></li>\n<li><code>sbt_pono must be supplied if you want to search for sbt_polino</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"d05eae6b-e91b-48f4-8fde-386b5f8bc660","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"searchShiftsAcrossWeeks\",\n        \"datalevel\": \"terse\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"numweeksback\": 3,\n        \"sbc_id\": 12,\n        \"sbt_pono\": \"PO-77%\",\n        \"sbt_deleted\": \"off\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"searchShiftsAcrossWeeks\",\n        \"datalevel\": \"terse\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"numweeksback\": 3,\n        \"sbc_id\": 12,\n        \"sbt_pono\": \"PO-77%\",\n        \"sbt_deleted\": \"off\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"sbt_year\": 2026,\n            \"sbt_week\": 12,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"pre_id\": 101,\n            \"sbt_deleted\": \"off\",\n            \"sbt_s_1\": \"0700\",\n            \"sbt_f_1\": \"1900\",\n            \"ext_id\": \"\",\n            \"cancellations\": []\n        }\n    ]\n}"}],"_postman_id":"7cfd5ba0-1bd7-47b4-a20d-6a02af03841e"}],"id":"aab76b56-8d87-4cf2-b794-ab638750ca85","_postman_id":"aab76b56-8d87-4cf2-b794-ab638750ca85","description":""},{"name":"Shift Miscellaneous","item":[{"name":"Fetch Fatigue Scores","id":"2f4c2888-b1bc-4e05-88b9-24ce9f7e8521","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchFatigueScores\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"hourstype\": \"P\",\n        \"scorestype\": \"All\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns fatigue and risk scores for the filled, non-deleted shifts in a week, with a red, amber or green class from your fatigue and risk limits. Each shift's scores are recalculated and saved before they are returned, so this call can be slow.</p>\n<p><code>scorestype</code> is required: <code>Exceeded</code> returns only shifts where a score reaches amber or red, <code>All</code> returns every shift. <code>hourstype</code>: <code>P</code> = planned scores, <code>B</code> = planned and actual (returns the same scores as P). <code>A</code> (actual) returns no scores; use P or B.</p>\n<p><strong>Service:</strong> <code>fetchFatigueScores</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>hourstype</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>B</code></td>\n<td><code>P</code>, <code>A</code>, <code>B</code></td>\n<td>P or B (A returns no scores).</td>\n</tr>\n<tr>\n<td><code>scorestype</code></td>\n<td>enum</td>\n<td>Yes</td>\n<td></td>\n<td><code>Exceeded</code>, <code>All</code></td>\n<td>All or Exceeded.</td>\n</tr>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>One employee. Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>One employee by the employee's external id. Not with pre_id.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>pre_name,sbt_id</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_id, pre_id, sbc_id, syu_cons_id, sbcl_id, prd_id, prd_id2</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_fatigue_high / sbt_fatigue_high_class</code></td>\n<td>string</td>\n<td>Fatigue score and class: red when it reaches Fatigue Limit 1, amber when it reaches Fatigue Limit 2, otherwise green.</td>\n</tr>\n<tr>\n<td><code>sbt_risk_high / sbt_risk_high_class</code></td>\n<td>string</td>\n<td>Risk score and class, using Risk Limit 1 and Risk Limit 2 in the same way.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>pre_name, pre_empno, pre_level (sponsorship), pre_adaptref, sbc_name, syu_cons_initials, sbcl_name, prd_desc.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Fatigue Limit 1 and Fatigue Limit 2 (system settings; ask your account manager)</strong>: Red and amber thresholds for fatigue scores.</li>\n<li><strong>Risk Limit 1 and Risk Limit 2 (system settings; ask your account manager)</strong>: Red and amber thresholds for risk scores.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>pre_id and ext_id are mutually exclusive</code></li>\n<li><code>sbt_year/sbt_week must be supplied together</code></li>\n<li><code>'hourstype' must be '(P)lanned Scores', '(A)ctual Scores' or (B)oth</code></li>\n<li><code>'scorestype' must be 'All' or 'Exceeded'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"fbe5db53-dbda-45c6-ad82-f54bcbfd91ef","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchFatigueScores\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"hourstype\": \"P\",\n        \"scorestype\": \"All\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchFatigueScores\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"hourstype\": \"P\",\n        \"scorestype\": \"All\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"pre_id\": 101,\n            \"sbc_id\": 12,\n            \"syu_cons_id\": 3,\n            \"sbcl_id\": 34,\n            \"prd_id\": 7,\n            \"prd_id2\": 0,\n            \"sbt_fatigue_high\": \"31.3\",\n            \"sbt_fatigue_high_class\": \"green\",\n            \"sbt_risk_high\": \"1.20\",\n            \"sbt_risk_high_class\": \"green\",\n            \"FKData\": {\n                \"pre_name\": \"Alex Example\",\n                \"pre_empno\": \"E1001\",\n                \"pre_level\": \"Primary\",\n                \"pre_adaptref\": \"\",\n                \"sbc_name\": \"Example Client Ltd\",\n                \"syu_cons_initials\": \"SS\",\n                \"sbcl_name\": \"North Depot\",\n                \"prd_desc\": \"Site Operative\"\n            }\n        }\n    ]\n}"}],"_postman_id":"2f4c2888-b1bc-4e05-88b9-24ce9f7e8521"},{"name":"Fetch Hours Worked","id":"b6ea6e8f-f0f7-4ee8-8902-7b1f5533b1e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchHoursWorked\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"hourstype\": \"A\",\n        \"shifttype\": \"Completed\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns hours worked in a week: one row per filled, non-deleted shift (not one per employee), with start and end times and work, travel and total hours for each day. <code>hourstype</code> A uses actual times where present; P uses planned times. <code>pre_empno</code> in FKData is the employee number for the shift's pay scheme (the override number where one is set).</p>\n<p><strong>Service:</strong> <code>fetchHoursWorked</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>hourstype</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>P</code></td>\n<td><code>P</code>, <code>A</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>pre_level</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>B</code></td>\n<td><code>P</code>, <code>S</code>, <code>B</code>, <code>N</code></td>\n<td>Primary, Secondary, Both or Not sponsored. Only applied when Show Sponsorship is on.</td>\n</tr>\n<tr>\n<td><code>shifttype</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>All</code></td>\n<td><code>All</code>, <code>Completed</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_id, sbcl_id, syu_resr_id, syu_cons_id, prd_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>0 = no filter.</td>\n</tr>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>The employee's external id.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>pre_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_id, pre_id, ext_id, sbc_id, sbcl_id, syu_resr_id, syu_cons_id, prd_id, sbt_completed</code></td>\n<td></td>\n<td>ext_id is the shift's external id.</td>\n</tr>\n<tr>\n<td><code>totalshiftsworked, hoursworked, resourcers</code></td>\n<td></td>\n<td>hoursworked in decimal hours.</td>\n</tr>\n<tr>\n<td><code>starttime1..7, endtime1..7</code></td>\n<td>number</td>\n<td>HHMM as a number (so 0705 is 705); null on days not worked.</td>\n</tr>\n<tr>\n<td><code>empdaywork1..7, empdaytrav1..7, empdaytotal1..7</code></td>\n<td>string</td>\n<td>Decimal hours.</td>\n</tr>\n<tr>\n<td><code>sbt_comments</code></td>\n<td></td>\n<td>Always null.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Show Sponsorship (Configuration)</strong>: The pre_level filter is only applied when this is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>pre_id and ext_id are mutually exclusive</code></li>\n<li><code>sbt_year/sbt_week must be supplied together</code></li>\n<li><code>'hourstype' must be '(P)lanned Hours' or '(A)ctual Hours'</code></li>\n<li><code>'pre_level' must be '(P)rimary', '(S)econdary, '(B)oth or '(N)on-Sentinel'</code></li>\n<li><code>'shifttype' must be 'All' or 'Completed'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"9f5b0c58-8f33-464c-b8f9-62c813875def","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchHoursWorked\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"hourstype\": \"A\",\n        \"shifttype\": \"Completed\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchHoursWorked\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"hourstype\": \"A\",\n        \"shifttype\": \"Completed\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbt_id\": 5021,\n            \"pre_id\": 101,\n            \"ext_id\": \"\",\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"syu_resr_id\": 3,\n            \"syu_cons_id\": 3,\n            \"prd_id\": 7,\n            \"sbt_completed\": \"on\",\n            \"totalshiftsworked\": 1,\n            \"hoursworked\": \"11.50\",\n            \"resourcers\": \"SS\",\n            \"sbt_comments\": null,\n            \"starttime1\": 705,\n            \"endtime1\": 1910,\n            \"empdaywork1\": \"11.50\",\n            \"empdaytrav1\": \"0.00\",\n            \"empdaytotal1\": \"11.50\",\n            \"FKData\": {\n                \"pre_name\": \"Alex Example\",\n                \"pre_empno\": \"E1001\",\n                \"pre_adaptref\": \"\",\n                \"pre_level\": \"Primary\",\n                \"sbc_name\": \"Example Client Ltd\",\n                \"sbcl_name\": \"North Depot\",\n                \"syu_resr_fullname\": \"Sam Sample\",\n                \"syu_cons_fullname\": \"Sam Sample\",\n                \"prd_desc\": \"Site Operative\"\n            }\n        }\n    ]\n}"}],"_postman_id":"b6ea6e8f-f0f7-4ee8-8902-7b1f5533b1e9"},{"name":"Fetch Minimum Break Contraventions","id":"8daec2a2-15b1-4c30-91c1-3d1d68c85177","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchMinimumBreakContraventions\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"hourstype\": \"P\",\n        \"shifttype\": \"All\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Lists the places where an employee's rest between two shifts is shorter than your minimum break, for shifts in the given week (the earlier shift may be in an earlier week). One row per contravention, with the earlier shift (<code>shift1_*</code>), the later shift (<code>shift2_*</code>) and the gap (<code>break</code>, <code>breakinmins</code>; negative = overlap).</p>\n<p><strong>Service:</strong> <code>fetchMinimumBreakContraventions</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>hourstype</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>P</code></td>\n<td><code>P</code>, <code>A</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>shifttype</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>All</code></td>\n<td><code>All</code>, <code>Completed</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Employee's ext_id.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id, iNum</code></td>\n<td>int</td>\n<td>iNum numbers the contraventions per employee.</td>\n</tr>\n<tr>\n<td><code>shift1_* / shift2_*</code></td>\n<td>string</td>\n<td>_day ('Sat 0700-1900'), _sbc_name, _sbcl_name, _syu_resr_initials_name, _comments.</td>\n</tr>\n<tr>\n<td><code>break, breakinmins</code></td>\n<td>string, int</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Minimum Break Time Between Shifts (system setting; ask your account manager)</strong>: Minimum rest in minutes; shorter gaps are reported.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>pre_id and ext_id are mutually exclusive</code></li>\n<li><code>sbt_year/sbt_week must be supplied together</code></li>\n<li><code>'hourstype' must be '(P)lanned Hours' or '(A)ctual Hours'</code></li>\n<li><code>'shifttype' must be 'All' or 'Completed'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"76afe77d-55a3-4664-a75a-551e51e959ae","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchMinimumBreakContraventions\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"hourstype\": \"P\",\n        \"shifttype\": \"All\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchMinimumBreakContraventions\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"hourstype\": \"P\",\n        \"shifttype\": \"All\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 101,\n            \"iNum\": 1,\n            \"shift1_day\": \"Sat 0700-1900\",\n            \"shift1_sbc_name\": \"Example Client Ltd\",\n            \"shift1_sbcl_name\": \"North Depot\",\n            \"shift1_syu_resr_initials_name\": \"SS\",\n            \"shift1_comments\": \"\",\n            \"break\": \"8h\",\n            \"breakinmins\": 480,\n            \"shift2_day\": \"Sun 0300-1100\",\n            \"shift2_sbc_name\": \"Example Client Ltd\",\n            \"shift2_sbcl_name\": \"North Depot\",\n            \"shift2_syu_resr_initials_name\": \"SS\",\n            \"shift2_comments\": \"\",\n            \"FKData\": {\n                \"pre_name\": \"Alex Example\",\n                \"pre_empno\": \"E1001\",\n                \"pre_level\": \"Primary\",\n                \"pre_adaptref\": \"\"\n            }\n        }\n    ]\n}"}],"_postman_id":"8daec2a2-15b1-4c30-91c1-3d1d68c85177"},{"name":"Fetch No Shows","id":"7f968a19-1947-41fe-b9cb-5fc695e9f4bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchNoShows\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Lists the shift days in a week that were cancelled with the reason 'No Show' (per-day cancellations made in the Booking Sheet). Optionally for one client, by <code>sbc_id</code> or by the client's <code>ext_id</code>.</p>\n<p><strong>Service:</strong> <code>fetchNoShows</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>The client's external id. Not with sbc_id.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>pre_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year, sbt_week, sbt_id, sbc_id, sbcl_id, sbclc_id, pre_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbsca_reason</code></td>\n<td>string</td>\n<td>Always 'No Show'.</td>\n</tr>\n<tr>\n<td><code>sbt_day / sbt_day_date</code></td>\n<td>int / string 'dd-Mon-yyyy'</td>\n<td>Day number in the week, and its date ('dd-Mon-yyyy').</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>sbc_name, pre_name, pre_empno, pre_ninumber, pre_location, sbclc_name, sbclc_desc.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>sbc_id and ext_id are mutually exclusive</code></li>\n<li><code>sbt_year/sbt_week must be supplied together</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"8304c289-b02b-4738-8068-465bd35edb3a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchNoShows\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchNoShows\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbt_year\": 2026,\n            \"sbt_week\": 14,\n            \"sbt_id\": 5021,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5,\n            \"pre_id\": 101,\n            \"sbsca_reason\": \"No Show\",\n            \"sbt_day\": 2,\n            \"sbt_day_date\": \"29-Mar-2026\",\n            \"FKData\": {\n                \"sbc_name\": \"Example Client Ltd\",\n                \"pre_name\": \"Alex Example\",\n                \"pre_empno\": \"E1001\",\n                \"pre_ninumber\": \"QQ123456C\",\n                \"pre_location\": \"1 Example Street, Exampletown AB1 2CD\",\n                \"sbclc_name\": \"Main Contract\",\n                \"sbclc_desc\": \"\"\n            }\n        }\n    ]\n}"}],"_postman_id":"7f968a19-1947-41fe-b9cb-5fc695e9f4bf"},{"name":"Fetch Cancellations","id":"cc0a4e6b-1d54-4ae0-8554-bcdc136bae74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchCancellations\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"sbc_id\": 12\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Lists all per-day shift cancellations in a week (any reason), optionally for one client. Each row is one cancelled day of a shift, with the system reason (<code>sbsca_reason</code>) and your own cancellation reason (<code>sbcr_id</code>, <code>sbcr_label</code>; see Fetch Cancellation Reasons). Shifts cancelled with the Cancel Shift service are not included, because that service does not record per-day cancellations.</p>\n<p><strong>Service:</strong> <code>fetchCancellations</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>The client's external id. Not with sbc_id.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>pre_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbsca_reason</code></td>\n<td>enum</td>\n<td>Employee Changed, No Show, Employee Cancelled, Client Cancelled, Deleted, Voided, Competitor, Cannot Supply, Move to New Row or Copy to New Row.</td>\n</tr>\n<tr>\n<td><code>sbcr_id / sbcr_label</code></td>\n<td>int / string</td>\n<td>Your cancellation reason; may be null.</td>\n</tr>\n<tr>\n<td><code>other fields</code></td>\n<td></td>\n<td>As Fetch No Shows.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>sbc_id and ext_id are mutually exclusive</code></li>\n<li><code>sbt_year/sbt_week must be supplied together</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"5179afe7-161b-4069-a091-d15064505ace","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchCancellations\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"sbc_id\": 12\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchCancellations\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"sbc_id\": 12,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbt_year\": 2026,\n            \"sbt_week\": 14,\n            \"sbt_id\": 5021,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5,\n            \"pre_id\": 101,\n            \"sbsca_reason\": \"Client Cancelled\",\n            \"sbcr_label\": \"Weather\",\n            \"sbcr_id\": 4,\n            \"sbt_day\": 3,\n            \"sbt_day_date\": \"30-Mar-2026\",\n            \"FKData\": {\n                \"sbc_name\": \"Example Client Ltd\",\n                \"pre_name\": \"Alex Example\",\n                \"pre_empno\": \"E1001\",\n                \"pre_ninumber\": \"QQ123456C\",\n                \"pre_location\": \"1 Example Street, Exampletown AB1 2CD\",\n                \"sbclc_name\": \"Main Contract\",\n                \"sbclc_desc\": \"\"\n            }\n        }\n    ]\n}"}],"_postman_id":"cc0a4e6b-1d54-4ae0-8554-bcdc136bae74"},{"name":"Fetch Availability","id":"cc8e47c5-3620-41f8-8e04-a7ef768a2557","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAvailability\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"pre_id\": 101\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Shows, for each employee, whether they are available on each day (1 to 7) of a week. A day is <code>off</code> if the employee already has a shift touching that day or is marked not available ('NA') for it (Update Availability). Without <code>pre_id</code>, <code>ext_id</code> or <code>prd_id</code>, every employee is returned, so use paging.</p>\n<p><strong>Service:</strong> <code>fetchAvailability</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>prd_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Only employees with this duty.</td>\n</tr>\n<tr>\n<td><code>pre_level</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>B</code></td>\n<td><code>P</code>, <code>S</code>, <code>B</code>, <code>N</code></td>\n<td>Only applied when Show Sponsorship is on.</td>\n</tr>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Not with ext_id.</td>\n</tr>\n<tr>\n<td><code>ext_id</code></td>\n<td>varchar(30)</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Employee's ext_id.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>pre_name</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n<tr>\n<td><code>availday1..7</code></td>\n<td>enum on/off</td>\n<td>on or off. Days are numbered from your system's first day of the week.</td>\n</tr>\n<tr>\n<td><code>FKData</code></td>\n<td>object</td>\n<td>pre_name, pre_empno, pre_level, pre_adaptref.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Shift Week Start (system setting; ask your account manager)</strong>: Which weekday is day 1 of the week (Saturday if not set).</li>\n<li><strong>Show Sponsorship (Configuration)</strong>: The pre_level filter is only applied when this is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>pre_id and ext_id are mutually exclusive</code></li>\n<li><code>sbt_year/sbt_week must be supplied together</code></li>\n<li><code>'pre_level' must be '(P)rimary', '(S)econdary, '(B)oth or '(N)ot Sponsored'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"6a1406cd-f8ea-41e3-aa82-b7a5bfa5bdfb","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAvailability\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"pre_id\": 101\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchAvailability\",\n        \"includeFKData\": \"on\",\n        \"sbt_year\": 2026,\n        \"sbt_week\": 14,\n        \"pre_id\": 101,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 101,\n            \"availday1\": \"off\",\n            \"availday2\": \"on\",\n            \"availday3\": \"on\",\n            \"availday4\": \"off\",\n            \"availday5\": \"on\",\n            \"availday6\": \"on\",\n            \"availday7\": \"on\",\n            \"FKData\": {\n                \"pre_name\": \"Alex Example\",\n                \"pre_empno\": \"E1001\",\n                \"pre_level\": \"P\",\n                \"pre_adaptref\": \"\"\n            }\n        }\n    ]\n}"}],"_postman_id":"cc8e47c5-3620-41f8-8e04-a7ef768a2557"},{"name":"Fetch Risk Assessments","id":"b393e390-6ae5-4eb4-ac3c-c58ac974cd2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRiskAssessments\",\n        \"sbt_year_from\": 2026,\n        \"sbt_week_from\": 10,\n        \"sbt_year_to\": 2026,\n        \"sbt_week_to\": 14,\n        \"completedStatus\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns active fatigue risk assessments triggered between two shift year-weeks, with the shift, employee, triggers and the answers given. Assessments that were not completed on deleted shifts are left out.</p>\n<p>Not paginated: <code>orderby</code>, <code>offset</code> and <code>maxrows</code> are ignored.</p>\n<p><strong>Service:</strong> <code>fetchRiskAssessments</code></p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_year_from</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_week_from</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_year_to</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbt_week_to</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>completedStatus</code></td>\n<td>enum</td>\n<td>No</td>\n<td></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>cort_completed_level</code></td>\n<td>enum</td>\n<td>No</td>\n<td></td>\n<td><code>low</code>, <code>medium</code>, <code>high</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>pre_id, sbc_id, sbcl_id, sbclc_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Filters.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>cort_*</code></td>\n<td></td>\n<td>Risk assessment fields; cort_triggers_list is returned as text lines.</td>\n</tr>\n<tr>\n<td><code>syu_firstname, syu_surname</code></td>\n<td>string</td>\n<td>The consultant's first name and surname.</td>\n</tr>\n<tr>\n<td><code>risk_assessment_voided, weekendingdate, cort_completed_level, answers[{question, answer}]</code></td>\n<td></td>\n<td>Computed.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Week From [sbt_week_from] must be supplied</code></li>\n<li><code>Year From [sbt_year_from] must be supplied</code></li>\n<li><code>Week To [sbt_week_to] must be supplied</code></li>\n<li><code>Year To [sbt_year_to] must be supplied</code></li>\n<li><code>'completedStatus' (if supplied) must be 'on' or 'off'</code></li>\n<li><code>'cort_completed_level' (if supplied) must be 'low', 'medium' or 'high'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"14dc2eff-8e33-4d15-bcd9-fcdb906f8924","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchRiskAssessments\",\n        \"sbt_year_from\": 2026,\n        \"sbt_week_from\": 10,\n        \"sbt_year_to\": 2026,\n        \"sbt_week_to\": 14,\n        \"completedStatus\": \"on\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchRiskAssessments\",\n        \"sbt_year_from\": 2026,\n        \"sbt_week_from\": 10,\n        \"sbt_year_to\": 2026,\n        \"sbt_week_to\": 14,\n        \"completedStatus\": \"on\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"cort_id\": 77,\n            \"sbt_id\": 5021,\n            \"sbt_year\": 2026,\n            \"sbt_week\": 14,\n            \"pre_id\": 101,\n            \"pre_empno\": \"E1001\",\n            \"pre_name\": \"Alex Example\",\n            \"prd_desc\": \"Site Operative\",\n            \"sbc_name\": \"Example Client Ltd\",\n            \"sbcl_name\": \"North Depot\",\n            \"sbclc_name\": \"Main Contract\",\n            \"cort_triggers_list\": \"Day triggered: 2, Message: Fatigue score exceeds 35\",\n            \"cort_exceeded_on\": \"2026-03-29\",\n            \"cort_completed_status\": \"on\",\n            \"cort_completed_on\": \"2026-03-30 09:00:00\",\n            \"cort_completed_score\": 4,\n            \"sbt_fatigue_high\": \"36.0\",\n            \"sbt_risk_high\": \"1.30\",\n            \"cort_created\": \"2026-03-29 18:00:00\",\n            \"cort_updated\": \"2026-03-30 09:00:00\",\n            \"cort_active\": \"on\",\n            \"syu_firstname\": \"Sam\",\n            \"syu_surname\": \"Sample\",\n            \"sbt_deleted\": \"off\",\n            \"risk_assessment_voided\": false,\n            \"weekendingdate\": \"2026-04-03\",\n            \"cort_completed_level\": \"low\",\n            \"answers\": [\n                {\n                    \"question\": \"Has the worker had adequate rest?\",\n                    \"answer\": \"Yes\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"b393e390-6ae5-4eb4-ac3c-c58ac974cd2f"},{"name":"Update Availability","id":"a0ed76d6-8821-4d2c-a1a0-7cf01cc91765","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateAvailability\"\n    },\n    \"body\": [\n        {\n            \"sbav_year\": 2026,\n            \"sbav_week\": 14,\n            \"pre_id\": 101,\n            \"sbav_sbsc_id_list_1\": \"\",\n            \"sbav_sbsc_id_list_2\": \"3,4\",\n            \"sbav_sbsc_id_list_3\": \"NA\",\n            \"sbav_sbar_id_3\": 2,\n            \"sbav_notes\": \"Away on day 3\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Sets an employee's availability for one week (adds the week's availability record if there is none, otherwise updates it). For each day 1 to 7 you can send a list of core shift definition ids the employee is available for, 'NA' for not available, or '' to clear. For a day marked 'NA' you can give an availability reason id. All rows are saved together: if one row fails, none is saved. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateAvailability</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbav_year</code></td>\n<td>int(4)</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbav_week</code></td>\n<td>int(2)</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee.</td>\n</tr>\n<tr>\n<td><code>sbav_sbsc_id_list_1 .. _7</code></td>\n<td>text</td>\n<td>No</td>\n<td>'NA', '' or a comma-separated list of core shift definition ids.</td>\n</tr>\n<tr>\n<td><code>sbav_sbar_id_1 .. _7</code></td>\n<td>int</td>\n<td>No</td>\n<td>Availability reason id (Fetch Availability Reasons); must be active; 0 = none.</td>\n</tr>\n<tr>\n<td><code>sbav_notes</code></td>\n<td>text</td>\n<td>No</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Shift Week Start (system setting; ask your account manager)</strong>: Which weekday is day 1 of the week (Saturday if not set).</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Year [sbav_year] is required</code></li>\n<li><code>Year [sbav_week] is required</code></li>\n<li><code>Employee Panther Id [pre_id] is required</code></li>\n<li><code>No Employee [pre_id] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Core Shift Definition [sbav_sbsc_id_list_&lt;n&gt;] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>No Availability Reason [sbav_sbar_id_&lt;n&gt;] exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>Availability Reason [sbav_sbar_id_&lt;n&gt;] with Panther Id '&lt;id&gt;' is not active</code></li>\n<li><code>Illegal action: It is not possible to update the field 'sbav_yrwk'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"e76c7074-ec0e-498d-b5f2-fe844006fb81","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateAvailability\"\n    },\n    \"body\": [\n        {\n            \"sbav_year\": 2026,\n            \"sbav_week\": 14,\n            \"pre_id\": 101,\n            \"sbav_sbsc_id_list_1\": \"\",\n            \"sbav_sbsc_id_list_2\": \"3,4\",\n            \"sbav_sbsc_id_list_3\": \"NA\",\n            \"sbav_sbar_id_3\": 2,\n            \"sbav_notes\": \"Away on day 3\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateAvailability\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"a0ed76d6-8821-4d2c-a1a0-7cf01cc91765"}],"id":"d859d83e-2b51-4ea8-88c3-86e63a842610","_postman_id":"d859d83e-2b51-4ea8-88c3-86e63a842610","description":""}],"id":"7fb05094-9eba-43c0-9fe3-e3ce3e2e8421","description":"<p>Shifts are stored as booking rows. Each row is for one employee (or unfilled), client, location and duty in one week of your system's shift year, given by <code>sbt_year</code> and <code>sbt_week</code>: your system's own year and week numbers, not ISO weeks (use Fetch Weeks For Year to turn them into dates; <code>sbt_yrwk</code> is YYYYWW and is set for you). A row holds up to seven days, numbered 1 to 7 from your system's first day of the week (Shift Week Start; Saturday if not set). For each day n, <code>sbt_s_n</code> and <code>sbt_f_n</code> are the planned start and finish as 24-hour <code>HHMM</code> text (a finish at or before the start means the next day), <code>sbt_b_n</code> is the planned break in minutes, and <code>sbt_as_n</code>, <code>sbt_af_n</code> and <code>sbt_ab_n</code> are the actual start, finish and break. Timesheets are one per worked day (<code>sbti_day</code> = n), and cancellations are recorded per day.</p>\n","_postman_id":"7fb05094-9eba-43c0-9fe3-e3ce3e2e8421"},{"name":"Expenses","item":[{"name":"Expense Types","item":[{"name":"Fetch Expenses","id":"cd8d766a-da98-4c6b-9970-ef951dd2b791","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchExpenses\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns your system's expense types (for example Parking or Mileage). Timesheet expenses refer to them by <code>prex_id</code>. An expense type labelled exactly 'Mileage' is used as the mileage type by the timesheet expense services. Send <code>prex_id</code> for one; an error is returned if it does not exist.</p>\n<p><strong>Service:</strong> <code>fetchExpenses</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prex_id</code></td>\n<td>int</td>\n<td>No</td>\n<td></td>\n<td></td>\n<td>Single expense type; error if not found.</td>\n</tr>\n<tr>\n<td><code>orderby</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>prex_label</code></td>\n<td></td>\n<td>Comma-separated list of up to 10 columns, each optionally followed by ASC or DESC. Only columns this service returns or reads can be used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>expense type fields</code></td>\n<td></td>\n<td>prex_id, prex_label, prex_desc, prex_active, prex_showon_webapp, prex_showon_gpprofit, prex_showon_gpcontract, prps_id (linked expense pay scheme), prex_created, prex_updated.</td>\n</tr>\n<tr>\n<td><code>prps_name</code></td>\n<td>string</td>\n<td>Name of the linked expense pay scheme.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Expenses can be chargeable (system setting; ask your account manager)</strong>: When on, expense types can be linked to an expense pay scheme (prps_id).</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>An expense with this Id does not exist</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"ea680cef-0984-438d-b4be-e9d8bd9f1f07","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchExpenses\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchExpenses\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prex_id\": 3,\n            \"prex_label\": \"Parking\",\n            \"prex_desc\": \"Car park charges\",\n            \"prex_showon_webapp\": \"on\",\n            \"prex_showon_gpprofit\": \"off\",\n            \"prex_showon_gpcontract\": \"off\",\n            \"prps_id\": null,\n            \"prex_active\": \"on\",\n            \"prex_created\": \"2026-01-05 10:00:00\",\n            \"prex_updated\": \"2026-01-05 10:00:00\",\n            \"prps_name\": null\n        }\n    ]\n}"}],"_postman_id":"cd8d766a-da98-4c6b-9970-ef951dd2b791"},{"name":"Add Expense","id":"28906c26-2b1a-48a2-b3e7-d463ebe34b81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addExpense\"\n    },\n    \"body\": [\n        {\n            \"prex_label\": \"Tolls\",\n            \"prex_desc\": \"Road and bridge tolls\",\n            \"prex_showon_webapp\": \"on\",\n            \"prex_showon_gpprofit\": \"off\",\n            \"prex_active\": \"on\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds expense types. <code>prex_label</code> must be unique. Leave <code>prps_id</code> out or send 0: a non-zero <code>prps_id</code> is refused with 'This pay scheme Id does not correspond to an expense pay scheme'. Link expense types to an expense pay scheme in your system's screens. Returns <code>prex_id</code> (a string) for each row.</p>\n<p><strong>Service:</strong> <code>addExpense</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prex_label</code></td>\n<td>varchar</td>\n<td>Yes</td>\n<td>Unique name. 'Mileage' has a special meaning for timesheet expenses.</td>\n</tr>\n<tr>\n<td><code>prex_desc</code></td>\n<td>varchar(100)</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>prex_showon_webapp</code></td>\n<td>enum on/off</td>\n<td>Yes</td>\n<td>Allow on the employee web app: on or off.</td>\n</tr>\n<tr>\n<td><code>prex_showon_gpprofit</code></td>\n<td>enum on/off</td>\n<td>Yes</td>\n<td>Allow on the GP Report as an employee expense: on or off.</td>\n</tr>\n<tr>\n<td><code>prex_active</code></td>\n<td>enum on/off</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>prex_showon_gpcontract</code></td>\n<td>enum on/off</td>\n<td>No</td>\n<td>Allow on the GP Report as a contract expense: on or off.</td>\n</tr>\n<tr>\n<td><code>prps_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Leave out or send 0 (see description).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prex_id</code></td>\n<td>string</td>\n<td>New expense type id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages, for example Candidate for employee.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Expense id [prex_id] cannot be set when adding a new expense</code></li>\n<li><code>Expense name [prex_label] is required</code></li>\n<li><code>Allow on Candidate Web-App [prex_showon_webapp] is required</code></li>\n<li><code>Allow on Candidate Web-App [prex_showon_webapp] must be a value of 'on' or 'off'</code></li>\n<li><code>Allow on GP Report - Candidate Expense [prex_showon_gpprofit] must be a value of 'on' or 'off'</code></li>\n<li><code>Expense active/inactive [prex_active] is required</code></li>\n<li><code>Expense active/inactive [prex_active] must be a value of 'on' or 'off'</code></li>\n<li><code>An Expense with this name already exists '&lt;label&gt;</code></li>\n<li><code>This pay scheme Id does not correspond to an expense pay scheme: '&lt;id&gt;</code></li>\n<li><code>This pay scheme Id does not exist: '&lt;id&gt;</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"13735b46-0104-4713-8200-fd6fc96eb515","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addExpense\"\n    },\n    \"body\": [\n        {\n            \"prex_label\": \"Tolls\",\n            \"prex_desc\": \"Road and bridge tolls\",\n            \"prex_showon_webapp\": \"on\",\n            \"prex_showon_gpprofit\": \"off\",\n            \"prex_active\": \"on\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addExpense\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"prex_id\": \"9\"\n        }\n    ]\n}"}],"_postman_id":"28906c26-2b1a-48a2-b3e7-d463ebe34b81"},{"name":"Update Expense","id":"e3c49c3a-1a93-4c69-b1f2-39e9b93472e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateExpense\"\n    },\n    \"body\": [\n        {\n            \"prex_id\": 9,\n            \"prex_active\": \"off\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates expense types. Send <code>prex_id</code> and the fields to change; the rules are as for Add Expense (the label must stay unique, on/off fields are checked, and <code>prps_id</code> must be left out or 0). Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateExpense</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prex_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>prex_label, prex_desc, prex_showon_webapp, prex_showon_gpprofit, prex_showon_gpcontract, prex_active, prps_id</code></td>\n<td></td>\n<td>No</td>\n<td>As Add Expense.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages, for example Candidate for employee.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Expense id [prex_id] must be present to update expense</code></li>\n<li><code>This expense Id does not exist'&lt;id&gt;</code></li>\n<li><code>Another Expense with this name already exists'&lt;label&gt;</code></li>\n<li><code>Expense name [prex_label] is required</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"ea803f41-ab82-4786-b96f-af9076bd3e03","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateExpense\"\n    },\n    \"body\": [\n        {\n            \"prex_id\": 9,\n            \"prex_active\": \"off\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateExpense\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"e3c49c3a-1a93-4c69-b1f2-39e9b93472e4"},{"name":"Delete Expense","id":"1f5a04de-581d-440b-bd64-c40792d17c3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteExpense\"\n    },\n    \"body\": [\n        {\n            \"prex_id\": 9\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes expense types permanently. Timesheet expenses that use the type then show no label. To stop using a type, consider setting <code>prex_active: off</code> with Update Expense instead. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteExpense</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prex_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Expense Id [prex_id] is required</code></li>\n<li><code>No Expense with this Id exists with Panther Id '&lt;id&gt;'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"4d702b7b-0625-4ecc-b5c3-e6c82dbb29d5","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteExpense\"\n    },\n    \"body\": [\n        {\n            \"prex_id\": 9\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteExpense\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"1f5a04de-581d-440b-bd64-c40792d17c3e"}],"id":"856aa55a-e1ee-454f-a08c-48c6d4a7c624","_postman_id":"856aa55a-e1ee-454f-a08c-48c6d4a7c624","description":""},{"name":"Timesheet Expenses","item":[{"name":"Fetch Timesheet Expenses","id":"f3a938d6-7cb8-4cdb-94c0-adb47ca79350","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchTimesheetExpenses\"\n    },\n    \"body\": [\n        {\n            \"sbti_id\": 9001\n        },\n        {\n            \"sbti_id\": 9002\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns the expenses claimed on one or more timesheets. Put the timesheet ids in the <strong>body</strong> (not the header), one row per timesheet. Each row includes <code>sbtex_charge</code>: the amount plus any 'FLAT %' additions of the expense's pay scheme that are valid on the timesheet date, when expenses can be chargeable on your system.</p>\n<p><strong>Service:</strong> <code>fetchTimesheetExpenses</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbti_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Timesheet id. Every one must exist.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>timesheet expense fields</code></td>\n<td></td>\n<td>sbtex_id, sbti_id, prex_id, sbtex_type (FROM-TO, TOTAL-MILEAGE or NON-MILEAGE), sbtex_rtrip, sbtex_from, sbtex_from_address, sbtex_to, sbtex_to_address, sbtex_distance (miles), sbtex_description, sbtex_amount, sbtex_agree, sbtex_approve, sbtex_created, sbtex_updated.</td>\n</tr>\n<tr>\n<td><code>pre_name, pre_id, sbti_date, prex_label, prex_desc, prps_name, prps_id</code></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbtex_charge</code></td>\n<td>string '0.00'</td>\n<td>Amount plus additions, as text ('0.00').</td>\n</tr>\n<tr>\n<td><code>additions</code></td>\n<td>object</td>\n<td>{addition name: amount}; an empty array when there are none.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Expenses can be chargeable (system setting; ask your account manager)</strong>: When on, the 'FLAT %' additions of the expense's pay scheme are added into sbtex_charge.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The timesheet Id [sbti_id] is required</code></li>\n<li><code>The timesheet Id [sbti_id] must be numeric</code></li>\n<li><code>This timesheet id does not exist: &lt;id&gt;</code></li>\n<li><code>No timesheet Ids [sbti_id] were supplied</code></li>\n<li><code>No expenses exist for this timesheet</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"820ff092-55e7-463f-8745-42c8cba8176d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchTimesheetExpenses\"\n    },\n    \"body\": [\n        {\n            \"sbti_id\": 9001\n        },\n        {\n            \"sbti_id\": 9002\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchTimesheetExpenses\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_name\": \"Alex Example\",\n            \"pre_id\": 101,\n            \"sbti_date\": \"2026-03-28\",\n            \"sbtex_id\": 301,\n            \"sbti_id\": 9001,\n            \"prex_id\": 3,\n            \"sbtex_type\": \"NON-MILEAGE\",\n            \"sbtex_rtrip\": \"off\",\n            \"sbtex_from\": \"\",\n            \"sbtex_from_address\": null,\n            \"sbtex_to\": \"\",\n            \"sbtex_to_address\": null,\n            \"sbtex_distance\": 0,\n            \"sbtex_description\": \"Car park\",\n            \"sbtex_amount\": 6.5,\n            \"sbtex_agree\": \"yes\",\n            \"sbtex_approve\": \"no\",\n            \"sbtex_created\": \"2026-03-28 18:00:00\",\n            \"sbtex_updated\": \"2026-03-28 18:00:00\",\n            \"prex_label\": \"Parking\",\n            \"prex_desc\": \"Car park charges\",\n            \"prps_name\": null,\n            \"prps_id\": null,\n            \"sbtex_charge\": \"6.50\",\n            \"additions\": []\n        }\n    ]\n}"}],"_postman_id":"f3a938d6-7cb8-4cdb-94c0-adb47ca79350"},{"name":"Fetch Week Expenses","id":"dc262158-2624-4241-8ee5-65b37da86a85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchWeekExpenses\"\n    },\n    \"body\": [\n        {\n            \"sbt_yrwk\": 202614,\n            \"pre_id\": 101\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns all timesheet expenses for shifts in a week (<code>sbt_yrwk</code>, YYYYWW), optionally for one employee. Put the query in the <strong>body</strong>; each body row gives its own array, so the response body is an array of arrays (one per request row).</p>\n<p><strong>Service:</strong> <code>fetchWeekExpenses</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbt_yrwk</code></td>\n<td>int YYYYWW</td>\n<td>Yes</td>\n<td>Shift year and week as YYYYWW, for example 202614.</td>\n</tr>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>No</td>\n<td>Limit to one employee.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Fetch Timesheet Expenses) plus pre_email</code></td>\n<td></td>\n<td>Same fields as Fetch Timesheet Expenses, plus pre_email, nested one level deeper.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Expenses can be chargeable (system setting; ask your account manager)</strong>: When on, the 'FLAT %' additions of the expense's pay scheme are added into sbtex_charge.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The Year week [sbt_yrwk] is required</code></li>\n<li><code>The Year week [sbt_yrwk] must be numeric</code></li>\n<li><code>This pre_id id does not exist: &lt;id&gt;</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"a26d1ec2-f5fc-4363-a6d7-6e1e4b61df7a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchWeekExpenses\"\n    },\n    \"body\": [\n        {\n            \"sbt_yrwk\": 202614,\n            \"pre_id\": 101\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchWeekExpenses\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        [\n            {\n                \"pre_id\": 101,\n                \"pre_name\": \"Alex Example\",\n                \"pre_email\": \"alex@example.com\",\n                \"sbtex_id\": 301,\n                \"sbti_id\": 9001,\n                \"prex_id\": 3,\n                \"sbtex_type\": \"NON-MILEAGE\",\n                \"sbtex_amount\": 6.5,\n                \"sbtex_description\": \"Car park\",\n                \"prex_label\": \"Parking\",\n                \"prex_desc\": \"Car park charges\",\n                \"prps_name\": null,\n                \"prps_id\": null,\n                \"sbti_date\": \"2026-03-28\",\n                \"sbtex_charge\": \"6.50\",\n                \"additions\": []\n            }\n        ]\n    ]\n}"}],"_postman_id":"dc262158-2624-4241-8ee5-65b37da86a85"},{"name":"Add Timesheet Expense","id":"cf111582-bba5-4769-a2ac-bdab7b4dd8e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addTimesheetExpense\"\n    },\n    \"body\": [\n        {\n            \"sbti_id\": 9001,\n            \"prex_id\": 3,\n            \"sbtex_type\": \"NON-MILEAGE\",\n            \"sbtex_description\": \"Car park\",\n            \"sbtex_amount\": 6.5\n        },\n        {\n            \"sbti_id\": 9001,\n            \"prex_id\": 4,\n            \"sbtex_type\": \"TOTAL-MILEAGE\",\n            \"sbtex_distance\": 24\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds expenses to timesheets that are not yet batched (closed period). There are three types (<code>sbtex_type</code>):</p>\n<ul>\n<li><strong>NON-MILEAGE</strong>: any expense type except 'Mileage'. Send <code>sbtex_description</code> and <code>sbtex_amount</code> (a number, no currency symbol).</li>\n<li><strong>FROM-TO</strong>: the expense type must be 'Mileage'. Send <code>sbtex_from</code> and <code>sbtex_to</code> (addresses or postcodes). Both are looked up and the straight-line distance in miles is worked out (doubled when <code>sbtex_rtrip: on</code>). Amount = distance x the client's mileage allowance. A description is created if you don't send one.</li>\n<li><strong>TOTAL-MILEAGE</strong>: the expense type must be 'Mileage'. Send <code>sbtex_distance</code> in miles. Amount = distance x the client's mileage allowance; the description is set to 'Total Mileage'.</li>\n</ul>\n<p>All rows are added together: if one row fails, none is added. Returns <code>sbtex_id</code> (a string) for each row.</p>\n<p><strong>Service:</strong> <code>addTimesheetExpense</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbti_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Timesheet; must not be batched.</td>\n</tr>\n<tr>\n<td><code>prex_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Expense type.</td>\n</tr>\n<tr>\n<td><code>sbtex_type</code></td>\n<td>enum</td>\n<td>Yes</td>\n<td>FROM-TO | NON-MILEAGE | TOTAL-MILEAGE.</td>\n</tr>\n<tr>\n<td><code>sbtex_description</code></td>\n<td>text</td>\n<td>No</td>\n<td>Required for NON-MILEAGE.</td>\n</tr>\n<tr>\n<td><code>sbtex_amount</code></td>\n<td>number</td>\n<td>No</td>\n<td>Required (&gt; 0) for NON-MILEAGE; calculated for mileage types.</td>\n</tr>\n<tr>\n<td><code>sbtex_from / sbtex_to</code></td>\n<td>text</td>\n<td>No</td>\n<td>Required for FROM-TO.</td>\n</tr>\n<tr>\n<td><code>sbtex_rtrip</code></td>\n<td>enum on/off</td>\n<td>No</td>\n<td>FROM-TO round trip; default off.</td>\n</tr>\n<tr>\n<td><code>sbtex_distance</code></td>\n<td>number (miles)</td>\n<td>No</td>\n<td>Required (non-zero) for TOTAL-MILEAGE.</td>\n</tr>\n<tr>\n<td><code>sbtex_agree</code></td>\n<td>enum yes/no</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbtex_approve</code></td>\n<td>enum yes/no</td>\n<td>No</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbtex_id</code></td>\n<td>string</td>\n<td>New timesheet expense id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Mileage Allowance (on the client record)</strong>: Rate per mile for FROM-TO and TOTAL-MILEAGE expenses; 0 if not set.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Timesheet id [sbti_id] is required</code></li>\n<li><code>A Timesheet with this Id [sbti_id] does not exist '&lt;id&gt;</code></li>\n<li><code>This Timesheet is already part of a closed period, we cannot add an expense. Timesheet Id: &lt;id&gt;</code></li>\n<li><code>Expense type [sbtex_type] is required</code></li>\n<li><code>Expense type [sbtex_type] must be 'NON-MILEAGE', 'FROM-TO' or 'TOTAL-MILEAGE'</code></li>\n<li><code>Expense id [prex_id] is required</code></li>\n<li><code>An Expense with this Id [prex_id] does not exist '&lt;id&gt;</code></li>\n<li><code>The Expense Id [prex_id] does not correspond to a non-mileage expense: &lt;id&gt;</code></li>\n<li><code>The Expense Id [prex_id] does not correspond to a mileage expense: &lt;id&gt;</code></li>\n<li><code>The Expense description [sbtex_description] is required</code></li>\n<li><code>The Expense amount [sbtex_amount] is required</code></li>\n<li><code>The Expense amount [sbtex_amount] cannot be less than 0</code></li>\n<li><code>The From value [sbtex_from] is required</code></li>\n<li><code>The To value [sbtex_to] is required</code></li>\n<li><code>Could not find the from address [sbtex_from]</code></li>\n<li><code>Could not find the to address [sbtex_to]</code></li>\n<li><code>Could not find the mileage between the 2 points</code></li>\n<li><code>The Distance [sbtex_distance] is required</code></li>\n<li><code>The Expense agreed [sbtex_agree] must be a value of 'yes' or 'no'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"8aea9147-51f2-4bb0-adb8-9ae552b423c3","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addTimesheetExpense\"\n    },\n    \"body\": [\n        {\n            \"sbti_id\": 9001,\n            \"prex_id\": 3,\n            \"sbtex_type\": \"NON-MILEAGE\",\n            \"sbtex_description\": \"Car park\",\n            \"sbtex_amount\": 6.5\n        },\n        {\n            \"sbti_id\": 9001,\n            \"prex_id\": 4,\n            \"sbtex_type\": \"TOTAL-MILEAGE\",\n            \"sbtex_distance\": 24\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addTimesheetExpense\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"sbtex_id\": \"301\"\n        },\n        {\n            \"sbtex_id\": \"302\"\n        }\n    ]\n}"}],"_postman_id":"cf111582-bba5-4769-a2ac-bdab7b4dd8e8"},{"name":"Update Timesheet Expense","id":"8cb0c840-322e-4897-a808-fc43521b33db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateTimesheetExpense\"\n    },\n    \"body\": [\n        {\n            \"sbtex_id\": 301,\n            \"sbtex_amount\": 7.0,\n            \"sbtex_approve\": \"yes\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates timesheet expenses on timesheets that are not batched. Send <code>sbtex_id</code> and the fields to change. The expense's type decides what is needed:</p>\n<ul>\n<li><strong>NON-MILEAGE</strong>: description and amount.</li>\n<li><strong>FROM-TO</strong>: send <code>sbtex_from</code> and <code>sbtex_to</code> together to recalculate the distance and amount. <code>sbtex_rtrip</code> can be switched off but not on; to make a trip a round trip, delete the expense and add it again.</li>\n<li><strong>TOTAL-MILEAGE</strong>: send <code>sbtex_distance</code> and the expense's <code>sbti_id</code> on every update, so the amount is worked out from the client's mileage allowance; without <code>sbti_id</code> the amount is set to 0.</li>\n</ul>\n<p>Don't change an expense's <code>sbti_id</code>, <code>prex_id</code> or <code>sbtex_type</code>; delete it and add a new one instead. Returns an empty body.</p>\n<p><strong>Service:</strong> <code>updateTimesheetExpense</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbtex_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbtex_description, sbtex_amount, sbtex_from, sbtex_to, sbtex_rtrip, sbtex_distance, sbtex_agree, sbtex_approve</code></td>\n<td></td>\n<td>No</td>\n<td>As Add Timesheet Expense.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Mileage Allowance (on the client record)</strong>: Rate per mile for FROM-TO and TOTAL-MILEAGE expenses; 0 if not set.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Timesheet expense id [sbtex_id] is required</code></li>\n<li><code>A Timesheet expense with this Id [sbtex_id] does not exist '&lt;id&gt;</code></li>\n<li><code>This Timesheet is already part of a closed period, we cannot update an expense. Timesheet Id: &lt;id&gt;</code></li>\n<li><code>The Distance [sbtex_distance] is required</code></li>\n<li><code>The Expense approved [sbtex_approve] must be a value of 'yes' or 'no'</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"c1bea855-6d47-47af-be82-50c64e9ff6e2","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateTimesheetExpense\"\n    },\n    \"body\": [\n        {\n            \"sbtex_id\": 301,\n            \"sbtex_amount\": 7.0,\n            \"sbtex_approve\": \"yes\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateTimesheetExpense\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"8cb0c840-322e-4897-a808-fc43521b33db"},{"name":"Delete Timesheet Expense","id":"7aa01a63-d462-4a6d-9e13-b7ac62ce9132","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteTimesheetExpense\"\n    },\n    \"body\": [\n        {\n            \"sbtex_id\": 302\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes timesheet expenses permanently, unless the timesheet is batched (closed period). Returns an empty body.</p>\n<p><strong>Service:</strong> <code>deleteTimesheetExpense</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sbtex_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>Timesheet expense Id [sbtex_id] is required</code></li>\n<li><code>No Timesheet expense with this Id exists with Panther Id '&lt;id&gt;'</code></li>\n<li><code>This Timesheet is already part of a closed period, we cannot delete an expense. Timesheet Id: &lt;id&gt;</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"15513ddc-baf3-4e1b-9bbb-752e27f2bd82","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteTimesheetExpense\"\n    },\n    \"body\": [\n        {\n            \"sbtex_id\": 302\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteTimesheetExpense\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"7aa01a63-d462-4a6d-9e13-b7ac62ce9132"}],"id":"1e43dc6c-69a6-4217-85cc-1d27f67d1c51","_postman_id":"1e43dc6c-69a6-4217-85cc-1d27f67d1c51","description":""}],"id":"1bba848a-1fee-4a71-9400-c4145143f6e5","description":"<p>Expense types (for example Parking or Mileage) are set up once; timesheet expenses are claims against a timesheet, which is one worked day of a shift. An expense type labelled exactly 'Mileage' is used for mileage claims, which are worked out from the client's Mileage Allowance. Timesheet expenses cannot be added, changed or deleted once the timesheet is batched (closed period).</p>\n","_postman_id":"1bba848a-1fee-4a71-9400-c4145143f6e5"},{"name":"Pay","item":[{"name":"Payslips","item":[{"name":"Fetch Payslips","id":"42ecd9e8-c46d-4406-a823-ee439115155f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchPayslips\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 101,\n            \"prep_gpYrwk\": \"202614\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns payslip and remittance records for one or more employees, optionally for one pay week each. Put the employees in the <strong>body</strong>. Each record also lists the timesheet batches and shift ids it covers, the pay date and holiday figures from the imported PAYE data, and (with <code>includerates: on</code>) the rates of each shift.</p>\n<p><strong>Service:</strong> <code>fetchPayslips</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>includerates</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td>Adds rates keyed by sbt_id. Can be slow.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Employee.</td>\n</tr>\n<tr>\n<td><code>prep_gpYrwk</code></td>\n<td>char(6) YYYYWW</td>\n<td>No</td>\n<td>Pay week; omit for all of the employee's payslips.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_name, pre_empno, pre_email, pre_location, prps_name</code></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>payslip fields</code></td>\n<td></td>\n<td>prep_id, pre_id, prps_id, prep_gpYrwk, prep_payDate, prep_docType (PAYSLIP or REMITTANCE), prep_docNumber, prep_grossPay, prep_netPay, prep_docSeenStatus, prep_docSeenUpdated, prep_weekEndingDate, prep_docAsFinalUpdated, prep_integratedFinalRecord, prep_timesheetsList, prep_gpIncreasePayList, prep_created, prep_updated.</td>\n</tr>\n<tr>\n<td><code>batch_id, sbt_ids</code></td>\n<td>array</td>\n<td>Timesheet batches and shifts in the payslip.</td>\n</tr>\n<tr>\n<td><code>rates</code></td>\n<td>object</td>\n<td>includerates only; keyed by sbt_id.</td>\n</tr>\n<tr>\n<td><code>holiday_accrued, holiday_taken, holiday_balance, holiday_balance_monetary_val, holiday_ave_pay_rate</code></td>\n<td>decimal</td>\n<td>From imported PAYE data; null if there is none.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Payslips (system setting; ask your account manager)</strong>: Switches payslips on in your system's screens. The API services work whether or not it is on.</li>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages, for example Candidate for employee.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>At least one row with a Candidate Id [pre_id] is required</code></li>\n<li><code>A Candidate Id [pre_id] is required</code></li>\n<li><code>This pre_id [&lt;id&gt;] does not exist</code></li>\n<li><code>Invalid timesheet list for payslip &lt;id&gt;</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"32c9797a-a2ed-4fbc-8d43-bc54a830ab7e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchPayslips\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 101,\n            \"prep_gpYrwk\": \"202614\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchPayslips\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_name\": \"Alex Example\",\n            \"pre_empno\": \"E1001\",\n            \"pre_email\": \"alex@example.com\",\n            \"pre_location\": \"1 Example Street, Exampletown AB1 2CD\",\n            \"prps_name\": \"PAYE Weekly\",\n            \"pre_id\": 101,\n            \"prps_id\": 2,\n            \"prep_id\": 880,\n            \"prep_gpYrwk\": \"202614\",\n            \"prep_payDate\": \"2026-04-10\",\n            \"prep_docType\": \"PAYSLIP\",\n            \"prep_docNumber\": \"PS-880\",\n            \"prep_grossPay\": \"540.00\",\n            \"prep_netPay\": \"455.20\",\n            \"prep_docSeenStatus\": \"Off\",\n            \"prep_docSeenUpdated\": null,\n            \"prep_weekEndingDate\": \"2026-04-03\",\n            \"prep_timesheetsList\": \"[9001,9002]\",\n            \"prep_integratedFinalRecord\": null,\n            \"prep_created\": \"2026-04-06 09:00:00\",\n            \"prep_updated\": \"2026-04-06 09:00:00\",\n            \"batch_id\": [\n                41\n            ],\n            \"sbt_ids\": [\n                5021\n            ],\n            \"holiday_accrued\": \"1.250\",\n            \"holiday_taken\": \"0.000\",\n            \"holiday_balance\": \"3.750\",\n            \"holiday_balance_monetary_val\": \"120.00\",\n            \"holiday_ave_pay_rate\": \"12.00\"\n        }\n    ]\n}"}],"_postman_id":"42ecd9e8-c46d-4406-a823-ee439115155f"},{"name":"Fetch All Week Payslips","id":"81450d4f-32ef-4c6b-ad64-2e1b0de9f99b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAllWeekPayslips\",\n        \"maxrows\": 100,\n        \"offset\": 0\n    },\n    \"body\": [\n        {\n            \"prep_gpYrwk\": \"202614\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns every employee's payslip records for one or more pay weeks (<code>prep_gpYrwk</code> in the body). Before returning, it rebuilds the payslip data of every employee who has a payslip in that week, so this call updates data and can be slow. Same response format as Fetch Payslips.</p>\n<p><strong>Service:</strong> <code>fetchAllWeekPayslips</code><br /><strong>Paginated:</strong> yes (<code>offset</code>, <code>maxrows</code>; see <em>Pagination and sorting</em>).</p>\n<h4 id=\"header-fields-for-this-service\">Header fields for this service</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Allowed values</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>includerates</code></td>\n<td>enum</td>\n<td>No</td>\n<td><code>off</code></td>\n<td><code>on</code>, <code>off</code></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prep_gpYrwk</code></td>\n<td>char(6) YYYYWW</td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Fetch Payslips)</code></td>\n<td></td>\n<td>Same fields as Fetch Payslips.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Payslips (system setting; ask your account manager)</strong>: Switches payslips on in your system's screens. The API services work whether or not it is on.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>At least one row with a Year Week [prep_gpYrwk] is required</code></li>\n<li><code>A Year Week [prep_gpYrwk] is required</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"c9899a06-81ef-4c35-a060-25383f1206ca","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAllWeekPayslips\",\n        \"maxrows\": 100,\n        \"offset\": 0\n    },\n    \"body\": [\n        {\n            \"prep_gpYrwk\": \"202614\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchAllWeekPayslips\",\n        \"maxrows\": 100,\n        \"offset\": 0,\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_name\": \"Alex Example\",\n            \"pre_empno\": \"E1001\",\n            \"prep_id\": 880,\n            \"pre_id\": 101,\n            \"prep_gpYrwk\": \"202614\",\n            \"prep_docType\": \"PAYSLIP\",\n            \"prep_grossPay\": \"540.00\",\n            \"prep_netPay\": \"455.20\",\n            \"batch_id\": [\n                41\n            ],\n            \"sbt_ids\": [\n                5021\n            ],\n            \"holiday_balance\": \"3.750\"\n        }\n    ]\n}"}],"_postman_id":"81450d4f-32ef-4c6b-ad64-2e1b0de9f99b"},{"name":"Add Payslip","id":"d87e928f-e6b3-47cb-a5a0-d6b9013cfd7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addPayslip\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"PAY_DATE\": \"10/04/2026\",\n            \"EMP_TAX_CODE\": \"1257L\",\n            \"Period\": 1,\n            \"Year\": \"2026\",\n            \"HIST_PAYCODE\": \"Basic\",\n            \"HIST_GROSS\": 540.0,\n            \"PAY_FREQUENCY\": \"Weekly\",\n            \"TAX\": 52.4,\n            \"NIC\": 32.4,\n            \"EMP_PAY_PER_NETPAY\": 455.2,\n            \"HOLIDAY_ACCRUED\": 1.25\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Imports PAYE payslip lines from your payroll software, one body row per payslip line (for example Basic, Overtime or Holiday Pay). Field names follow the payroll export (upper case). The employee is found by <code>EMP_CODE</code>: the employee number or a pay-scheme override number, which must match exactly one employee. If there is no payslip record yet for that employee and week ending date, one is created first.</p>\n<p>A line is identified by EMP_CODE, WEEK_ENDING_DATE, Period and HIST_PAYCODE; adding a line that already exists is refused (use Update Payslip). Send the text 'DELETE' in a field to blank it. All rows are saved together.</p>\n<p>Dates are <code>dd/mm/yyyy</code> (<code>mm/dd/yyyy</code> if your system uses US dates). <code>WEEK_ENDING_DATE</code> must be the last day of a week in your system's shift years.</p>\n<p>The response body is an object keyed '1', '2' and so on (one entry per request row) holding the stored values.</p>\n<p><strong>Service:</strong> <code>addPayslip</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>EMP_CODE</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Employee number or pay-scheme override number (upper case).</td>\n</tr>\n<tr>\n<td><code>WEEK_ENDING_DATE</code></td>\n<td>date dd/mm/yyyy</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>PAY_DATE</code></td>\n<td>date dd/mm/yyyy</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>EMP_TAX_CODE</code></td>\n<td>string</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>Period</code></td>\n<td>int</td>\n<td>No</td>\n<td>Pay period number; part of the line key. The name is case-sensitive.</td>\n</tr>\n<tr>\n<td><code>Year</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>HIST_PAYCODE</code></td>\n<td>string(45)</td>\n<td>No</td>\n<td>Earnings or deduction label, up to 45 characters; part of the line key.</td>\n</tr>\n<tr>\n<td><code>HIST_GROSS</code></td>\n<td>decimal</td>\n<td>No</td>\n<td>Amount for this line.</td>\n</tr>\n<tr>\n<td><code>EMP_WEEK1_MONTH1</code></td>\n<td>Y|N</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>NI Letter</code></td>\n<td>string</td>\n<td>No</td>\n<td>Field name contains a space.</td>\n</tr>\n<tr>\n<td><code>PAY_FREQUENCY</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>GROSS_PAY_YTD, TAXABLEPAY_YTD, TAX_YTD, NICEES_YTD, NICERS_YTD</code></td>\n<td>decimal</td>\n<td>No</td>\n<td>Year to date.</td>\n</tr>\n<tr>\n<td><code>NIC, TAX, TAXABLE_PAY, P11_NICERS, P11_PENERS, P11_CUM_PENERS, EMP_PAY_PER_NETPAY</code></td>\n<td>decimal</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>PayslipMessage</code></td>\n<td>string</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>HOLIDAY_ACCRUED, HOLIDAY_TAKEN, HOLIDAY_BALANCE, HOLIDAY_BALANCE_£, AVE_PAY_RATE</code></td>\n<td>decimal</td>\n<td>No</td>\n<td>Default 0. Note the £ sign in the field name.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pspid_*</code></td>\n<td></td>\n<td>The stored line values; prep_id is the payslip record they belong to. syt_id is also returned.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Payslips (system setting; ask your account manager)</strong>: Switches payslips on in your system's screens. The API services work whether or not it is on.</li>\n<li><strong>Date format (system setting; ask your account manager)</strong>: With US date format, dates in these services are mm/dd/yyyy instead of dd/mm/yyyy.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The EMP_CODE cannot be blank.</code></li>\n<li><code>The WEEK_ENDING_DATE cannot be blank.</code></li>\n<li><code>The PAY_DATE cannot be blank.</code></li>\n<li><code>The EMP_TAX_CODE cannot be blank.</code></li>\n<li><code>The EMP_CODE [&lt;code&gt;] doesn't exist or is not unique in this Tenant.</code></li>\n<li><code>ERRV1: Could not find the existing year week end [WEEK_ENDING_DATE] &lt;date&gt;</code></li>\n<li><code>ERRV2: No PAYE Payslip record match for EMP_CODE &lt;code&gt; and WEEK_ENDING_DATE &lt;date&gt;</code></li>\n<li><code>A record already exists. To Update, use the 'Update Payslip' endpoint</code></li>\n<li><code>There has been an issue adding this payslip data.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"0be728e6-7793-4727-a0f5-9ae4bab7297d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addPayslip\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"PAY_DATE\": \"10/04/2026\",\n            \"EMP_TAX_CODE\": \"1257L\",\n            \"Period\": 1,\n            \"Year\": \"2026\",\n            \"HIST_PAYCODE\": \"Basic\",\n            \"HIST_GROSS\": 540.0,\n            \"PAY_FREQUENCY\": \"Weekly\",\n            \"TAX\": 52.4,\n            \"NIC\": 32.4,\n            \"EMP_PAY_PER_NETPAY\": 455.2,\n            \"HOLIDAY_ACCRUED\": 1.25\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addPayslip\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": {\n        \"1\": {\n            \"syt_id\": 1,\n            \"prep_id\": 880,\n            \"pspid_emp_code\": \"E1001\",\n            \"pspid_week_ending_date\": \"2026-04-03\",\n            \"pspid_emp_tax_code\": \"1257L\",\n            \"pspid_hist_code\": \"Basic\",\n            \"pspid_hist_gross\": 540.0,\n            \"pspid_pay_period\": 1,\n            \"pspid_pay_date\": \"2026-04-10\",\n            \"pspid_pay_frequency\": \"Weekly\",\n            \"pspid_tax\": 52.4,\n            \"pspid_nic\": 32.4,\n            \"pspid_emp_pay_per_netpay\": 455.2,\n            \"pspid_holiday_accrued\": 1.25\n        }\n    }\n}"}],"_postman_id":"d87e928f-e6b3-47cb-a5a0-d6b9013cfd7c"},{"name":"Update Payslip","id":"3865f85d-1bf9-4d27-9d3b-22001ce414b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updatePayslip\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"PAY_DATE\": \"10/04/2026\",\n            \"EMP_TAX_CODE\": \"1257L\",\n            \"Period\": 1,\n            \"HIST_PAYCODE\": \"Basic\",\n            \"HIST_GROSS\": 560.0\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates imported PAYE payslip lines. The body and rules are as for Add Payslip, but the line (EMP_CODE, WEEK_ENDING_DATE, Period and HIST_PAYCODE) and its payslip record must already exist. The whole line is rewritten from the request, so send every value you want to keep. The response body is an object keyed '1', '2' and so on.</p>\n<p><strong>Service:</strong> <code>updatePayslip</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Add Payslip)</code></td>\n<td></td>\n<td>No</td>\n<td>EMP_CODE, WEEK_ENDING_DATE, PAY_DATE, EMP_TAX_CODE required.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pspid_*</code></td>\n<td></td>\n<td>As Add Payslip.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Date format (system setting; ask your account manager)</strong>: With US date format, dates in these services are mm/dd/yyyy instead of dd/mm/yyyy.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The EMP_CODE [&lt;code&gt;] doesn't exist or is not unique in this Tenant.</code></li>\n<li><code>ERRV2: No PAYE Payslip record match for EMP_CODE &lt;code&gt; and WEEK_ENDING_DATE &lt;date&gt;</code></li>\n<li><code>No record exists to update. To Add, use the 'Add Payslip' endpoint.</code></li>\n<li><code>There has been an issue adding this payslip data.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"006e5bb3-6fab-4561-ad31-e66b21d41d77","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updatePayslip\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"PAY_DATE\": \"10/04/2026\",\n            \"EMP_TAX_CODE\": \"1257L\",\n            \"Period\": 1,\n            \"HIST_PAYCODE\": \"Basic\",\n            \"HIST_GROSS\": 560.0\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updatePayslip\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": {\n        \"1\": {\n            \"prep_id\": 880,\n            \"pspid_emp_code\": \"E1001\",\n            \"pspid_week_ending_date\": \"2026-04-03\",\n            \"pspid_hist_code\": \"Basic\",\n            \"pspid_hist_gross\": 560.0,\n            \"pspid_pay_period\": 1\n        }\n    }\n}"}],"_postman_id":"3865f85d-1bf9-4d27-9d3b-22001ce414b6"},{"name":"Delete Payslip","id":"ba840c45-ae84-4ed5-9bfd-54f90d17fce3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deletePayslip\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"Period\": 1,\n            \"HIST_PAYCODE\": \"Basic\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes imported PAYE payslip lines for an employee code, week ending date and period. With <code>HIST_PAYCODE</code> only that line is deleted; without it, all lines of that payslip are deleted. The payslip record itself is kept. The response object (keyed '1', '2' and so on) echoes the conditions used.</p>\n<p><strong>Service:</strong> <code>deletePayslip</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>EMP_CODE</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>As stored on the lines.</td>\n</tr>\n<tr>\n<td><code>WEEK_ENDING_DATE</code></td>\n<td>date dd/mm/yyyy</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>Period</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>HIST_PAYCODE</code></td>\n<td>string</td>\n<td>No</td>\n<td>Limit to one line.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>syt_id, pspid_emp_code, pspid_pay_period, pspid_week_ending_date, pspid_hist_code</code></td>\n<td></td>\n<td>The conditions used.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>Date format (system setting; ask your account manager)</strong>: With US date format, dates in these services are mm/dd/yyyy instead of dd/mm/yyyy.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The EMP_CODE cannot be blank.</code></li>\n<li><code>The WEEK_ENDING_DATE cannot be blank.</code></li>\n<li><code>The Period cannot be blank.</code></li>\n<li><code>There is an issue with this HIST_PAYCODE.</code></li>\n<li><code>No Payslips to be deleted have been found</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"9ce9367f-db57-4fca-bb4a-41054e3793ab","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deletePayslip\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"Period\": 1,\n            \"HIST_PAYCODE\": \"Basic\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deletePayslip\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": {\n        \"1\": {\n            \"syt_id\": 1,\n            \"pspid_emp_code\": \"E1001\",\n            \"pspid_pay_period\": 1,\n            \"pspid_week_ending_date\": \"2026-04-03\",\n            \"pspid_hist_code\": \"Basic\"\n        }\n    }\n}"}],"_postman_id":"ba840c45-ae84-4ed5-9bfd-54f90d17fce3"}],"id":"220b904d-c0a7-4a03-b7fb-5711f7cae04b","_postman_id":"220b904d-c0a7-4a03-b7fb-5711f7cae04b","description":""},{"name":"Adjust Pay","item":[{"name":"Fetch Adjust Pay","id":"7ecf2770-f62a-4ccc-9679-997e3bc51a66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAdjustPay\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns the pay adjustments (shown as Adjust Pay in the GP Report) for an employee, week and client, location and location contract. Put the query in the body; the response body is an object keyed '1', '2' and so on (one entry per request row), each holding an array of adjustments.</p>\n<p><code>WEEK_ENDING_DATE</code> can be any date in the week (<code>dd/mm/yyyy</code>, or <code>mm/dd/yyyy</code> if your system uses US dates) and must fall within your system's shift years.</p>\n<p><strong>Service:</strong> <code>fetchAdjustPay</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>EMP_CODE</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Employee number or pay-scheme override number; must match exactly one employee.</td>\n</tr>\n<tr>\n<td><code>WEEK_ENDING_DATE</code></td>\n<td>date dd/mm/yyyy</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Client.</td>\n</tr>\n<tr>\n<td><code>sbcl_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Location.</td>\n</tr>\n<tr>\n<td><code>sbclc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Location contract (cannot be 0).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pre_name, sbc_name, sbcl_name, sbclc_name, updated_by</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>adjustment fields</code></td>\n<td></td>\n<td>gpa_id, gpa_gpperiod (YYYYWW), sbc_id, sbcl_id, sbclc_id, gpa_type, to_owner_syu_id, to_sbte_id, prex_id, gpa_desc, sbti_id, pre_id, prps_id, gpa_prps_default, gpa_amount, gpa_updatedby_syu_id, sbapt_id (adjust pay type), gpa_is_overridden, gpa_is_manually_updated, gpa_filename, gpa_updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>GP Report (system setting; ask your account manager)</strong>: Adjust Pay is part of the GP Report in your system's screens. The API services work whether or not it is on.</li>\n<li><strong>Date format (system setting; ask your account manager)</strong>: With US date format, dates in these services are mm/dd/yyyy instead of dd/mm/yyyy.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The EMP_CODE cannot be blank.</code></li>\n<li><code>The WEEK_ENDING_DATE cannot be blank.</code></li>\n<li><code>The sbc_id cannot be blank.</code></li>\n<li><code>The sbcl_id cannot be blank.</code></li>\n<li><code>The sbclc_id cannot be blank.</code></li>\n<li><code>The EMP_CODE [&lt;code&gt;] doesn't exist or is not unique in this Tenant.</code></li>\n<li><code>This sbc_id [&lt;id&gt;] cannot be found.</code></li>\n<li><code>This sbcl_id [&lt;id&gt;] cannot be found.</code></li>\n<li><code>This sbclc_id [&lt;id&gt;] cannot be found.</code></li>\n<li><code>Could not find the existing year week end [WEEK_ENDING_DATE] &lt;date&gt;</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"75f3b1df-8105-4bdd-bc14-d5b6b436e031","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchAdjustPay\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchAdjustPay\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": {\n        \"1\": [\n            {\n                \"pre_name\": \"Alex Example\",\n                \"sbc_name\": \"Example Client Ltd\",\n                \"sbcl_name\": \"North Depot\",\n                \"sbclc_name\": \"Main Contract\",\n                \"updated_by\": \"Sam Sample\",\n                \"gpa_id\": 610,\n                \"gpa_gpperiod\": 202614,\n                \"sbc_id\": 12,\n                \"sbcl_id\": 34,\n                \"sbclc_id\": 5,\n                \"gpa_type\": \"INCREASE-PAY\",\n                \"gpa_desc\": \"Travel bonus\",\n                \"pre_id\": 101,\n                \"prps_id\": 2,\n                \"gpa_prps_default\": \"on\",\n                \"gpa_amount\": \"25.00\",\n                \"gpa_updatedby_syu_id\": 3,\n                \"sbapt_id\": 0,\n                \"gpa_updated\": \"2026-04-02 12:00:00\"\n            }\n        ]\n    }\n}"}],"_postman_id":"7ecf2770-f62a-4ccc-9679-997e3bc51a66"},{"name":"Add Adjust Pay","id":"dd39e144-9400-4981-b83e-717ee9c8dbcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addAdjustPay\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"PAY_SCHEME_NAME\": \"PAYE Weekly\",\n            \"ADJUST_DESCRIPTION\": \"Travel bonus\",\n            \"ADJUST_AMOUNT\": 25.0,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Adds a pay adjustment for an employee in a week, against a client, location and location contract and a pay scheme. Positive amounts increase pay; negative amounts are deductions, which are refused if they would take the week's available shift pay (approved, unbatched timesheets of the same pay scheme type, after fee deductions and other adjustments) below zero. Employees whose Right to Work status is red are refused. If <code>ADJUST_DESCRIPTION</code> matches an Adjust Pay Type label, the adjustment is linked to that type.</p>\n<p>Adding twice for the same employee, week and contract creates two adjustments. All rows are saved together: if one row fails, none is saved. The response object (keyed '1', '2' and so on) echoes each request row plus the new <code>gpa_id</code>.</p>\n<p><strong>Service:</strong> <code>addAdjustPay</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>EMP_CODE</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Employee number or pay-scheme override number; must match exactly one employee.</td>\n</tr>\n<tr>\n<td><code>WEEK_ENDING_DATE</code></td>\n<td>date dd/mm/yyyy</td>\n<td>Yes</td>\n<td>Any date in the week (dd/mm/yyyy).</td>\n</tr>\n<tr>\n<td><code>PAY_SCHEME_NAME</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Name of an active pay scheme.</td>\n</tr>\n<tr>\n<td><code>ADJUST_DESCRIPTION</code></td>\n<td>string(60)</td>\n<td>Yes</td>\n<td>Up to 60 characters.</td>\n</tr>\n<tr>\n<td><code>ADJUST_AMOUNT</code></td>\n<td>decimal(7,2)</td>\n<td>Yes</td>\n<td>Not 0; a negative amount is a deduction.</td>\n</tr>\n<tr>\n<td><code>sbc_id, sbcl_id, sbclc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>Each must exist.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>&lt;request fields&gt;</code></td>\n<td></td>\n<td>Echoed, with WEEK_ENDING_DATE as YYYY-MM-DD.</td>\n</tr>\n<tr>\n<td><code>gpa_id</code></td>\n<td>string</td>\n<td>New adjustment id (a string).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>GP Report (system setting; ask your account manager)</strong>: Adjust Pay is part of the GP Report in your system's screens. The API services work whether or not it is on.</li>\n<li><strong>Date format (system setting; ask your account manager)</strong>: With US date format, dates in these services are mm/dd/yyyy instead of dd/mm/yyyy.</li>\n<li><strong>Terminology Overrides (Configuration)</strong>: Change the wording of some error messages, for example Candidate for employee.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The PAY_SCHEME_NAME cannot be blank.</code></li>\n<li><code>The ADJUST_DESCRIPTION cannot be blank.</code></li>\n<li><code>The EMP_CODE [&lt;code&gt;] doesn't exist or is not unique in this Tenant.</code></li>\n<li><code>The ADJUST_AMOUNT [&lt;amount&gt;] cannot be 0.</code></li>\n<li><code>This Pay Scheme [&lt;name&gt;] does not apply to this Candidate.</code></li>\n<li><code>This ADJUST_DESCRIPTION [&lt;text&gt;] cannot be more than 60 characters.</code></li>\n<li><code>This sbc_id [&lt;id&gt;] cannot be found.</code></li>\n<li><code>Could not find the existing year week end [WEEK_ENDING_DATE] &lt;date&gt;</code></li>\n<li><code>The Candidate's Right to Work is not valid</code></li>\n<li><code>Total Adjustments (&lt;amount&gt;) and Fee Deductions (&lt;amount&gt;) cannot exceed available Shift Pay (&lt;amount&gt;)</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"f1f12978-98ad-4c5d-b50b-3b771a94f601","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"addAdjustPay\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"PAY_SCHEME_NAME\": \"PAYE Weekly\",\n            \"ADJUST_DESCRIPTION\": \"Travel bonus\",\n            \"ADJUST_AMOUNT\": 25.0,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"addAdjustPay\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": {\n        \"1\": {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"2026-04-03\",\n            \"PAY_SCHEME_NAME\": \"PAYE Weekly\",\n            \"ADJUST_DESCRIPTION\": \"Travel bonus\",\n            \"ADJUST_AMOUNT\": \"25\",\n            \"sbc_id\": \"12\",\n            \"sbcl_id\": \"34\",\n            \"sbclc_id\": \"5\",\n            \"gpa_id\": \"610\"\n        }\n    }\n}"}],"_postman_id":"dd39e144-9400-4981-b83e-717ee9c8dbcf"},{"name":"Update Adjust Pay","id":"db5a58ba-4b11-4b23-9b71-11b24a5a256b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateAdjustPay\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"PAY_SCHEME_NAME\": \"PAYE Weekly\",\n            \"ADJUST_DESCRIPTION\": \"Travel bonus\",\n            \"ADJUST_AMOUNT\": 30.0,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Updates the amount, description and pay scheme of an existing pay adjustment, found by EMP_CODE, week, <code>sbc_id</code>, <code>sbcl_id</code> and <code>sbclc_id</code>. The body and checks are as for Add Adjust Pay. If several adjustments match, only the first one found is updated.</p>\n<p><strong>Service:</strong> <code>updateAdjustPay</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>(as Add Adjust Pay)</code></td>\n<td></td>\n<td>Yes</td>\n<td>As Add Adjust Pay.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>&lt;request fields&gt; + gpa_id</code></td>\n<td></td>\n<td>Echoed request fields and the adjustment id.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>GP Report (system setting; ask your account manager)</strong>: Adjust Pay is part of the GP Report in your system's screens. The API services work whether or not it is on.</li>\n<li><strong>Date format (system setting; ask your account manager)</strong>: With US date format, dates in these services are mm/dd/yyyy instead of dd/mm/yyyy.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>A pay adjustment does not exist, please use the 'addAdjustPay' endpoint.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"e115da2c-864a-429d-9ad1-110271633d3c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"updateAdjustPay\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"PAY_SCHEME_NAME\": \"PAYE Weekly\",\n            \"ADJUST_DESCRIPTION\": \"Travel bonus\",\n            \"ADJUST_AMOUNT\": 30.0,\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"updateAdjustPay\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": {\n        \"1\": {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"2026-04-03\",\n            \"ADJUST_AMOUNT\": \"30\",\n            \"gpa_id\": 610\n        }\n    }\n}"}],"_postman_id":"db5a58ba-4b11-4b23-9b71-11b24a5a256b"},{"name":"Delete Adjust Pay","id":"9f710454-09ce-4d6a-a667-54f2f370b5e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteAdjustPay\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes a pay adjustment permanently, found by EMP_CODE, week, <code>sbc_id</code>, <code>sbcl_id</code> and <code>sbclc_id</code> (the first one found if several match). The response object echoes each request row plus <code>deleted_adjustment_id</code>.</p>\n<p><strong>Service:</strong> <code>deleteAdjustPay</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>EMP_CODE</code></td>\n<td>string</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>WEEK_ENDING_DATE</code></td>\n<td>date dd/mm/yyyy</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sbc_id, sbcl_id, sbclc_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>deleted_adjustment_id</code></td>\n<td>int</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"configuration-that-affects-this-service\">Configuration that affects this service</h4>\n<ul>\n<li><strong>GP Report (system setting; ask your account manager)</strong>: Adjust Pay is part of the GP Report in your system's screens. The API services work whether or not it is on.</li>\n<li><strong>Date format (system setting; ask your account manager)</strong>: With US date format, dates in these services are mm/dd/yyyy instead of dd/mm/yyyy.</li>\n</ul>\n<h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The EMP_CODE [&lt;code&gt;] doesn't exist or is not unique in this Tenant.</code></li>\n<li><code>No existing adjustment can be found.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"eb5005bb-198f-41c0-8f14-90d1a7c92ab9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"deleteAdjustPay\"\n    },\n    \"body\": [\n        {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"03/04/2026\",\n            \"sbc_id\": 12,\n            \"sbcl_id\": 34,\n            \"sbclc_id\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"deleteAdjustPay\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": {\n        \"1\": {\n            \"EMP_CODE\": \"E1001\",\n            \"WEEK_ENDING_DATE\": \"2026-04-03\",\n            \"sbc_id\": \"12\",\n            \"sbcl_id\": \"34\",\n            \"sbclc_id\": \"5\",\n            \"deleted_adjustment_id\": 610\n        }\n    }\n}"}],"_postman_id":"9f710454-09ce-4d6a-a667-54f2f370b5e7"}],"id":"f17cbb16-8f6d-4744-8917-dda3cbd0f9a7","_postman_id":"f17cbb16-8f6d-4744-8917-dda3cbd0f9a7","description":""}],"id":"de130010-a8fd-4cf2-8da1-95a9df56b87f","description":"<p>Add, Update and Delete Payslip import PAYE payslip lines from your payroll software; Fetch Payslips and Fetch All Week Payslips return the payslip records. The Adjust Pay services manage pay adjustments, shown as Adjust Pay in the GP Report. These services find the employee by <code>EMP_CODE</code> (employee number) and take dates as dd/mm/yyyy (mm/dd/yyyy if your system uses US dates). Write services return the body as an object keyed '1', '2' and so on, one entry per request row.</p>\n","_postman_id":"de130010-a8fd-4cf2-8da1-95a9df56b87f"},{"name":"Webhooks","item":[{"name":"Subscribe to Webhook","id":"814cd0b1-603e-44fa-8d80-cc0c6e70a1a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"subscribeToWebhook\"\n    },\n    \"body\": [\n        {\n            \"url\": \"https://hooks.example.com/hooks/catch/123/abc/\",\n            \"event\": \"Candidate Created\",\n            \"subscriber\": \"Zapier\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Subscribes a URL to a webhook event. When the event happens, your system sends an HTTP POST to the URL with a JSON body (<code>Content-Type: application/json</code>), usually within a minute or two. The body is the event's payload only: it does not name the event, so use a separate URL for each event you subscribe to. If your URL does not answer with a 2xx status, the webhook is tried again, up to three times. Events are only recorded while you have at least one subscription.</p>\n<p>Each body row adds one subscription. <code>subscriber</code> must be <code>Zapier</code>, the only subscriber type at present. All rows are checked before anything is saved; if any row fails, nothing is saved. Subscribing the same URL to the same event twice creates two subscriptions. The response holds the id of the last subscription added, so send one row per request if you need each id. Validation errors are returned with HTTP status 400 and nothing is saved; a successful add returns HTTP status 201.</p>\n<h3 id=\"events\">Events</h3>\n<p>Event names are exact and case-sensitive. \"Candidate\" is the word your system's screens use for an employee.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Event</th>\n<th>Payload</th>\n<th>Sent when</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Candidate Created</td>\n<td>candidate</td>\n<td>A candidate is added.</td>\n</tr>\n<tr>\n<td>Candidate Updated</td>\n<td>candidate</td>\n<td>A candidate is changed.</td>\n</tr>\n<tr>\n<td>Candidate Deleted</td>\n<td>deleted (<code>pre_id</code>)</td>\n<td>A candidate is deleted.</td>\n</tr>\n<tr>\n<td>Candidate Note Created</td>\n<td>note</td>\n<td>A note is added to a candidate.</td>\n</tr>\n<tr>\n<td>Candidate Call Created</td>\n<td>note</td>\n<td>A call is logged against a candidate.</td>\n</tr>\n<tr>\n<td>Candidate Reminder Created</td>\n<td>note</td>\n<td>A reminder or other activity entry is added to a candidate.</td>\n</tr>\n<tr>\n<td>Candidate SMS Sent</td>\n<td>message</td>\n<td>A text message is sent to a candidate.</td>\n</tr>\n<tr>\n<td>Candidate App Message Received</td>\n<td>message</td>\n<td>A candidate sends a message from the app.</td>\n</tr>\n<tr>\n<td>Candidate Email Sent</td>\n<td>email</td>\n<td>An email is sent to a candidate.</td>\n</tr>\n<tr>\n<td>Candidate Availability Changed</td>\n<td>availability</td>\n<td>A candidate's availability for a week is added or changed.</td>\n</tr>\n<tr>\n<td>Candidate Document Uploaded</td>\n<td>document</td>\n<td>A document is added to a candidate's document library.</td>\n</tr>\n<tr>\n<td>Candidate Compliance Document Received</td>\n<td>document</td>\n<td>A candidate uploads a requested compliance document in the app.</td>\n</tr>\n<tr>\n<td>Candidate Compliance Check Created</td>\n<td>compliance_check</td>\n<td>A compliance check is added.</td>\n</tr>\n<tr>\n<td>Candidate Compliance Check Updated</td>\n<td>compliance_check</td>\n<td>A compliance check is changed.</td>\n</tr>\n<tr>\n<td>Candidate Compliance Check Deleted</td>\n<td>deleted (<code>coedic_id</code>)</td>\n<td>A compliance check is deleted.</td>\n</tr>\n<tr>\n<td>Candidate Compliance Check Expiring</td>\n<td>compliance_expiry</td>\n<td>Daily: a compliance check expires in exactly 7 days.</td>\n</tr>\n<tr>\n<td>Candidate Compliance Check Expired</td>\n<td>compliance_expiry</td>\n<td>Daily: a compliance check expired yesterday.</td>\n</tr>\n<tr>\n<td>Candidate Flagged Should Not Be Booked</td>\n<td>compliance_status</td>\n<td>Daily, while a candidate is missing a compliance item that means they should not be booked.</td>\n</tr>\n<tr>\n<td>Candidate Flagged Should Not Have Bookable Status</td>\n<td>compliance_status</td>\n<td>Daily, while a candidate is missing a compliance item needed for a bookable status.</td>\n</tr>\n<tr>\n<td>Candidate Compliance Check Required For Client</td>\n<td>compliance_status</td>\n<td>Daily, while a candidate is missing a compliance item a client requires.</td>\n</tr>\n<tr>\n<td>Candidate Confirmed Shift</td>\n<td>shift_confirmation</td>\n<td>A candidate confirms or unconfirms a shift in the app.</td>\n</tr>\n<tr>\n<td>Candidate Sent Shifts for Approval</td>\n<td>timesheet_approval</td>\n<td>A candidate sends timesheets for approval in the app.</td>\n</tr>\n<tr>\n<td>Client Created</td>\n<td>client</td>\n<td>A client is added.</td>\n</tr>\n<tr>\n<td>Client Updated</td>\n<td>client</td>\n<td>A client is changed.</td>\n</tr>\n<tr>\n<td>Client Deleted</td>\n<td>deleted (<code>sbc_id</code>)</td>\n<td>A client is deleted.</td>\n</tr>\n<tr>\n<td>Client Note Created</td>\n<td>note</td>\n<td>A note is added to a client.</td>\n</tr>\n<tr>\n<td>Client Call Created</td>\n<td>note</td>\n<td>A call is logged against a client.</td>\n</tr>\n<tr>\n<td>Client Reminder Created</td>\n<td>note</td>\n<td>A reminder or other activity entry is added to a client.</td>\n</tr>\n<tr>\n<td>Location Created</td>\n<td>location</td>\n<td>A location is added.</td>\n</tr>\n<tr>\n<td>Location Updated</td>\n<td>location</td>\n<td>A location is changed.</td>\n</tr>\n<tr>\n<td>Location Deleted</td>\n<td>deleted (<code>sbcl_id</code>)</td>\n<td>A location is deleted.</td>\n</tr>\n<tr>\n<td>Sub-Location Created</td>\n<td>sublocation</td>\n<td>A sub-location is added.</td>\n</tr>\n<tr>\n<td>Sub-Location Updated</td>\n<td>sublocation</td>\n<td>A sub-location is changed.</td>\n</tr>\n<tr>\n<td>Sub-Location Deleted</td>\n<td>deleted (<code>sbcsl_id</code>)</td>\n<td>A sub-location is deleted.</td>\n</tr>\n<tr>\n<td>Contract Created</td>\n<td>contract</td>\n<td>A location contract is added.</td>\n</tr>\n<tr>\n<td>Contract Updated</td>\n<td>contract</td>\n<td>A location contract is changed.</td>\n</tr>\n<tr>\n<td>Contract Deleted</td>\n<td>deleted (<code>sbclc_id</code>)</td>\n<td>A location contract is deleted.</td>\n</tr>\n<tr>\n<td>Contact Created</td>\n<td>contact</td>\n<td>A client contact is added.</td>\n</tr>\n<tr>\n<td>Contact Updated</td>\n<td>contact</td>\n<td>A client contact is changed.</td>\n</tr>\n<tr>\n<td>Contact Deleted</td>\n<td>deleted (<code>sbau_id</code>)</td>\n<td>A client contact is deleted.</td>\n</tr>\n<tr>\n<td>Shift Cancelled</td>\n<td>shift_cancellation</td>\n<td>A day of a shift is cancelled in the Booking Sheet (one webhook per cancelled day).</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"payloads\">Payloads</h3>\n<p>Each webhook body is one JSON object. Its shape depends on the event's payload type:</p>\n<ul>\n<li><strong>candidate</strong>: the candidate's fields (<code>pre_id</code>, names, contact details, address, <code>pre_dob</code>, <code>pre_ninumber</code>, <code>pre_pin</code>, status and other ids), an <code>FKData</code> object with the names of linked records, and <code>duties</code>, <code>skills</code> and <code>levels</code> arrays. <code>pre_created</code> and <code>pre_updated</code> are ISO 8601 date-times.</li>\n<li><strong>deleted</strong>: only the id of the deleted record, for example <code>{\"pre_id\": 101}</code>. The id field is shown in the events table.</li>\n<li><strong>note</strong>: <code>prn_id</code>, <code>pre_id</code> (candidate events) or <code>sbc_id</code> (client events), <code>prn_text</code>, <code>prn_date</code>, <code>prn_time</code>, <code>prn_created</code> (ISO 8601).</li>\n<li><strong>message</strong>: <code>prm_id</code>, <code>prm_msg</code>, <code>prm_created</code> (ISO 8601), <code>to_pre_id</code>.</li>\n<li><strong>email</strong>: <code>{\"email\": {pr_email_id, pr_email_to_pre_id, pr_email_to_email, pr_email_cc, pr_email_bcc, pr_email_subject, pr_email_msg (HTML), pr_email_created}, \"attachments\": [{file_name, file_base64}]}</code>.</li>\n<li><strong>availability</strong>: <code>year</code>, <code>week</code>, <code>pre_id</code>, <code>updated_at</code>, <code>updated_by</code> (<code>Candidate</code> or <code>Resourcer</code>) and <code>availability</code>: seven entries (<code>day</code> 1 to 7) with <code>availability_status_ids</code>, <code>availability_statuses</code>, <code>unavailability_reason_id</code>, <code>unavailability_reason</code> and <code>overall_status</code> (<code>Available</code>, <code>Not Available</code>, <code>Pending Availability</code> or <code>None</code>).</li>\n<li><strong>document</strong>: <code>coed_id</code>, <code>pre_id</code>, <code>coed_name</code>, <code>coed_uploaded_on</code>, <code>coed_file_base64</code> (the whole file as a data URI).</li>\n<li><strong>compliance_check</strong>: <code>coedic_id</code>, <code>coed_id</code>, <code>coi_id</code>, <code>coi_name</code>, <code>coedic_expiry</code>, <code>coedic_number</code>, <code>coedic_issue_date</code>, <code>coedic_archived</code>.</li>\n<li><strong>compliance_expiry</strong>: <code>coedic_id</code>, <code>pre_id</code>, <code>coedic_issue_date</code> (or null), <code>coedic_expiry</code>, <code>coi_id</code>, <code>coi_name</code>.</li>\n<li><strong>compliance_status</strong>: <code>{\"compliance_data\": {pre_id, missing_required_compliance_items, missing_critical_compliance_items}}</code>. In live webhooks each <code>missing_*</code> value is an object keyed by compliance item id (<code>coi_id</code>), or an empty array when nothing is missing. In sample data they are lists of <code>{coi_id, coi_name}</code>.</li>\n<li><strong>shift_confirmation</strong>: <code>sbti_id</code>, <code>sbt_id</code>, <code>sbti_candidate_confirmed</code> (true or false).</li>\n<li><strong>timesheet_approval</strong>: <code>sbti_ids</code> (array of timesheet ids), <code>pre_id</code>, <code>sbau_email</code>.</li>\n<li><strong>client</strong>: the client's fields (as Fetch Clients with <code>datalevel: verbose</code>) plus <code>sbc_owner_syu_id</code>, <code>sbte_id</code> and an <code>FKData</code> object (<code>sbs_desc</code>, <code>syr_name</code>, <code>sbdi_name</code>, <code>sbte_name</code>, <code>sbc_director_name</code>, <code>sbc_manager_name</code>, <code>sbc_owner_name</code>). Dates are ISO 8601.</li>\n<li><strong>location</strong>: the location's fields (as Fetch Locations, verbose), <code>sbcl_longlat</code> as <code>\"lat,long\"</code>, and <code>FKData</code> (<code>sbc_name</code>, <code>sbs_desc</code>).</li>\n<li><strong>sublocation</strong>: the sub-location's fields and <code>FKData</code> (<code>sbc_id</code>, <code>sbc_name</code>, <code>sbcl_id</code>, <code>sbcl_name</code>).</li>\n<li><strong>contract</strong>: the location contract's fields and <code>FKData</code> (<code>sbc_id</code>, <code>sbc_name</code>, <code>sbcl_name</code>, <code>sbs_desc</code>, <code>sbdi_name</code>, <code>sbte_name</code>, <code>sbc_director_name</code>, <code>sbc_manager_name</code>, <code>sbc_owner_name</code>).</li>\n<li><strong>contact</strong>: <code>sbau_id</code>, <code>sbau_name</code>, <code>sbau_position</code>, <code>sbau_title</code>, <code>sbau_email</code>, <code>sbau_phone</code>, <code>sbau_phone2</code>, <code>sbau_linkedin</code>, <code>sbau_active</code>, <code>sbau_status_taggable</code>, <code>sbc_id</code>, <code>sbc_name</code>, <code>sbcl_id</code>, <code>sbcl_name</code>, <code>sbcsl_id</code>, <code>sbcsl_name</code>.</li>\n<li><strong>shift_cancellation</strong>: <code>sbt_id</code>, <code>sbt_year</code>, <code>sbt_week</code>, <code>sbt_day</code>, <code>sbsca_reason</code>.</li>\n</ul>\n<h3 id=\"example\">Example</h3>\n<p>The body sent to your URL for <strong>Client Note Created</strong> (made-up values):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"prn_id\": 9051,\n    \"sbc_id\": 41,\n    \"prn_text\": \"Agreed new start times with the site manager.\",\n    \"prn_date\": \"2026-03-04\",\n    \"prn_time\": \"10:30:00\",\n    \"prn_created\": \"2026-03-04T10:31:12+00:00\"\n}\n</code></pre>\n<p><strong>Service:</strong> <code>subscribeToWebhook</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>url</code></td>\n<td>string (max 255)</td>\n<td>Yes</td>\n<td>Where the webhook is POSTed. Up to 255 characters.</td>\n</tr>\n<tr>\n<td><code>event</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>One of the 41 event names listed above (exact match).</td>\n</tr>\n<tr>\n<td><code>subscriber</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Must be Zapier.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>subscription_id</code></td>\n<td>string (numeric)</td>\n<td>Id of the new subscription (a string). When several rows are sent, the id of the last one. Keep it to unsubscribe.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The url field is required.</code></li>\n<li><code>The event field is required.</code></li>\n<li><code>The subscriber field is required.</code></li>\n<li><code>Event name \"&lt;event&gt;\" is not valid.</code></li>\n<li><code>Subscriber name \"&lt;subscriber&gt;\" is not valid.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"93e4d959-d934-4080-aaca-cbf727d39fa5","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"subscribeToWebhook\"\n    },\n    \"body\": [\n        {\n            \"url\": \"https://hooks.example.com/hooks/catch/123/abc/\",\n            \"event\": \"Candidate Created\",\n            \"subscriber\": \"Zapier\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"subscribeToWebhook\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": {\n        \"subscription_id\": \"12\"\n    }\n}"}],"_postman_id":"814cd0b1-603e-44fa-8d80-cc0c6e70a1a9"},{"name":"Unsubscribe from Webhook","id":"7fce1f90-1f4a-4ad1-8491-5f3c2fe11f2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"unsubscribeFromWebhook\"\n    },\n    \"body\": [\n        {\n            \"subscription_id\": 12\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Deletes one or more webhook subscriptions by <code>subscription_id</code>. Each id must be one of your subscriptions; if any id is not found, nothing is deleted. Webhooks already waiting to be sent for a deleted subscription are not sent.</p>\n<p>Returns an empty body. Validation errors are returned with HTTP status 400 and nothing is saved; a successful request returns HTTP status 200.</p>\n<p><strong>Service:</strong> <code>unsubscribeFromWebhook</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>subscription_id</code></td>\n<td>int</td>\n<td>Yes</td>\n<td>The id returned by Subscribe to Webhook.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The subscription_id field is required.</code></li>\n<li><code>Subscription record with ID &lt;subscription_id&gt; does not exist.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"df46397e-e2b8-4865-b020-700c114d4e4f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"unsubscribeFromWebhook\"\n    },\n    \"body\": [\n        {\n            \"subscription_id\": 12\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"unsubscribeFromWebhook\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}"}],"_postman_id":"7fce1f90-1f4a-4ad1-8491-5f3c2fe11f2f"},{"name":"Get Sample Webhook Data","id":"8cb453d8-768e-4258-8800-a92b09f131e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"getSampleWebhookData\"\n    },\n    \"body\": [\n        {\n            \"event\": \"Candidate Created\"\n        },\n        {\n            \"event\": \"Candidate Deleted\"\n        },\n        {\n            \"event\": \"Candidate Note Created\"\n        },\n        {\n            \"event\": \"Candidate SMS Sent\"\n        },\n        {\n            \"event\": \"Candidate Email Sent\"\n        },\n        {\n            \"event\": \"Candidate Availability Changed\"\n        },\n        {\n            \"event\": \"Candidate Document Uploaded\"\n        },\n        {\n            \"event\": \"Candidate Compliance Check Created\"\n        },\n        {\n            \"event\": \"Candidate Compliance Check Expiring\"\n        },\n        {\n            \"event\": \"Candidate Flagged Should Not Be Booked\"\n        },\n        {\n            \"event\": \"Candidate Confirmed Shift\"\n        },\n        {\n            \"event\": \"Candidate Sent Shifts for Approval\"\n        },\n        {\n            \"event\": \"Client Created\"\n        },\n        {\n            \"event\": \"Location Created\"\n        },\n        {\n            \"event\": \"Sub-Location Created\"\n        },\n        {\n            \"event\": \"Contract Created\"\n        },\n        {\n            \"event\": \"Contact Created\"\n        },\n        {\n            \"event\": \"Shift Cancelled\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api","description":"<p>Returns one sample payload for each event you list, in the order sent, so you can see the fields before you subscribe (for example to map fields in Zapier). Each sample has the same shape as the live webhook body; see Subscribe to Webhook for the payload types.</p>\n<p>Samples are built from your latest matching record, for example your most recently added candidate or the latest uploaded document (with its file). Some events need at least one matching record: for example a cancelled shift for Shift Cancelled, or a compliance check expiring in the next 30 days for Candidate Compliance Check Expiring. Without one, the sample is empty or the request does not return a sample; add a record of that kind first.</p>\n<p>In samples for the compliance status events, <code>missing_required_compliance_items</code> and <code>missing_critical_compliance_items</code> are lists of <code>{coi_id, coi_name}</code>; in live webhooks they are objects keyed by <code>coi_id</code>.</p>\n<p>The example asks for one event of each payload type. Validation errors are returned with HTTP status 400 and nothing is saved; a successful request returns HTTP status 200.</p>\n<p><strong>Service:</strong> <code>getSampleWebhookData</code></p>\n<h4 id=\"body-fields\">Body fields</h4>\n<p> The <code>body</code> is an array of row objects; each row takes these fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>event</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>One of the event names listed under Subscribe to Webhook.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-fields\">Response fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>[n]</code></td>\n<td>object</td>\n<td>Sample payload for the n-th requested event, in the same shape as the live webhook body.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"errors-you-may-see\">Errors you may see</h4>\n<ul>\n<li><code>The event field is required.</code></li>\n<li><code>Event name \"&lt;event&gt;\" is not valid.</code></li>\n</ul>\n","urlObject":{"path":["api"],"host":["https://your-tenant.example.com"],"query":[],"variable":[]}},"response":[{"id":"2ed350a6-5c8d-43bc-a6a0-eebb3885154d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"getSampleWebhookData\"\n    },\n    \"body\": [\n        {\n            \"event\": \"Candidate Created\"\n        },\n        {\n            \"event\": \"Candidate Deleted\"\n        },\n        {\n            \"event\": \"Candidate Note Created\"\n        },\n        {\n            \"event\": \"Candidate SMS Sent\"\n        },\n        {\n            \"event\": \"Candidate Email Sent\"\n        },\n        {\n            \"event\": \"Candidate Availability Changed\"\n        },\n        {\n            \"event\": \"Candidate Document Uploaded\"\n        },\n        {\n            \"event\": \"Candidate Compliance Check Created\"\n        },\n        {\n            \"event\": \"Candidate Compliance Check Expiring\"\n        },\n        {\n            \"event\": \"Candidate Flagged Should Not Be Booked\"\n        },\n        {\n            \"event\": \"Candidate Confirmed Shift\"\n        },\n        {\n            \"event\": \"Candidate Sent Shifts for Approval\"\n        },\n        {\n            \"event\": \"Client Created\"\n        },\n        {\n            \"event\": \"Location Created\"\n        },\n        {\n            \"event\": \"Sub-Location Created\"\n        },\n        {\n            \"event\": \"Contract Created\"\n        },\n        {\n            \"event\": \"Contact Created\"\n        },\n        {\n            \"event\": \"Shift Cancelled\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-tenant.example.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"getSampleWebhookData\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": [\n        {\n            \"pre_id\": 101,\n            \"sbag_id\": 1,\n            \"pre_empno\": \"C0101\",\n            \"pre_first_name\": \"Alex\",\n            \"pre_middle_name\": \"\",\n            \"pre_last_name\": \"Example\",\n            \"pre_email\": \"alex.example@example.com\",\n            \"pre_email_work\": \"\",\n            \"pre_email_restrictions\": \"off\",\n            \"pre_dob\": \"1990-04-01\",\n            \"pre_ninumber\": \"QQ123456C\",\n            \"pre_utr\": \"\",\n            \"pre_adaptref\": \"\",\n            \"pre_compliance\": \"on\",\n            \"pre_sentinel\": \"\",\n            \"pre_phone\": \"07700 900101\",\n            \"pre_phone_secondary\": \"\",\n            \"pre_ap_id\": 0,\n            \"pre_address1\": \"1 Sample Street\",\n            \"pre_address2\": \"\",\n            \"pre_town\": \"Exampleton\",\n            \"pre_county\": \"Sampleshire\",\n            \"pre_countrycode\": \"GB\",\n            \"pre_pcode\": \"AB1 2CD\",\n            \"pre_longlat\": \"51.500000,-0.100000\",\n            \"pre_location\": \"\",\n            \"pre_phone_home\": \"\",\n            \"pre_phone_2\": \"\",\n            \"pre_extref\": \"\",\n            \"pre_level\": \"\",\n            \"pre_level_name\": null,\n            \"pre_pin\": \"0000\",\n            \"pre_ispayslips\": \"on\",\n            \"pre_isqse\": \"off\",\n            \"pre_timesheet_emails_enabled\": \"on\",\n            \"sbpt_id\": 2,\n            \"prst_id\": 3,\n            \"pre_notes\": \"\",\n            \"pre_created\": \"2026-03-02T09:15:00+00:00\",\n            \"pre_updated\": \"2026-03-02T09:20:00+00:00\",\n            \"pre_updatedby_syu_id\": 5,\n            \"pre_legacyid\": \"\",\n            \"sbdi_id\": 1,\n            \"sbbr_id\": 4,\n            \"sbte_id\": 2,\n            \"pre_total_shift_count\": 0,\n            \"pre_first_shift_date\": null,\n            \"pre_last_shift_date\": null,\n            \"pre_travel_range\": 25,\n            \"preg_id\": 1,\n            \"pre_preferred_hospital\": 0,\n            \"pre_createdby_syu_id\": 5,\n            \"pre_owner_syu_id\": 5,\n            \"prps_id\": 1,\n            \"sbau_id\": 0,\n            \"prc_id\": 1,\n            \"pre_allowaddshifts\": \"off\",\n            \"pre_alloweditshifts\": \"off\",\n            \"pre_timesheet_prd_id\": 0,\n            \"pre_timesheet_sbc_id\": 0,\n            \"pre_timesheet_sbcl_id\": 0,\n            \"pre_timesheet_sbclc_id\": 0,\n            \"pre_timesheet_sbcsl_id\": 0,\n            \"prf_id\": 1,\n            \"prc_minhourswk\": 0,\n            \"ext_id\": \"EXT-101\",\n            \"prso_id\": 2,\n            \"pre_linkedin_url\": \"\",\n            \"pre_manager_syu_id\": 6,\n            \"pre_director_syu_id\": 7,\n            \"FKData\": {\n                \"sbag_name\": \"Example Staffing\",\n                \"prc_name\": \"Standard\",\n                \"prf_desc\": \"Weekly\",\n                \"sbdi_name\": \"North\",\n                \"prps_name\": \"PAYE\",\n                \"sbte_name\": \"Team A\",\n                \"prst_name\": \"Active\",\n                \"sbpt_desc\": \"PAYE\",\n                \"prg_desc\": \"Prefer not to say\",\n                \"prso_desc\": \"Website\",\n                \"pre_preferred_hospital_name\": null,\n                \"pre_owner_syu_fullname\": \"Sam Sample\",\n                \"pre_updatedby_syu_fullname\": \"Sam Sample\",\n                \"pre_timesheet_prd_desc\": null,\n                \"pre_timesheet_sbc_name\": null,\n                \"pre_timesheet_sbcl_name\": null,\n                \"pre_timesheet_sbclc_name\": null,\n                \"pre_timesheet_sbcsl_name\": null\n            },\n            \"duties\": [\n                {\n                    \"prd_id\": 12,\n                    \"ext_id\": \"\",\n                    \"prd_desc\": \"Registered Nurse\",\n                    \"prd_desc_tenant\": \"\",\n                    \"pred_valid_from\": \"2026-01-01\",\n                    \"pred_valid_to\": \"2026-12-31\",\n                    \"pred_certificate_number\": \"CERT-0001\"\n                }\n            ],\n            \"skills\": [\n                {\n                    \"prsk_id\": 3,\n                    \"prsk_name\": \"Manual Handling\"\n                }\n            ],\n            \"levels\": [\n                {\n                    \"col_id\": 2,\n                    \"col_name\": \"Band 5\",\n                    \"col_desc\": \"Band 5 compliance level\",\n                    \"col_adapt_code\": \"\"\n                }\n            ]\n        },\n        {\n            \"pre_id\": 101\n        },\n        {\n            \"prn_id\": 501,\n            \"pre_id\": 101,\n            \"prn_text\": \"Called to confirm availability for next week.\",\n            \"prn_date\": \"2026-03-02\",\n            \"prn_time\": \"10:30:00\",\n            \"prn_created\": \"2026-03-02T10:30:12+00:00\"\n        },\n        {\n            \"prm_id\": 901,\n            \"prm_msg\": \"Your shift on Monday is confirmed.\",\n            \"prm_created\": \"2026-03-02T11:00:00+00:00\",\n            \"to_pre_id\": 101\n        },\n        {\n            \"email\": {\n                \"pr_email_id\": 301,\n                \"pr_email_to_pre_id\": 101,\n                \"pr_email_to_email\": \"alex.example@example.com\",\n                \"pr_email_cc\": \"\",\n                \"pr_email_bcc\": \"\",\n                \"pr_email_subject\": \"Your shifts next week\",\n                \"pr_email_msg\": \"<p>Hello Alex,</p><p>Please find your shifts attached.</p>\",\n                \"pr_email_created\": \"2026-03-02T12:00:00+00:00\"\n            },\n            \"attachments\": [\n                {\n                    \"file_name\": \"shifts.pdf\",\n                    \"file_base64\": \"data:application/pdf;base64,JVBERi0xLjQK\"\n                }\n            ]\n        },\n        {\n            \"year\": 2026,\n            \"week\": 10,\n            \"pre_id\": \"101\",\n            \"updated_at\": \"2026-03-02T13:00:00+00:00\",\n            \"availability\": [\n                {\n                    \"day\": 1,\n                    \"availability_status_ids\": [\n                        1,\n                        2\n                    ],\n                    \"availability_statuses\": [\n                        \"Days\",\n                        \"Nights\"\n                    ],\n                    \"unavailability_reason_id\": null,\n                    \"unavailability_reason\": null,\n                    \"overall_status\": \"Available\"\n                },\n                {\n                    \"day\": 2,\n                    \"availability_status_ids\": null,\n                    \"availability_statuses\": null,\n                    \"unavailability_reason_id\": 4,\n                    \"unavailability_reason\": \"Holiday\",\n                    \"overall_status\": \"Not Available\"\n                },\n                {\n                    \"day\": 3,\n                    \"availability_status_ids\": null,\n                    \"availability_statuses\": null,\n                    \"unavailability_reason_id\": null,\n                    \"unavailability_reason\": null,\n                    \"overall_status\": \"None\"\n                }\n            ],\n            \"updated_by\": \"Candidate\"\n        },\n        {\n            \"coed_id\": 77,\n            \"pre_id\": 101,\n            \"coed_name\": \"Passport.pdf\",\n            \"coed_uploaded_on\": \"2026-03-02T14:00:00+00:00\",\n            \"coed_file_base64\": \"data:application/pdf;base64,JVBERi0xLjQK\"\n        },\n        {\n            \"coedic_id\": 55,\n            \"coed_id\": 77,\n            \"coi_id\": 9,\n            \"coi_name\": \"Right to Work\",\n            \"coedic_expiry\": \"2027-03-01\",\n            \"coedic_number\": \"RTW-0001\",\n            \"coedic_issue_date\": \"2026-03-02\",\n            \"coedic_archived\": \"off\"\n        },\n        {\n            \"coedic_id\": 55,\n            \"pre_id\": 101,\n            \"coedic_issue_date\": \"2025-03-09\",\n            \"coedic_expiry\": \"2026-03-09\",\n            \"coi_id\": 9,\n            \"coi_name\": \"Right to Work\"\n        },\n        {\n            \"compliance_data\": {\n                \"pre_id\": 101,\n                \"missing_required_compliance_items\": {\n                    \"9\": 9\n                },\n                \"missing_critical_compliance_items\": {\n                    \"14\": 14\n                }\n            }\n        },\n        {\n            \"sbti_id\": 4001,\n            \"sbt_id\": 2001,\n            \"sbti_candidate_confirmed\": true\n        },\n        {\n            \"sbti_ids\": [\n                4001,\n                4002\n            ],\n            \"pre_id\": 101,\n            \"sbau_email\": \"sam.sample@example.com\"\n        },\n        {\n            \"sbc_id\": 21,\n            \"sbc_name\": \"Example Health Trust\",\n            \"sbc_code\": \"EHT\",\n            \"sbs_id\": 1,\n            \"syr_id\": 1,\n            \"sbdi_id\": 1,\n            \"sbc_active\": \"on\",\n            \"sbc_director_syu_id\": 7,\n            \"sbc_manager_syu_id\": 6,\n            \"sbc_createdby_syu_id\": 5,\n            \"sbc_created\": \"2026-03-02T15:00:00+00:00\",\n            \"sbc_updated\": \"2026-03-02T15:00:00+00:00\",\n            \"ext_id\": \"\",\n            \"sbc_owner_syu_id\": 5,\n            \"sbte_id\": 2,\n            \"FKData\": {\n                \"sbs_desc\": \"Standard Pattern\",\n                \"syr_name\": \"London\",\n                \"sbdi_name\": \"North\",\n                \"sbte_name\": \"Team A\",\n                \"sbc_director_name\": \"Jo Example\",\n                \"sbc_manager_name\": \"Max Sample\",\n                \"sbc_owner_name\": \"Sam Sample\"\n            }\n        },\n        {\n            \"sbcl_id\": 31,\n            \"sbc_id\": 21,\n            \"sbcl_name\": \"Example General Hospital\",\n            \"sbcl_code\": \"EGH\",\n            \"sbs_id\": 1,\n            \"sbcl_longlat\": \"51.500000,-0.100000\",\n            \"sbcl_created\": \"2026-03-02T15:10:00+00:00\",\n            \"sbcl_updated\": \"2026-03-02T15:10:00+00:00\",\n            \"ext_id\": \"\",\n            \"FKData\": {\n                \"sbc_name\": \"Example Health Trust\",\n                \"sbs_desc\": \"Standard Pattern\"\n            }\n        },\n        {\n            \"sbcsl_id\": 41,\n            \"sbcl_id\": 31,\n            \"sbcsl_name\": \"Ward 3\",\n            \"sbcsl_code\": \"W3\",\n            \"sbcsl_pcode\": \"AB1 2CD\",\n            \"sbcsl_created\": \"2026-03-02T15:20:00+00:00\",\n            \"sbcsl_updated\": \"2026-03-02T15:20:00+00:00\",\n            \"FKData\": {\n                \"sbc_id\": 21,\n                \"sbc_name\": \"Example Health Trust\",\n                \"sbcl_id\": 31,\n                \"sbcl_name\": \"Example General Hospital\"\n            }\n        },\n        {\n            \"sbclc_id\": 51,\n            \"sbcl_id\": 31,\n            \"sbclc_name\": \"Agency Nursing 2026\",\n            \"sbclc_desc\": \"\",\n            \"sbs_id\": 1,\n            \"sbdi_id\": 1,\n            \"sbclc_ownership_override\": \"OVERRIDE\",\n            \"sbclc_created\": \"2026-03-02T15:30:00+00:00\",\n            \"sbclc_updated\": \"2026-03-02T15:30:00+00:00\",\n            \"FKData\": {\n                \"sbc_id\": \"21\",\n                \"sbc_name\": \"Example Health Trust\",\n                \"sbcl_name\": \"Example General Hospital\",\n                \"sbs_desc\": \"Standard Pattern\",\n                \"sbdi_name\": \"North\",\n                \"sbte_name\": \"Team A\",\n                \"sbc_director_name\": \"Jo Example\",\n                \"sbc_manager_name\": \"Max Sample\",\n                \"sbc_owner_name\": \"Sam Sample\"\n            }\n        },\n        {\n            \"sbau_id\": 61,\n            \"sbau_name\": \"Sam Sample\",\n            \"sbau_position\": \"Ward Manager\",\n            \"sbau_title\": \"Ms\",\n            \"sbau_email\": \"sam.sample@example.com\",\n            \"sbau_phone\": \"07700 900201\",\n            \"sbau_phone2\": \"\",\n            \"sbau_linkedin\": \"\",\n            \"sbau_active\": \"on\",\n            \"sbau_status_taggable\": 1,\n            \"sbc_id\": 21,\n            \"sbc_name\": \"Example Health Trust\",\n            \"sbcl_id\": 31,\n            \"sbcl_name\": \"Example General Hospital\",\n            \"sbcsl_id\": 41,\n            \"sbcsl_name\": \"Ward 3\"\n        },\n        {\n            \"sbt_id\": 2001,\n            \"sbt_year\": 2026,\n            \"sbt_week\": \"10\",\n            \"sbt_day\": 3,\n            \"sbsca_reason\": \"Client Cancelled\"\n        }\n    ]\n}"}],"_postman_id":"8cb453d8-768e-4258-8800-a92b09f131e5"}],"id":"7c7e8d1b-34b4-434b-b678-2fdbea592a0e","description":"<p>Webhooks let your system tell another application when something changes, so you do not have to poll the fetch services. Subscribe a URL to an event with Subscribe to Webhook; your system then POSTs the event's payload as JSON to that URL, usually within a minute or two of the change. The body is the payload only and does not name the event, so use a separate URL for each event. Use Get Sample Webhook Data to see a payload built from your latest matching record, and Unsubscribe from Webhook to stop. Subscribe to Webhook lists every event and payload.</p>\n","_postman_id":"7c7e8d1b-34b4-434b-b678-2fdbea592a0e"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Builds the time-sensitive authentication values for every request.","// Set public_key, secret_key and api_email in your environment (mark secret_key as secret).","const secret = pm.variables.get('secret_key');","const timestamp = Math.floor(Date.now() / 1000).toString();","const hash = CryptoJS.SHA512(timestamp + secret).toString(CryptoJS.enc.Hex);","pm.variables.set('timestamp', timestamp);","pm.variables.set('hash', hash);"],"id":"1f658bb4-2b3e-4a4b-81ed-416b295d5cc6"}}],"variable":[{"key":"tenant","value":"your-tenant"},{"key":"host","value":"your-tenant.example.com"},{"key":"base_url","value":"https://your-tenant.example.com"},{"key":"public_key","value":"pk_0000example0000public0000key0"},{"key":"secret_key","value":"sk_0000example0000secret0000key0"},{"key":"api_email","value":"api.user@example.com"},{"key":"timestamp","value":""},{"key":"hash","value":""}]}