Send goods movement record
Creates, updates or deletes a goods movement record (GMR) in HMRC’s Goods Vehicle Movement Service, and waits for HMRC to say whether it is ready for check-in.
@lainstack/hmrc/send-goods-movement-record · Customs · Available on Lainstack Cloud
How to use it
Section titled “How to use it”Use Send goods movement record to create, update or delete a goods movement record (GMR) in HMRC’s Goods Vehicle Movement Service (GVMS). A lorry on a roll-on roll-off route needs a GMR before it checks in. The GMR links the vehicle and crossing to the goods’ customs declarations.
Good to know:
- Create a GMR sends a new record and waits for HMRC to assign its GMR ID. Update a GMR replaces the whole record, so fill in every field again. Delete a GMR removes one that has not been checked in.
- HMRC answers within seconds. Accepted means the GMR is ready for check-in. Needs changes means HMRC needs more first: Rule failures lists what, by field. Update the GMR using its GMR ID.
- Timed out means HMRC’s answer didn’t arrive in time, or a create got no clear answer. HMRC may still have made the GMR, so the block doesn’t send it again. Possible GMR IDs lists the haulier’s GMRs in the same direction since sending that share its vehicle, trailers or containers. Another run’s GMR can match, so check before using one. Inside For each, resuming a failed run sends the create again.
- Check-in needs the Route ID, the vehicle registration (or trailers or containers when unaccompanied) and the goods.
- Customs declarations takes MRNs for goods coming in and DUCRs for goods going out. Route ID comes from HMRC’s GVMS reference data.
- Connect HMRC as the haulier, with a Government Gateway ID registered for Get a goods movement reference. Reconnect a connection made before it covered goods movements.
- HMRC refusals, such as a GMR already checked in, fail the step with HMRC’s reason.
- A sandbox connection sends to HMRC’s test environment.
Settings
Section titled “Settings”| Setting | Key | Type | Details |
|---|---|---|---|
| HMRC connection (required) | credentialId |
Connection | The haulier’s HMRC connection. They sign in with a Government Gateway ID registered for GVMS. At most 160 characters. |
| Action | action |
One of Create a GMR, Update a GMR, Delete a GMR |
Default create. |
| GMR ID | gmrId |
Text | The GMR to update or delete. |
| Direction | direction |
One of Into Great Britain, Out of Great Britain, Great Britain to Northern Ireland, Northern Ireland to Great Britain |
Default UK_INBOUND. |
| Route ID | routeId |
Text | The crossing’s route from HMRC’s GVMS reference data, such as a ferry or tunnel route between two ports. Needed before check-in. |
| Departure (local time) | departure |
Text | Planned departure in the departure port’s local time, as YYYY-MM-DDTHH:MM. |
| Unaccompanied | isUnaccompanied |
Yes or no | On when the vehicle doesn’t travel with its trailers, or a container is detached and loaded alone. Default false. |
| Vehicle registration | vehicleRegNum |
Text | Needed before check-in unless the movement is unaccompanied. |
| Trailer registrations | trailers |
Text | Up to 2, separated by commas. |
| Container numbers | containers |
Text | Separated by commas or new lines. |
| Load | load |
One of Goods under customs declarations, Empty, under a contract of carriage, Empty, own vehicle |
Default declarations. |
| Customs declarations | declarations |
Text | MRNs for goods coming in, DUCRs for goods going out. Separate them with commas or new lines. |
| Safety and security MRNs | entrySummaryMrns |
Text | Optional. The entry summary MRNs for the whole vehicle, for movements into Great Britain or Northern Ireland. |
| Give up after (minutes) | timeoutMinutes |
Number | Take the Timed out path when HMRC hasn’t answered by then. HMRC usually answers within seconds. Defaults to 10. From 1 to 1,440. Default 10. |
Outputs
Section titled “Outputs”| Output | Path | Type |
|---|---|---|
| Outcome | outcome |
Choice |
| Summary | summary |
Text |
| Action | action |
Choice |
| GMR ID | gmrId |
Text |
| State | state |
Text |
| Inspection Required | inspectionRequired |
Yes or no |
| Rule Failures | ruleFailures |
List |
| Environment | environment |
Text |
| Sent At | sentAt |
Text |
| Checked At | checkedAt |
Text |
| Next Check At | nextCheckAt |
Text |
| HMRC Problem | hmrcProblem |
Text |
| Possible GMR Ids | possibleGmrIds |
List |
| Exit | Port | Notes |
|---|---|---|
| Accepted | out |
|
| Needs changes | notFinalisable |
|
| Timed out | timedOut |