Skip to content

When a goods movement changes

Starts an automation each time HMRC reports a change to a goods movement record (GMR) this connection sent: checked in, embarked, an inspection call and more.

@lainstack/hmrc/goods-movement-changed · Triggers · Available on Lainstack Cloud

Use When a goods movement changes to start a run each time HMRC reports a change to a goods movement record (GMR) your HMRC connection created or changed with Send goods movement record. It hears HMRC’s answer to your request, and the changes HMRC makes later: check-in at the port, embarkation, completion, and an inspection call, which HMRC can make up to 30 minutes after an inbound lorry embarks.

Good to know:

  • It works on HMRC’s sandbox. Production follows once HMRC gives Lainstack production access to Goods Vehicle Movements.

  • Pick the Events that start a run. Every event is picked to begin with. A change that is also an inspection call counts as both, and starts one run.

  • The run gets the GMR ID, its state, where to report for an inspection, the rules a GMR that needs changes breaks, and the vehicle, trailers and customs declarations on the GMR, read with the haulier’s own sign-in. If that read fails, the run still starts and GMR problem says why.

  • GMRs made by other software can’t be followed: HMRC sends their news to that software.

  • Only automations published before HMRC spoke start. News is checked about once a minute.

  • An automation in another workspace never hears about your goods movements, even on the same Lainstack install.

Setting Key Type Details
HMRC connection (required) credentialId Connection The HMRC connection of the haulier whose goods movements to follow. At most 160 characters.
Events events List A run starts for each of these that HMRC reports. Every event to begin with. At most 40 items.
Output Path Type
Data > Events payload.data.events List
Data > Summary payload.data.summary Text
Data > GMR ID payload.data.gmrId Text
Data > State payload.data.state Choice
Data > Status Version payload.data.statusVersion Number
Data > Inspection Required payload.data.inspectionRequired Yes or no
Data > Report To Locations payload.data.reportToLocations List
Data > Rule Failures payload.data.ruleFailures List
Data > Direction payload.data.direction Text
Data > Vehicle Reg Num payload.data.vehicleRegNum Text
Data > Trailer Registration Nums payload.data.trailerRegistrationNums List
Data > Customs Declarations payload.data.customsDeclarations List
Data > Planned Crossing > Route ID payload.data.plannedCrossing.routeId Text
Data > Planned Crossing > Local Date Time Of Departure payload.data.plannedCrossing.localDateTimeOfDeparture Text
Data > Planned Crossing > Local Date Time Of Arrival payload.data.plannedCrossing.localDateTimeOfArrival Text
Data > GMR Problem payload.data.gmrProblem Text
System > Connection ID payload.system.connectionId Text
System > Environment payload.system.environment Text
System > Notification ID payload.system.notificationId Text
System > Received At payload.system.receivedAt Text

Last updated: