# Cancel a postal communication

Requests cancellation of a previously submitted EviPost. Use this operation for `Letter` with a delivery receipt, delivery attempts, or disposal enabled. The communication must not be `Draft` or `Closed`, and the request must be within the configured cancellation window (30 minutes from creation by default). Only the submitting account can request cancellation. Requires `CanUseCancel` and the standard EviPost API permission. A successful response accepts the request for asynchronous processing; it does not confirm cancellation by the postal operator. To confirm cancellation, check that Query reports the `Cancelled` state, or the `Closed` state with the `Cancelled` outcome. A `Cancelled` callback confirms cancellation only when `AdditionalData.Success` is `true`; `false` reports an unsuccessful attempt. The API can accept `LetterLite` requests, but the current cancellation processor does not support that service type; contact support if cancellation is needed. Requests that fail an eligibility check are rejected. A non-2xx response means the request was not accepted.

Endpoint: POST /EviPost/Cancel
Version: 1.0
Security: basicAuth

## Security:

  - `basicAuth` (unknown)
    http basic

## Request fields (application/json):

  - `UniqueId` (string, required)
    The unique ID of the postal communication to cancel, as returned at submission.

## Response 200:

  - `200` (unknown)
    Cancellation request accepted for asynchronous processing; cancellation is not yet confirmed.

## Response 200 fields (application/json):

  - `uniqueId` (string)
    The unique ID of the communication whose cancellation request was accepted; cancellation is not yet confirmed. Serialized as 32 hexadecimal characters without dashes.

## Response 400:

  - `400` (unknown)
    Invalid request, such as a malformed UUID. Supply a non-empty UniqueId.

## Response 401:

  - `401` (unknown)
    Authentication failed, or the authenticated account is not the owner of the postal communication.

## Response 403:

  - `403` (unknown)
    The authenticated account lacks the required `CanUseCancel` permission, or EviPost is not enabled for this account.

## Response 404:

  - `404` (unknown)
    No postal communication with the given UniqueId was found.

