# Payroll Compliance Advice

> Answers a payroll compliance question for an accountant, covering filing obligations, contractor classification and payroll tax. Send a topic that…

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

topic string Required

The payroll question to answer, in plain language, up to 5000 characters.

jurisdiction enum

Jurisdiction whose payroll rules apply, as a two-letter code: AU, GB, CA, US or NZ.

AU GB CA US NZ

client_id string · uuid

Identifier of the client the question is about, as a UUID.

payroll_system enum · default unknown

Payroll system the client runs, so the advice can refer to its terms; unknown if not known.

xero adp gusto rippling myob unknown

Returns

Skill executed successfully

skill string Required

Example advise_payroll

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.advice string · default

output.citations array of values

output.data object

output.caveats array of strings

output.confidence number · default 0

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Previous ← M&A Advice](https://heyarchie.com/en-gb/developers/api-reference/advisory/m-a-advice/)[Next Get Tax Advice →](https://heyarchie.com/en-gb/developers/api-reference/advisory/get-tax-advice/)

```
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>"
  }
}
```

Every response also carries X-Request-ID. Quote it if you write to us about a call.
