Export through a roll-on roll-off port, from declaration to exit
This recipe follows one lorry load out of Great Britain through a port that uses HMRC’s Goods Vehicle Movement Service (GVMS). It pre-lodges the export declaration, puts its DUCR on the lorry’s goods movement record (GMR), and hears from HMRC when the goods have left the UK.
It takes two automations. The first sends the declaration and creates the GMR, then finishes. The second starts when HMRC reports that the goods have exited, which can be hours or days later.
It puts together the export declaration recipe and the GVMS recipe. Read those for how to read the invoice, set up the tables and connect HMRC as the haulier.
Where this fits
Section titled “Where this fits”HMRC’s list of GVMS ports says, port by port and for some routes carrier by carrier, whether an export declaration must be pre-lodged or arrived before the goods start their journey. This recipe is for the pre-lodged ones, and for GVMS ports where HMRC’s standard export process applies.
Where HMRC’s list says the declaration must be arrived, which includes some routes from Dover and the Channel Tunnel, it needs permission to progress before its DUCR can go on the GMR. This recipe doesn’t cover that. The export recipe covers an arrived declaration (EXA) at a Customs Supervised Exports location.
What happens on the day
Section titled “What happens on the day”| When | What happens | Which block |
|---|---|---|
| Before departure | The declaration is pre-lodged, and HMRC issues its MRN | Send CDS declaration |
| Before check-in | The GMR is created with the declaration’s DUCR, and the driver gets the GMR ID | Send goods movement record |
| Check-in | GVMS checks the GMR and arrives the declaration in CDS | None: HMRC does this |
| Embarkation | GVMS sends the departure to CDS | None: HMRC does this |
| Afterwards | HMRC reports that the goods have exited | When a CDS declaration changes |
Automation 1: declare and create the GMR
Section titled “Automation 1: declare and create the GMR”1. Pre-lodge the declaration
Section titled “1. Pre-lodge the declaration”Build the declaration as in the export recipe, with these settings:
- Type: Before arrival, pre-lodged (EXD).
- Wait until: Received (MRN issued). HMRC issues the MRN as soon as it has the declaration, but the goods only arrive at check-in, through the GMR. The block continues on Accepted once the MRN is issued.
- Goods location: the port’s GVMS code from HMRC’s Appendix 16S. GVMS codes end in
GVM, and with one the block adds the additional information code RRS01. - Office of exit: the customs office where the goods leave.
Don’t use Exited (goods left the UK) here. The block would wait for an exit that needs the GMR, which this automation hasn’t created yet. The second automation hears about the exit instead.
2. Create the GMR with the DUCR
Section titled “2. Create the GMR with the DUCR”Add Send goods movement record on the send block’s Accepted exit:
- Action: Create a GMR.
- Direction: Out of Great Britain.
- Load: Goods under customs declarations, with the send block’s DUCR in Customs declarations. Going out, the GMR names declarations by DUCR, not MRN.
- Route ID, Departure (local time) and the vehicle, trailers or containers: as in the GVMS recipe.
On Accepted the GMR is ready: give the GMR ID to the driver. On Needs changes, show Rule failures to a person with an Approval and update the GMR. See Fix what HMRC flags.
Automation 2: hear when the goods exit
Section titled “Automation 2: hear when the goods exit”3. Start a run when HMRC reports the exit
Section titled “3. Start a run when HMRC reports the exit”Create a second automation that starts with When a CDS declaration changes:
- HMRC connection: the one that sent the declaration. The trigger follows only declarations this connection sent with Send CDS declaration or Update CDS declaration.
- Events: Goods exited. Add Held for a control or documents and Invalidated to hear about the export going wrong too.
Publish it before the first automation sends anything. Only automations published before HMRC reports an event start for it.
Each event starts one run, which gets the MRN, the LRN, the event and a plain-English summary. Add a Switch on the event when you picked more than one. On goods exited, record it against the MRN in your own system, for example to close the shipment or keep the evidence of export.
4. Optional: hear about the GMR too
Section titled “4. Optional: hear about the GMR too”Before boarding, HMRC can ask for the lorry to be inspected. When a goods movement changes starts a run for the GMRs the haulier’s connection created, with Events such as Inspection required or Needs changes (not finalisable). The run gets where to report for the inspection, or the rules the GMR breaks. Send it to whoever deals with the driver.
What goes wrong
Section titled “What goes wrong”- The port wants an arrived declaration. Check HMRC’s list for your route. GVMS flags a DUCR on the GMR that has no permission to progress.
- A goods location that isn’t a GVMS code. The declaration carries no RRS01.
- No exit after 45 days. HMRC sends a general error at 45 days when the exit results haven’t arrived. On an export this isn’t a rejection. Pick General error under Events to hear about it.
- News arrives out of order. HMRC can report events in any order, and each run handles one. Issued at tells which is newer.
- A trigger published too late. An event HMRC reported before the second automation was published doesn’t start it.
- Declarations sent by other software. The trigger can’t follow them: HMRC sends their news to that software.
- Two connections, two identities. The declaration goes from the trader’s connection and the GMR from the haulier’s.