ac-co.ai docs
API Referencehmrc

Poll

POST
/hmrc/payrollFiling/poll

RESTRICTED: requires the hmrc:read scope (hmrc:write for state-changing operations), granted after manual approval. Self Assessment operations are answered from records held in ac-co.ai and make no call to HMRC.

Requires hmrc:write. Asks the engine for a newer outcome now (never resends). An ambiguous transport failure answers 502 with outcomeUncertain: true; read /payrollFiling/status instead of retrying blindly.

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/hmrc/payrollFiling/poll" \  -H "Content-Type: application/json" \  -d '{    "body": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    }  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "status": "prepared",  "engineStatus": "submitted",  "nextPollAt": "string",  "final": true,  "message": "string"}