---
title: "Cancel an invitation by id"
method: DELETE
path: "/agents/{arn}/invitations/{invitationId}"
tags: ["Agents"]
---

# Cancel an invitation by id

`DELETE /agents/{arn}/invitations/{invitationId}`

## Path parameters

- `arn` string, required
- `invitationId` string, required

## Headers

- `Accept` 'application/vnd.hmrc.2.0+json', required
- `Content-Type` 'application/json', required

## Response `204`

The authorisation request has been cancelled

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `406` — Not Acceptable
- `500` — Internal Server Error

---

[API](https://skmtc.dev/hmrc/apis/agent-authorisation-api.md) · [All operations](https://skmtc.dev/hmrc/apis/agent-authorisation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hmrc/agent-authorisation-api/revisions/83e8a60b1144/schema)
