Skip to content

Agent Authorisation API has mismatched date formats #146

@ddaddy

Description

@ddaddy

The Agent Authorisation API has a method to Get all authorisation requests for the last 30 days.

Here's an example response after I created a new authorisation:

[
  {
    "_links": {
      "self": {
        "href": "/agents/JARN0861880/invitations/AUM6XRUBB2OD2"
      }
    },
    "created": "2025-09-15T11:50:41.314Z",
    "updated": "2025-09-15T12:20:30.316Z",
    "arn": "JARN0861880",
    "service": [
      "MTD-IT"
    ],
    "status": "Accepted",
    "agentType": "main"
  },
  {
    "_links": {
      "self": {
        "href": "/agents/JARN0861880/invitations/AZ6LATWBNPE44"
      }
    },
    "created": "2025-09-29T17:57:58.163Z",
    "expiresOn": "2025-10-20T00:00:00.000",
    "arn": "JARN0861880",
    "service": [
      "MTD-IT"
    ],
    "status": "Pending",
    "clientActionUrl": "https://test-www.tax.service.gov.uk/agent-client-relationships/appoint-someone-to-deal-with-HMRC-for-you/AENY1RD7/phillips-and-company/income-tax",
    "agentType": "main"
  }
]

The created and updated params use the standard date format used across all the API's with the Z at the end.
expiresOn does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions