Invoke Skill Payroll Advise
post
/api/v1/skills/payroll.advise/invokePayroll compliance advice β STP/RTI/SGC, contractor classification, payroll tax.
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.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
topicrequired | string | The payroll question to answer, in plain language, up to 5000 characters. |
jurisdiction | "AU" | "GB" | "CA" | "US" | "NZ" | null | Jurisdiction whose payroll rules apply, as a two-letter code: AU, GB, CA, US or NZ. |
client_id | string (uuid) | null | Identifier of the client the question is about, as a UUID. |
payroll_system | "xero" | "adp" | "gusto" | "rippling" | "myob" | "unknown" | Payroll system the client runs, so the advice can refer to its terms; unknown if not known.xeroadpgustoripplingmyobunknown |
Responses
200Skill executed successfully
| Field | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | ||||||||||||||||||||||||
outputrequired | object | βshow nested
| ||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/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"
}'