Skills › Advisory
Payroll Compliance Advice
POST/api/v1/skills/payroll.advise/invoke
Answers a payroll compliance question for an accountant, covering filing obligations, contractor classification and payroll tax. Send a topic that describes the question, and optionally the jurisdiction, the client and the payroll system in use. Returns advice with citations, supporting data, caveats and a confidence score.
Body parameters
topicstringRequired
The payroll question to answer, in plain language, up to 5000 characters.
jurisdictionenum
Jurisdiction whose payroll rules apply, as a two-letter code: AU, GB, CA, US or NZ.
AUGBCAUSNZ
client_idstring · uuid
Identifier of the client the question is about, as a UUID.
payroll_systemenum · default unknown
Payroll system the client runs, so the advice can refer to its terms; unknown if not known.
xeroadpgustoripplingmyobunknown
Returns
Skill executed successfully
skillstringRequired
Example advise_payroll
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.advicestring · default
output.citationsarray of values
output.dataobject
output.caveatsarray of strings
output.confidencenumber · default 0
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALID Authentication required
403PERMISSION.CAPABILITY_DENIED Insufficient permissions
404SKILL.NOT_FOUND Skill not found
422VALIDATION.INVALID_FORMAT Validation error
429RATE_LIMIT.USER Rate limit exceeded
5XXINTERNAL.UNKNOWN Internal server error
curl https://uk.heyarchie.com/api/v1/skills/payroll.advise/invoke \ -X POST \ -H "Authorization: Bearer sk_..." \ -H "Content-Type: application/json" \ -d '{ "topic": "string", "jurisdiction": null, "client_id": null, "payroll_system": "xero" }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "payroll.advise", topic="string", jurisdiction=None, client_id=None, payroll_system="xero", ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("payroll.advise", {
"topic": "string",
"jurisdiction": null,
"client_id": null,
"payroll_system": "xero"
});
console.log(result);Response
{
"skill": "advise_payroll",
"output": {
"advice": "Regular monthly work for one business, under its direction and with set hours, points towards employment, so the designers should probably go through payroll with tax and National Insurance withheld.",
"caveats": [
"The written contracts were not reviewed."
],
"citations": [
{
"confidence": 0.85,
"section": "Control and substitution tests",
"standard": "HMRC employment status guidance"
}
],
"confidence": 0.78,
"data": {
"likely_employees": 2,
"workers_reviewed": 2
}
},
"correlation_id": "<string>"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}Every response also carries X-Request-ID. Quote it if you write to us about a call.