ac-co.ai docs
API Referencehmrc

Get Preparation

GET
/hmrc/payrollFiling/getPreparation

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.

AuthorizationBearer <token>

In: header

Query Parameters

query*

Response Body

application/json

application/json

curl -X GET "https://example.com/hmrc/payrollFiling/getPreparation?query%5Bid%5D=497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "preparationId": "78a1fbc3-56d1-4ef3-a425-e2e76d2b99bc",  "filingType": "fps",  "legalEntityId": "41192155-f2be-4dd0-9ea4-e32ad94824f7",  "engine": "govtalk",  "environment": "test",  "status": "prepared",  "statusReason": "string",  "approvalRequestId": "62a09f2a-7fb7-4e24-a2af-6c58e85c4c08",  "payloadHash": "string",  "preview": {    "property1": null,    "property2": null  },  "validation": {    "property1": null,    "property2": null  },  "warnings": [    "string"  ],  "coveredRunIds": [    "13d94350-ef80-4b0d-aeb7-60aa5ed34bfb"  ],  "coveredSubmissionIds": [    -9007199254740991  ],  "preparedAt": "string",  "expiresAt": "string",  "approvedAt": "string"}