---
title: "Get a cached message related to a departure and message ID"
method: GET
path: "/customs/transits/movements/departures/{departureId}/messages/{messageId}"
tags: ["Departures"]
---

# Get a cached message related to a departure and message ID

`GET /customs/transits/movements/departures/{departureId}/messages/{messageId}`

Get a message related to a specific departure and message ID that have been received within the past 60 days.
For example, this could include ‘Declaration rejected’ or Movement Reference Number (MRN) allocated messages.
Movements older than 60 days and their related messages are archived and cannot be returned by the API. <br/><br/> A successful response can be returned in one of the following formats based on the provided `Accept` header:

 - `application/vnd.hmrc.3.0+json-xml`: JSON-wrapped XML, where the message is provided as an XML string sent as part of JSON payload containing other metadata
 - `application/vnd.hmrc.3.0+json`: JSON, where the message is provided as a sub-document sent as part of a JSON payload containing other metadata

The `status` parameter in a successful response can have the following values:

 - `Pending`: the file has not yet been uploaded or checks are not yet completed
 - `Processing`: the file has been received by us and the message is being processed
 - `Success`: the file has been processed successfully
 - `Failed`: there was a problem with the file and the message was not processed

**Note:** You can view a transit movement only if your Economic Operators Registration and Identification (EORI) number matches the EORI number that created the transit declaration for that movement.  Your EORI number is part of the bearer token that you use for API authentication.

## Path parameters

- `departureId` string, required
- `messageId` string, required

## Headers

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

## Response `200`

A successful get message related to departure and message ID response

- object
  - `_links` object, required
    - `self` object, required
      - `href` string, required
    - `departure` object, required
      - `href` string, required
  - `id` string, required
  - `departureId` string, required
  - `received` string, required
  - `type` string
  - `status` string, required
  - `body` string

## Other responses

- `404` — Not Found
- `406` — Not Acceptable

---

[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)
