---
title: "Send a message related to a departure"
method: POST
path: "/customs/transits/movements/departures/{departureId}/messages"
tags: ["Departures"]
---

# Send a message related to a departure

`POST /customs/transits/movements/departures/{departureId}/messages`

Send a message to the customs office of departure about a departure.

For example, if you want to cancel a ‘Declaration Data’ E_DEC_DAT (IE015) message, you must send a ‘Declaration Invalidation Request’ E_DEC_INV (IE014) message to the office of departure.
<br/><br/>
If you use this endpoint to send a small message (up to 5MB), a successful response will contain a URI, a departure ID, and a message ID related to the departure that you can use to get the message status.
<br/><br/>
If you use this endpoint to send a large message (up to 8MB), a successful response will include:

- a URL and additional metadata that you must use when uploading your file
- a departure ID, specifying the departure to return
- a message ID that allows you track the status of that specific message

**Note:** If an Economic Operators Registration and Identification (EORI) number has not been assigned to you, an HTTP 403 Forbidden error is returned.

## Path parameters

- `departureId` string, required

## Headers

- `Accept` 'application/vnd.hmrc.3.0+json', required
- `Content-Type` 'application/json' | 'application/xml', required

## Response `202`

Accepted

- union
  - object
    - `_links` object, required
      - `self` object, required
        - `href` string, required
      - `departure` object, required
        - `href` string, required
    - `departureId` string, required
    - `messageId` string, required
  - object
    - `_links` object, required
      - `self` object, required
        - `href` string, required
      - `departure` object, required
        - `href` string, required
    - `departureId` string, required
    - `messageId` string, required
    - `uploadRequest` object, required
      - `href` string, required
      - `fields` object, required

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `406` — Not Acceptable
- `413` — Payload Too Large

---

[API](https://skmtc.net/hmrc/apis/common-transit-convention-traders.md) · [All operations](https://skmtc.net/hmrc/apis/common-transit-convention-traders/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hmrc/common-transit-convention-traders/revisions/3f42685e9ab3/schema)
