# Cancel a guest invite

> Source: /api-reference/partner/explorer/vguests/cancel-invite
> Revokes an invitation that has not been accepted. Requires both `partner:guests:read` (declared on the controller) and `partner:guests:pii:read` (on the handler) — the guard ANDs them.
> Full spec: https://docs.journey.com/openapi/partner.v1.json

## `DELETE /v1/partner/vguests/guest-invites/{inviteId}`

```json
{
  "description": "Revokes an invitation that has not been accepted. Requires both `partner:guests:read` (declared on the controller) and `partner:guests:pii:read` (on the handler) — the guard ANDs them.",
  "operationId": "guestInvitesPartner_cancelInvite",
  "parameters": [
    {
      "description": "Internal numeric invitation id — not an external id. A non-integer value is rejected with 400 before the handler runs.",
      "in": "path",
      "name": "inviteId",
      "required": true,
      "schema": {
        "type": "integer"
      }
    }
  ],
  "responses": {
    "204": {
      "description": "The invitation was cancelled."
    },
    "400": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "Request validation failed. `errors` lists the offending fields."
    },
    "401": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No usable credential. Send `Authorization: Bearer <jwt>` or `X-API-Key: jny_...`."
    },
    "403": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "The credential authenticated but lacks the scopes in `x-required-scopes`, or the resource belongs to another organization."
    },
    "404": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No such resource, or it is outside the organization the credential resolves to."
    }
  },
  "security": [
    {
      "partnerBearer": []
    },
    {
      "partnerApiKey": []
    }
  ],
  "summary": "Cancel a guest invite",
  "tags": [
    "partner/vguests"
  ],
  "x-required-scopes": [
    [
      "partner:guests:read"
    ],
    [
      "partner:guests:pii:read"
    ]
  ]
}
```