ac-co.ai docs
API Referencehmrc

Approve

POST
/hmrc/payrollFiling/approve

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. Acts as the user the API key / token belongs to: that user must be a human organisation member with the approver role, and must not be the preparer unless owner/admin (enforced by the server). One approval authorises exactly one submit attempt.

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

application/json

application/json

curl -X POST "https://example.com/hmrc/payrollFiling/approve" \  -H "Content-Type: application/json" \  -d '{    "body": {      "preparationId": "78a1fbc3-56d1-4ef3-a425-e2e76d2b99bc"    }  }'
{  "preparationId": "78a1fbc3-56d1-4ef3-a425-e2e76d2b99bc",  "status": "approved",  "approvedAt": "string"}