The Agent Authorisation Test Support API provides test-only ability to accept or reject an authorisation request created with Agent Authorisation API. In normal circumstances, this had to be done by the individual or organisation going through dedicated acceptance UI. For an external test environment, we provide two open test endpoints which conclude the authorisation request with the same effects as UI journey.
Name | Type | Description | Required | Examples |
---|---|---|---|---|
Accept | string | Specifies the response format and the version of the API to be used. | true | application/vnd.hmrc.1.0+json |
Content-Length | number | An empty PUT body must have this header value set to 0 | true | 0 |
Invitation has been accepted
{
"code": "BAD_REQUEST",
"message": "Missing or unsupported version number"
}
{
"code": "BAD_REQUEST",
"message": "Missing or unsupported content-type."
}
Name | Type | Description | Required | Pattern |
---|---|---|---|---|
code | string | true |
Invitation not found for the given id
{
"code": "ACCEPT_HEADER_INVALID",
"message": "Missing 'Accept' header."
}
{
"code": "ACCEPT_HEADER_INVALID",
"message": "Invalid 'Accept' header"
}
Name | Type | Description | Required | Pattern |
---|---|---|---|---|
code | string | true |
Invitation already has been rejected or expired
Name | Type | Description | Required | Examples |
---|---|---|---|---|
Accept | string | Specifies the response format and the version of the API to be used. | true | application/vnd.hmrc.1.0+json |
Invitation has been rejected.
{
"code": "BAD_REQUEST",
"message": "Missing or unsupported version number"
}
{
"code": "BAD_REQUEST",
"message": "Missing or unsupported content-type."
}
Name | Type | Description | Required | Pattern |
---|---|---|---|---|
code | string | true |
Invitation not found for the given id
{
"code": "ACCEPT_HEADER_INVALID",
"message": "Missing 'Accept' header."
}
{
"code": "ACCEPT_HEADER_INVALID",
"message": "Invalid 'Accept' header"
}
Name | Type | Description | Required | Pattern |
---|---|---|---|---|
code | string | true |
Invitation already has been accepted or expired