ac-co.ai docs
API Referencehmrc

List Tax Years

GET
/hmrc/selfAssessment/listTaxYears

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

curl -X GET "https://example.com/hmrc/selfAssessment/listTaxYears?query%5BlegalEntityId%5D=41192155-f2be-4dd0-9ea4-e32ad94824f7"
[  {    "taxYear": "string",    "periodStart": "string",    "periodEnd": "string",    "filingDeadline": "string",    "status": "draft",    "submittedAt": "string",    "submissionId": "string",    "stuck": "outcome_unknown",    "errors": [      {        "code": "string",        "severity": "string",        "message": "string",        "boxes": [          {            "mnemonic": "string",            "form": "string",            "segment": "string",            "shortDesc": "string"          }        ]      }    ],    "exclusions": [      {        "id": "string",        "title": "string",        "confidence": "high"      }    ]  }]